X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=core%2Fcore.h;h=f9cd9f167642a760f7a91ff5af4b2adeeba7b4eb;hp=4220056d940de8aa4d268bcb5f2b9e6b9d1b944a;hb=e368a1672c4f917bfa6adb52dae3b5ebfcd0db18;hpb=a975272aca8f0deb25c395532b189141979304e5;ds=sidebyside diff --git a/core/core.h b/core/core.h index 4220056d..f9cd9f16 100644 --- a/core/core.h +++ b/core/core.h @@ -25,17 +25,33 @@ #include #include -typedef QMap VarMap; +#include "server.h" -class Core { +class Core : public QThread { + Q_OBJECT public: - static void init(); + + static Core * init(); static VarMap loadNetworks(); static void storeNetworks(VarMap); static VarMap loadIdentities(); static void storeIdentities(VarMap); + public slots: + void inputLine(const QString &); // temp + void connectToIrc(const QString &, quint16 port = 6667); + + signals: + void outputLine(const QString &); // temp + + private: + void run(); + + Server server; // temp + }; +extern Core *core; + #endif