diff 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
line wrap: on
line diff
--- a/bellaciao.h	Mon Aug 08 10:59:34 2011 +0200
+++ b/bellaciao.h	Thu Aug 11 00:02:25 2011 +0200
@@ -24,12 +24,17 @@
 #include "ui_main_win.h"
 #include "contact_list.h"
 #include "bridge.h"
+#include "session.h"
 
 class Bellaciao : public QMainWindow, private Ui::MainWindow
 {
     Q_OBJECT
 
     public:
+        static Bellaciao* getInstance();
+        void connectProfiles();
+
+    protected:
         Bellaciao();
         
 
@@ -37,10 +42,16 @@
         void quit();
         void showSettings();
         void on_actionToggle_fullscreen_triggered();
+        //D-Bus slots
+        void connected(const QString& profile);
+        void addContact(const QString& jid, StringDict attributes, const QStringList& groups, const QString& profile);
 
     private:
+        void fillContactList(const QString& profile);
+        static Bellaciao* _instance;
+        Bridge* m_bridge;
+        Session* m_session;
         ContactList* m_contactList;
-        Bridge* m_bridge;
 };
 
 #endif