X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=ea30bcd41ec6e4b34a54fc2814d17d755fe48120;hp=362b523348dfeaf4d57317bb406fa46f46adc959;hb=46d75f41de7c1aaee605c096da28d4b0d8abf138;hpb=3c2914faeb01f3bc32e29f40179ae88040fbcf59 diff --git a/src/client/client.h b/src/client/client.h index 362b5233..ea30bcd4 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -90,7 +90,7 @@ public: */ static void removeIdentity(IdentityId id); - static void createNetwork(const NetworkInfo &info); + static void createNetwork(const NetworkInfo &info, const QStringList &persistentChannels = QStringList()); static void updateNetwork(const NetworkInfo &info); static void removeNetwork(NetworkId id); @@ -108,6 +108,7 @@ public: static bool isConnected(); static bool isSynced(); + static inline bool internalCore() { return instance()->_internalCore; } static void userInput(BufferInfo bufferInfo, QString message); @@ -119,6 +120,8 @@ public: static void logMessage(QtMsgType type, const char *msg); static inline const QString &debugLog() { return instance()->_debugLogBuffer; } + static inline void registerClientSyncer(ClientSyncer *syncer) { emit instance()->newClientSyncer(syncer); } + signals: void sendInput(BufferInfo, QString message); void requestNetworkStates(); @@ -126,7 +129,6 @@ signals: void showConfigWizard(const QVariantMap &coredata); void connected(); - void securedConnection(); void disconnected(); void coreConnectionStateChanged(bool); @@ -151,7 +153,7 @@ signals: void networkCreated(NetworkId id); void networkRemoved(NetworkId id); - void requestCreateNetwork(const NetworkInfo &info); + void requestCreateNetwork(const NetworkInfo &info, const QStringList &persistentChannels = QStringList()); void requestRemoveNetwork(NetworkId); void newClientSyncer(ClientSyncer *); @@ -182,8 +184,9 @@ private slots: void setConnectedToCore(AccountId id, QIODevice *socket = 0); void setSyncedToCore(); void requestInitialBacklog(); - void setSecuredConnection(); - + void createDefaultBufferView(); + void createDefaultIdentity(); + void createDefaultNetworks(); private: Client(QObject *parent = 0); @@ -211,6 +214,7 @@ private: ClientMode clientMode; bool _connectedToCore, _syncedToCore; + bool _internalCore; QHash _networks; QHash _identities;