X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=core%2Fcore.h;h=46258ae612f40b11b56bfeba8b4807d644774d26;hp=7cfececef468a89c08280050ff646bc17f6b3999;hb=65919ad0ffef03335bf8358836c65a77cbed247d;hpb=8b192b08f3df4ce0e7cc4a08564645c76efa688d diff --git a/core/core.h b/core/core.h index 7cfecece..46258ae6 100644 --- a/core/core.h +++ b/core/core.h @@ -27,31 +27,35 @@ #include "server.h" -typedef QMap VarMap; - -class Core : public QThread { +class Core : public QObject { Q_OBJECT public: - static void init(); - static VarMap loadNetworks(); - static void storeNetworks(VarMap); - static VarMap loadIdentities(); - static void storeIdentities(VarMap); + Core(); + void init(); + VarMap loadNetworks(); + void storeNetworks(VarMap); + VarMap loadIdentities(); + void storeIdentities(VarMap); public slots: - void inputLine(const QString &); // temp + void inputLine(QString); // temp void connectToIrc(const QString &, quint16 port = 6667); signals: void outputLine(const QString &); // temp - + + private slots: + void globalDataUpdated(QString); + private: - void run(); + //void run(); Server server; // temp }; +extern Core *core; + #endif