2
* accountdlg.h - dialogs for manipulating PsiAccounts
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 library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#include"ui_accountmanage.h"
26
#include"ui_accountadd.h"
27
#include"ui_accountreg.h"
28
#include"ui_accountremove.h"
29
#include"ui_accountmodify.h"
54
class MiniClient : public QObject
58
MiniClient(QObject *parent=0);
62
void connectToServer(const Jid &j, bool ssl, const QString &host, int port, ProxyManager *pm, int proxy, QString *pass);
71
void tls_handshaken();
73
void cs_securityLayerActivated(int);
74
void cs_needAuthParams(bool, bool, bool);
75
void cs_authenticated();
76
void cs_connectionClosed();
77
void cs_delayedCloseFinished();
82
AdvancedConnector *conn;
85
QCATLSHandler *tlsHandler;
86
QPtrList<QCA::Cert> certList;
92
class AccountManageDlg : public AccountManageUI
96
AccountManageDlg(PsiCon *, const char *name=0);
100
void qlv_selectionChanged(QListViewItem *);
103
void modify(QListViewItem *);
105
void accountAdded(PsiAccount *);
106
void accountUpdated(PsiAccount *);
107
void accountRemoved(PsiAccount *);
113
class AccountAddDlg : public AccountAddUI
117
AccountAddDlg(PsiCon *, QWidget *parent=0, const char *name=0);
122
void setAddButton(const QString &);
128
class AccountModifyDlg : public AccountModifyUI
132
AccountModifyDlg(PsiAccount *, QWidget *parent=0, const char *name=0);
135
void setPassword(const QString &);
138
void sslToggled(bool);
139
void hostToggled(bool);
142
void detailsChangePW();
146
void pgpToggled(bool);
156
void setKeyID(bool b, const QString &s="");
159
class AccountRegDlg : public AccountRegUI
163
AccountRegDlg(ProxyManager *, QWidget *parent=0, const char *name=0);
167
QString sp_host, pass;
174
//void closeEvent(QCloseEvent *);
180
void sslToggled(bool);
181
void hostToggled(bool);
184
void client_handshaken();
193
ProxyManager *proxyman;
198
class AccountRemoveDlg : public AccountRemoveUI
202
AccountRemoveDlg(ProxyManager *, const UserAccount &, QWidget *parent=0, const char *name=0);
207
//void closeEvent(QCloseEvent *);
214
void bg_clicked(int);
216
void client_handshaken();
218
void unreg_finished();