~neon/kdenetwork/trunk

« back to all changes in this revision

Viewing changes to kopete/protocols/jabber/ui/jabberregisteraccount.h

  • Committer: uwolfer
  • Date: 2013-06-08 10:12:41 UTC
  • Revision ID: svn-v4:283d02a7-25f6-0310-bc7c-ecb5cbfe19da:trunk/KDE/kdenetwork:1357331
kdenetwork has moved to Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/***************************************************************************
3
 
                   jabberregister.h  -  Register dialog for Jabber
4
 
                             -------------------
5
 
    begin                : Sun Jul 11 2004
6
 
    copyright            : (C) 2004 by Till Gerken <till@tantalo.net>
7
 
 
8
 
    Copyright 2006 by Tommi Rantala <tommi.rantala@cs.helsinki.fi>
9
 
 
10
 
                Kopete (C) 2001-2006 Kopete developers <kopete-devel@kde.org>
11
 
 ***************************************************************************/
12
 
 
13
 
/***************************************************************************
14
 
 *                                                                         *
15
 
 *   This program is free software; you can redistribute it and/or modify  *
16
 
 *   it under the terms of the GNU General Public License as published by  *
17
 
 *   the Free Software Foundation; either version 2 of the License, or     *
18
 
 *   (at your option) any later version.                                   *
19
 
 *                                                                         *
20
 
 ***************************************************************************/
21
 
 
22
 
#ifndef JABBERREGISTER_H
23
 
#define JABBERREGISTER_H
24
 
 
25
 
#include <kdialog.h>
26
 
#include <QRegExp>
27
 
#include <QPixmap>
28
 
#include <QtCrypto>
29
 
 
30
 
namespace Ui { class DlgJabberRegisterAccount; }
31
 
class JabberClient;
32
 
class JabberEditAccountWidget;
33
 
 
34
 
/**
35
 
@author Till Gerken
36
 
*/
37
 
class JabberRegisterAccount : public KDialog
38
 
{
39
 
 
40
 
Q_OBJECT
41
 
 
42
 
public:
43
 
        JabberRegisterAccount ( JabberEditAccountWidget *parent = 0 );
44
 
 
45
 
        ~JabberRegisterAccount ();
46
 
 
47
 
        void setServer ( const QString &server );
48
 
 
49
 
private slots:
50
 
        void slotChooseServer ();
51
 
        void slotJIDInformation ();
52
 
        void slotSSLToggled ();
53
 
        void slotOk ();
54
 
 
55
 
        void slotHandleTLSWarning ( QCA::TLS::IdentityResult, QCA::Validity );
56
 
        void slotCSError ( int error );
57
 
        void slotConnected ();
58
 
 
59
 
        void slotRegisterUserDone ();
60
 
        void slotDeleteDialog ();
61
 
        void validateData ();
62
 
 
63
 
        void disconnect ();
64
 
 
65
 
private:
66
 
        Ui::DlgJabberRegisterAccount *mMainWidget;
67
 
        JabberEditAccountWidget *mParentWidget;
68
 
 
69
 
        QRegExp jidRegExp;
70
 
        QPixmap hintPixmap;
71
 
 
72
 
        JabberClient *jabberClient;
73
 
 
74
 
        bool mSuccess;
75
 
};
76
 
 
77
 
#endif