root/trunk/qt4-gui/src/dialogs/searchuserdlg.h

Revision 6287, 2.3 kB (checked in by eugene, 5 months ago)

Merged r6260:6264 from SVNROOT/branches/qt4-gui_group

  • Property svn:eol-style set to native
Line 
1// -*- c-basic-offset: 2 -*-
2/*
3 * This file is part of Licq, an instant messaging client for UNIX.
4 * Copyright (C) 1999-2006 Licq developers
5 *
6 * Licq is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * Licq is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Licq; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 */
20
21#ifndef SEARCHUSERDLG_H
22#define SEARCHUSERDLG_H
23
24// Search user code base written by Alan Penner (apenner@andrew.cmu.edu)
25// modified by Graham Roff && Dirk A. Mueller <dmuell@gmx.net>
26
27#include <QDialog>
28
29class QCheckBox;
30class QComboBox;
31class QGroupBox;
32class QLabel;
33class QLineEdit;
34class QPushButton;
35class QTreeWidget;
36
37class CSearchAck;
38class ICQEvent;
39
40namespace LicqQtGui
41{
42//TODO for protocol plugin support
43
44class SearchUserDlg : public QDialog
45{
46  Q_OBJECT
47
48public:
49  SearchUserDlg();
50
51public slots:
52  void reject();
53
54private:
55  unsigned long ppid;
56  unsigned long searchTag;
57
58  QLabel* lblSearch;
59
60  QLineEdit* edtEmail;
61  QLineEdit* edtKeyword;
62  QLineEdit* edtFirst;
63  QLineEdit* edtLast;
64  QLineEdit* edtNick;
65  QLineEdit* edtUin;
66  QLineEdit* edtCity;
67  QLineEdit* edtState;
68  QLineEdit* edtCoName;
69  QLineEdit* edtCoDept;
70  QLineEdit* edtCoPos;
71
72  QGroupBox* grpParms;
73  QGroupBox* grpResult;
74
75  QComboBox* cmbAge;
76  QComboBox* cmbCountry;
77  QComboBox* cmbGender;
78  QComboBox* cmbLanguage;
79
80  QCheckBox* chkOnlineOnly;
81
82  QPushButton* btnSearch;
83  QPushButton* btnReset;
84  QPushButton* btnDone;
85  QPushButton* btnInfo;
86  QPushButton* btnAdd;
87
88  QTreeWidget* foundView;
89
90  void searchFound(const CSearchAck* sa);
91  void searchDone(const CSearchAck* sa);
92  void searchFailed();
93
94private slots:
95  void startSearch();
96  void resetSearch();
97  void searchResult(ICQEvent* e);
98  void selectionChanged();
99  void viewInfo();
100  void addUser();
101};
102
103} // namespace LicqQtGui
104
105#endif
Note: See TracBrowser for help on using the browser.