1
/****************************************************************************
2
** accountdlg.h - dialogs for manipulating Jabber accounts
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
****************************************************************************/
27
#include"uniquewindow.h"
29
#include"ui_accountmanage.h"
30
#include"ui_accountmodify.h"
31
#include"busywidget.h"
34
class AccountViewItem : public QListViewItem
37
AccountViewItem(QListView *, JabSession *);
44
class AccountManageDlg : public AccountManageUI
48
AccountManageDlg(JabSessionManager *, QWidget *parent=0, const char *name=0);
51
static AccountManageDlg *find();
54
void signalModify(const QString &);
57
void updateEntry(JabSession *);
58
void sessionUpdate(JabSession *);
62
void modify(QListViewItem *);
65
JabSessionManager *jsm;
68
class AccountModifyDlg : public AccountModifyUI, public UniqueWindow
72
AccountModifyDlg(JabSession *, bool haveSSL, QWidget *parent=0, const char *name=0);
75
static AccountModifyDlg *find(const QString &accname);
78
void sslToggled(bool);
87
class AccountRegisterDlg : public QDialog
91
AccountRegisterDlg(QWidget *parent=0, const char *name=0);
92
~AccountRegisterDlg();
94
void start(const QString &, int, bool, const QString &, const QString &);
97
static bool reg(QWidget *, const QString &, int, bool, const QString &, const QString &);
101
void closeEvent(QCloseEvent *);
104
void accRegisterFinished(bool, const QString &);
105
void jab_error(JabError *);