comparison bellaciao.h @ 4:220e5619bf87

Profiles selection now fill contact list + new Jid class
author Goffi <goffi@goffi.org>
date Thu, 11 Aug 2011 00:02:25 +0200
parents fee291c8d42a
children 48045176d1c6
comparison
equal deleted inserted replaced
3:2195295a2058 4:220e5619bf87
22 22
23 #include <QtGui> 23 #include <QtGui>
24 #include "ui_main_win.h" 24 #include "ui_main_win.h"
25 #include "contact_list.h" 25 #include "contact_list.h"
26 #include "bridge.h" 26 #include "bridge.h"
27 #include "session.h"
27 28
28 class Bellaciao : public QMainWindow, private Ui::MainWindow 29 class Bellaciao : public QMainWindow, private Ui::MainWindow
29 { 30 {
30 Q_OBJECT 31 Q_OBJECT
31 32
32 public: 33 public:
34 static Bellaciao* getInstance();
35 void connectProfiles();
36
37 protected:
33 Bellaciao(); 38 Bellaciao();
34 39
35 40
36 private slots: 41 private slots:
37 void quit(); 42 void quit();
38 void showSettings(); 43 void showSettings();
39 void on_actionToggle_fullscreen_triggered(); 44 void on_actionToggle_fullscreen_triggered();
45 //D-Bus slots
46 void connected(const QString& profile);
47 void addContact(const QString& jid, StringDict attributes, const QStringList& groups, const QString& profile);
40 48
41 private: 49 private:
50 void fillContactList(const QString& profile);
51 static Bellaciao* _instance;
52 Bridge* m_bridge;
53 Session* m_session;
42 ContactList* m_contactList; 54 ContactList* m_contactList;
43 Bridge* m_bridge;
44 }; 55 };
45 56
46 #endif 57 #endif