4 * Copyright (C) 2008 Jaroslav Reznik <rezzabuh@gmail.com>
10 #include "maknetomainwindow.h"
11 //#include "featurelist.h"
15 namespace MaknetoBackend
{
17 class TelepathyClient
;
22 * This is Makneto class - central class of Makneto suite
25 * @author Jaroslav Reznik <rezzabuh@gmail.com>
29 //class MaknetoContactList;
30 class MaknetoMainWindow
;
32 class Makneto
: public QObject
38 static Makneto
* Instance();
41 MaknetoMainWindow
*getMaknetoMainWindow() { return m_mainwindow
; }
44 // void actionNewSession(const QString &, ChatType type = Chat, const QString &nick = QString());
45 // void actionNewSession();
46 // void contactNewSession(QAction *action); //FIXME
47 // void contactDetails(QAction *action); //FIXME
48 // void addUser(const XMPP::Jid &, const QString &, bool requestAuth); //FIXME
50 void setMaknetoMainWindow(MaknetoMainWindow
*mainwindow
) { m_mainwindow
= mainwindow
; }
53 void onTelepathyInitializerFinished(MaknetoBackend::TelepathyClient
*);
56 //void newSession(const QString &text, ChatType type, const QString &nick = QString()); //FIXME
59 void clientInitialised(MaknetoBackend::TelepathyClient
*);
63 Makneto(QObject
*parent
=0);
64 Q_DISABLE_COPY(Makneto
);
66 MaknetoMainWindow
*m_mainwindow
;
68 MaknetoBackend::TelepathyClient
*m_client
;
69 static Makneto
*m_instance
;