X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebufferviewmanager.h;h=fd28c1d92adff3387a5adde782792c78091fffc3;hp=235c9dcb667ce6d427a1d4626b08c0a6da93ada0;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=4e0445e459c690cfa6013c5ad574e94f9214827b diff --git a/src/core/corebufferviewmanager.h b/src/core/corebufferviewmanager.h index 235c9dcb..fd28c1d9 100644 --- a/src/core/corebufferviewmanager.h +++ b/src/core/corebufferviewmanager.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 * @@ -23,16 +23,29 @@ #include "bufferviewmanager.h" -class CoreBufferViewManager : public BufferViewManager { - Q_OBJECT +class CoreSession; + +class CoreBufferViewManager : public BufferViewManager +{ + SYNCABLE_OBJECT + Q_OBJECT public: - CoreBufferViewManager(SignalProxy *proxy, QObject *parent = 0); + CoreBufferViewManager(SignalProxy *proxy, CoreSession *parent); - virtual const QMetaObject *syncMetaObject() const { return &BufferViewManager::staticMetaObject; } + inline virtual const QMetaObject *syncMetaObject() const { return &BufferViewManager::staticMetaObject; } public slots: - virtual void requestCreateBufferView(const QString &bufferViewName); + virtual void requestCreateBufferView(const QVariantMap &properties); + virtual void requestCreateBufferViews(const QVariantList &properties); + virtual void requestDeleteBufferView(int bufferViewId); + virtual void requestDeleteBufferViews(const QVariantList &bufferViews); + + void saveBufferViews(); + +private: + CoreSession *_coreSession; }; + #endif // COREBUFFERVIEWMANAGER_H