X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=684cb581331358369f84eb3651254cca8b5b2eef;hp=fb5247d8cc9918b294d906941506c96fd06cda00;hb=1b113021e8d82f93f46e02cf66428aebfb7d0357;hpb=9bb1e377323247ce65e70f2506f096098969d19e diff --git a/src/client/client.h b/src/client/client.h index fb5247d8..684cb581 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); @@ -120,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(); @@ -152,7 +154,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 *); @@ -183,6 +185,9 @@ private slots: void setConnectedToCore(AccountId id, QIODevice *socket = 0); void setSyncedToCore(); void requestInitialBacklog(); + void createDefaultBufferView(); + void createDefaultIdentity(); + void createDefaultNetworks(); void setSecuredConnection();