~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to src/mucjoindlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * mucjoindlg.h
3
 
 * Copyright (C) 2001, 2002  Justin Karneges
 
3
 * Copyright (C) 2001-2008  Justin Karneges, Michail Pishchagin
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU General Public License
29
29
class QString;
30
30
class PsiAccount;
31
31
 
32
 
class MUCJoinDlg : public QDialog, public Ui::MUCJoin
 
32
#include "xmpp_jid.h"
 
33
 
 
34
class MUCJoinDlg : public QDialog
33
35
{
34
36
        Q_OBJECT
35
37
 
37
39
        MUCJoinDlg(PsiCon *, PsiAccount *);
38
40
        ~MUCJoinDlg();
39
41
 
 
42
        void setJid(const XMPP::Jid& jid);
 
43
        void setNick(const QString nick);
 
44
        void setPassword(const QString& password);
 
45
 
40
46
        void joined();
41
47
        void error(int, const QString &);
42
48
 
43
 
protected:
44
 
        //void closeEvent(QCloseEvent *);
45
 
 
46
49
public slots:
47
50
        void done(int);
48
51
        void doJoin();
49
52
 
 
53
        // reimplemented
 
54
        void accept();
 
55
 
50
56
private slots:
51
57
        void updateIdentity(PsiAccount *);
52
58
        void updateIdentityVisibility();
54
60
        void recent_activated(int);
55
61
 
56
62
private:
57
 
        class Private;
58
 
        Private *d;
 
63
        Ui::MUCJoin ui_;
 
64
        PsiCon* controller_;
 
65
        PsiAccount* account_;
 
66
        QPushButton* joinButton_;
 
67
        XMPP::Jid jid_;
59
68
 
60
69
        void disableWidgets();
61
70
        void enableWidgets();
 
71
        void setWidgetsEnabled(bool enabled);
62
72
};
63
73
 
64
74
#endif