1 | /*
|
---|
2 | * servicesdlg.h - a dialog for browsing Jabber services
|
---|
3 | * Copyright (C) 2001, 2002 Justin Karneges
|
---|
4 | *
|
---|
5 | * This program is free software; you can redistribute it and/or
|
---|
6 | * modify it under the terms of the GNU General Public License
|
---|
7 | * as published by the Free Software Foundation; either version 2
|
---|
8 | * of the License, or (at your option) any later version.
|
---|
9 | *
|
---|
10 | * This program is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | * GNU General Public License for more details.
|
---|
14 | *
|
---|
15 | * You should have received a copy of the GNU General Public License
|
---|
16 | * along with this library; if not, write to the Free Software
|
---|
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
18 | *
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef SERVICESDLG_H
|
---|
22 | #define SERVICESDLG_H
|
---|
23 |
|
---|
24 | #include"ui_search.h"
|
---|
25 | #include"xmpp.h"
|
---|
26 |
|
---|
27 | #include<qdialog.h>
|
---|
28 |
|
---|
29 | using namespace XMPP;
|
---|
30 |
|
---|
31 | class PsiAccount;
|
---|
32 |
|
---|
33 | class RegistrationDlg : public QDialog
|
---|
34 | {
|
---|
35 | Q_OBJECT
|
---|
36 | public:
|
---|
37 | RegistrationDlg(const Jid &, PsiAccount *);
|
---|
38 | ~RegistrationDlg();
|
---|
39 |
|
---|
40 | //protected:
|
---|
41 | // void closeEvent(QCloseEvent *);
|
---|
42 |
|
---|
43 | public slots:
|
---|
44 | void done(int);
|
---|
45 |
|
---|
46 | private slots:
|
---|
47 | void doRegGet();
|
---|
48 | void doRegSet();
|
---|
49 | void jt_finished();
|
---|
50 |
|
---|
51 | private:
|
---|
52 | class Private;
|
---|
53 | Private *d;
|
---|
54 | };
|
---|
55 |
|
---|
56 | class SearchDlg : public SearchUI
|
---|
57 | {
|
---|
58 | Q_OBJECT
|
---|
59 | public:
|
---|
60 | SearchDlg(const Jid &, PsiAccount *);
|
---|
61 | ~SearchDlg();
|
---|
62 |
|
---|
63 | signals:
|
---|
64 | void aInfo(const Jid &);
|
---|
65 | void add(const Jid &, const QString &, const QStringList &, bool authReq);
|
---|
66 |
|
---|
67 | private slots:
|
---|
68 | void doSearchGet();
|
---|
69 | void doSearchSet();
|
---|
70 | void selectionChanged();
|
---|
71 | void jt_finished();
|
---|
72 | void doStop();
|
---|
73 | void doAdd();
|
---|
74 | void doInfo();
|
---|
75 |
|
---|
76 | private:
|
---|
77 | class Private;
|
---|
78 | Private *d;
|
---|
79 |
|
---|
80 | void addEntry(const QString &jid, const QString &nick, const QString &first, const QString &last, const QString &email);
|
---|
81 | void clear();
|
---|
82 | };
|
---|
83 |
|
---|
84 | #endif
|
---|