1
/****************************************************************************
2
** servicesdlg.h - a dialog for browsing Jabber services/agents/transports
3
** Copyright (C) 2001, 2002 Justin Karneges
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.
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.
15
** You should have received a copy of the GNU General Public License
16
** along with this program; if not, write to the Free Software
17
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
19
****************************************************************************/
30
#include"ui_services.h"
33
#include"uniquewindow.h"
34
#include"busywidget.h"
36
#define SERVICESDLG_ACT_REGISTER 0
37
#define SERVICESDLG_ACT_SEARCH 1
40
class ServicesDlg : public ServicesUI
44
ServicesDlg(int localStatus, QWidget *parent=0, const char *name=0);
47
static ServicesDlg *find();
50
void closeEvent(QCloseEvent *);
53
void signalRefresh(QString *id);
54
void signalSearch(const QString &, QString *id);
55
void signalGetRegForm(const QString &, QString *id);
56
void signalCancelTransaction(const QString &);
61
void loadSuccess(JabRoster *);
64
void loadFormSuccess();
67
void localUpdate(const JabRosterEntry &);
70
void serviceSelected(int);
71
void serviceRegister();
73
void doubleClicked(QListBoxItem *i);
76
void restoreWidgets();
82
JabRoster servicesList;
89
class RegistrationDlg : public QDialog, public UniqueWindow
93
RegistrationDlg(const JabForm &, QWidget *parent=0, const char *name=0);
95
static RegistrationDlg *find(const QString &);
99
void closeEvent(QCloseEvent *);
102
void signalSubmitForm(const JabForm &, QString *id);
105
void putRegFormResponse(bool, const QString &err);
106
void localUpdate(const JabRosterEntry &);
113
QPushButton *pb_register, *pb_close;
115
QPtrList<QLabel> lb_field;
116
QPtrList<QLineEdit> le_field;