| 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 | |
|---|
| 29 | class QCheckBox; |
|---|
| 30 | class QComboBox; |
|---|
| 31 | class QGroupBox; |
|---|
| 32 | class QLabel; |
|---|
| 33 | class QLineEdit; |
|---|
| 34 | class QPushButton; |
|---|
| 35 | class QTreeWidget; |
|---|
| 36 | |
|---|
| 37 | class CSearchAck; |
|---|
| 38 | class ICQEvent; |
|---|
| 39 | |
|---|
| 40 | namespace LicqQtGui |
|---|
| 41 | { |
|---|
| 42 | //TODO for protocol plugin support |
|---|
| 43 | |
|---|
| 44 | class SearchUserDlg : public QDialog |
|---|
| 45 | { |
|---|
| 46 | Q_OBJECT |
|---|
| 47 | |
|---|
| 48 | public: |
|---|
| 49 | SearchUserDlg(); |
|---|
| 50 | |
|---|
| 51 | public slots: |
|---|
| 52 | void reject(); |
|---|
| 53 | |
|---|
| 54 | private: |
|---|
| 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 | |
|---|
| 94 | private 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 |
|---|