3
* Copyright (C) 2001, 2002, 2006 Justin Karneges, Remko Troncon
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
21
#ifndef ACCOUNTREGDLG_H
22
#define ACCOUNTREGDLG_H
29
#include "ui_accountreg.h"
38
class ServerListQuerier;
44
class AccountRegDlg : public QDialog
48
AccountRegDlg(ProxyManager*, QWidget *parent=0);
51
const XMPP::Jid& jid() const { return jid_; }
52
const QString& pass() const { return pass_; }
53
bool useHost() const { return opt_host_; }
54
const QString& host() const { return host_; }
55
int port() const { return port_; }
56
bool legacySSLProbe() { return legacy_ssl_probe_; }
57
UserAccount::SSLFlag ssl() const { return ssl_; }
58
int proxy() const { return proxy_; }
64
static XMPP::XData convertToXData(const XMPP::Form&);
65
static XMPP::Form convertFromXData(const XMPP::XData&);
72
void hostToggled(bool);
73
void sslActivated(int);
77
void serverListReceived(const QStringList&);
78
void serverListError(const QString&);
80
void client_handshaken();
83
void getFields_finished();
84
void setFields_finished();
88
QScrollArea* fields_container_;
90
ProxyManager *proxy_manager_;
91
ProxyChooser *proxy_chooser_;
92
ServerListQuerier *serverlist_querier_;
97
XMPP::Jid jid_, server_;
98
UserAccount::SSLFlag ssl_;
99
bool opt_host_, legacy_ssl_probe_;