move current 'KDE' gui to separate directory ui-kde
[makneto-zunavac1.git] / src / ui-kde / makneto.h
blobb2d2d72033a58fa7d6014c95f452380bd5fa9d1c
1 /*
2 * makneto.h
4 * Copyright (C) 2008 Jaroslav Reznik <rezzabuh@gmail.com>
5 */
7 #ifndef MAKNETO_H
8 #define MAKNETO_H
10 #include "maknetomainwindow.h"
11 //#include "featurelist.h"
13 #include <QObject>
15 namespace MaknetoBackend {
17 class TelepathyClient;
18 class Session;
21 /**
22 * This is Makneto class - central class of Makneto suite
24 * @short Makneto
25 * @author Jaroslav Reznik <rezzabuh@gmail.com>
26 * @version 0.1
29 //class MaknetoContactList;
30 class MaknetoMainWindow;
32 class Makneto : public QObject
34 Q_OBJECT
36 public:
38 static Makneto* Instance();
39 virtual ~Makneto();
41 MaknetoMainWindow *getMaknetoMainWindow() { return m_mainwindow; }
43 public Q_SLOTS:
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; }
52 //vtheman
53 void onTelepathyInitializerFinished(MaknetoBackend::TelepathyClient *);
55 Q_SIGNALS:
56 //void newSession(const QString &text, ChatType type, const QString &nick = QString()); //FIXME
58 //vtheman
59 void clientInitialised(MaknetoBackend::TelepathyClient *);
61 private:
63 Makneto(QObject *parent=0);
64 Q_DISABLE_COPY(Makneto);
66 MaknetoMainWindow *m_mainwindow;
68 MaknetoBackend::TelepathyClient *m_client;
69 static Makneto *m_instance;
72 #endif // MAKNETO_H