~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/psicon.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:
25
25
#include <QList>
26
26
 
27
27
#include "profiles.h"
 
28
#include "psiactions.h"
 
29
 
 
30
#include "tabbablewidget.h"
 
31
 
28
32
 
29
33
using namespace XMPP;
30
34
 
74
78
        ProxyManager *proxy() const;
75
79
        FileTransDlg *ftdlg() const;
76
80
 
77
 
        TabDlg* getTabs();
78
 
        TabDlg* newTabs();
79
 
        bool isChatTabbed(ChatDlg*);
80
 
        bool isChatActiveWindow(ChatDlg*);
81
 
        ChatDlg* getChatInTabs(QString);
82
 
        TabDlg* getManagingTabs(ChatDlg*);
83
 
        Q3PtrList<TabDlg>* getTabSets();
84
 
 
85
81
        QWidget *dialogFind(const char *className);
86
82
        void dialogRegister(QWidget *w);
87
83
        void dialogUnregister(QWidget *w);
88
84
 
89
85
        QMenuBar* defaultMenuBar() const;
90
86
 
91
 
        void createAccount(const QString &name, const Jid &j="", const QString &pass="", bool opt_host=false, const QString &host="", int port=5222, bool legacy_ssl_probe = true, UserAccount::SSLFlag ssl=UserAccount::SSL_Auto, int proxy=0);
 
87
        void createAccount(const QString &name, const Jid &j="", const QString &pass="", bool opt_host=false, const QString &host="", int port=5222, bool legacy_ssl_probe = true, UserAccount::SSLFlag ssl=UserAccount::SSL_Auto, QString proxy="");
92
88
        PsiAccount *createAccount(const UserAccount &);
93
89
        //void createAccount(const QString &, const QString &host="", int port=5222, bool ssl=false, const QString &user="", const QString &pass="");
94
90
        void removeAccount(PsiAccount *);
95
91
 
96
92
        void playSound(const QString &);
97
 
        void raiseMainwin();
98
93
 
99
94
        AccountsComboBox *accountsComboBox(QWidget *parent=0, bool online_only = false);
100
95
 
101
 
        const QStringList & recentGCList() const;
 
96
        QStringList recentGCList() const;
102
97
        void recentGCAdd(const QString &);
103
 
        const QStringList & recentBrowseList() const;
 
98
        QStringList recentBrowseList() const;
104
99
        void recentBrowseAdd(const QString &);
105
100
        const QStringList & recentNodeList() const;
106
101
        void recentNodeAdd(const QString &);
108
103
        EventDlg *createEventDlg(const QString &, PsiAccount *);
109
104
        void updateContactGlobal(PsiAccount *, const Jid &);
110
105
 
111
 
        QList<PsiToolBar*> toolbarList() const;
112
 
        PsiToolBar *findToolBar(QString group, int index);
113
106
        PsiActionList *actionList() const;
114
107
 
115
 
        void buildToolbars();
116
 
        bool getToolbarLocation(Q3DockWindow* dw, Qt::Dock& dock, int& index, bool& nl, int& extraOffset) const;
117
 
 
118
108
        IconSelectPopup *iconSelectPopup() const;
119
 
        void processEvent(PsiEvent *);
 
109
        void processEvent(PsiEvent*, ActivationType activationType);
120
110
 
121
111
signals:
122
112
        void quit(int);
145
135
        void statusMenuChanged(int);
146
136
        void pa_updatedActivity();
147
137
        void pa_updatedAccount();
148
 
        void slotApplyOptions(const Options &);
 
138
        void slotApplyOptions();
149
139
        void queueChanged();
150
140
        void recvNextEvent();
151
141
        void setStatusFromDialog(const XMPP::Status &, bool withPriority);
152
142
        void proxy_settingsChanged();
153
143
        void updateMainwinStatus();
154
 
        void tabDying(TabDlg*);
155
 
 
156
 
        void mainWinGeomChanged(QRect saveableGeometry);
 
144
        void doOpenUri(const QUrl &uri);
 
145
        void raiseMainwin();
157
146
 
158
147
private slots:
159
148
        void saveAccounts();
160
 
        void optionsUpdate();
 
149
        void saveCapabilities();
 
150
        void optionChanged(const QString& option);
 
151
        void forceSavePreferences();
 
152
        void startBounce();
161
153
 
162
154
private:
163
155
        class Private;
169
161
        void setShortcuts();
170
162
 
171
163
        friend class PsiAccount; // FIXME
172
 
        void setToggles(bool tog_offline, bool tog_away, bool tog_agents, bool tog_hidden, bool tog_self);
173
 
        void getToggles(bool *tog_offline, bool *tog_away, bool *tog_agents, bool *tog_hidden, bool *tog_self);
174
164
        void promptUserToCreateAccount();
 
165
        QString optionsFile() const;
 
166
 
 
167
        void registerCaps(const QString& ext, const QStringList& features);
175
168
 
176
169
        friend class EventQueue;
177
170
        int getId();