X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.h;h=914205347e43370d71d4534fce6a7b75a7dfad41;hb=08adbf35b56f8ce8cf3a8edf614aa0c67061e60f;hp=3c88580c37d0d0cbd357819f145712384b7f0b34;hpb=72f1a93311815cc637358f52046a4cf311bbd9f4;p=quassel.git diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index 3c88580c..91420534 100644 --- a/src/common/bufferviewconfig.h +++ b/src/common/bufferviewconfig.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 * @@ -32,6 +32,7 @@ class BufferViewConfig : public SyncableObject { Q_PROPERTY(bool addNewBuffersAutomatically READ addNewBuffersAutomatically WRITE setAddNewBuffersAutomatically) Q_PROPERTY(bool sortAlphabetically READ sortAlphabetically WRITE setSortAlphabetically) Q_PROPERTY(bool hideInactiveBuffers READ hideInactiveBuffers WRITE setHideInactiveBuffers) + Q_PROPERTY(bool disableDecoration READ disableDecoration WRITE setDisableDecoration) Q_PROPERTY(int allowedBufferTypes READ allowedBufferTypes WRITE setAllowedBufferTypes) Q_PROPERTY(int minimumActivity READ minimumActivity WRITE setMinimumActivity) @@ -39,6 +40,7 @@ public: BufferViewConfig(int bufferViewId, QObject *parent = 0); BufferViewConfig(int bufferViewId, const QVariantMap &properties, QObject *parent = 0); + inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } public slots: inline int bufferViewId() const { return _bufferViewId; } @@ -55,6 +57,9 @@ public slots: inline bool sortAlphabetically() const { return _sortAlphabetically; } void setSortAlphabetically(bool sortAlphabetically); + inline bool disableDecoration() const { return _disableDecoration; } + void setDisableDecoration(bool disableDecoration); + inline int allowedBufferTypes() const { return _allowedBufferTypes; } void setAllowedBufferTypes(int bufferTypes); @@ -63,7 +68,7 @@ public slots: inline bool hideInactiveBuffers() const { return _hideInactiveBuffers; } void setHideInactiveBuffers(bool hideInactiveBuffers); - + virtual inline void requestSetBufferViewName(const QString &bufferViewName) { emit setBufferViewNameRequested(bufferViewName); } const QList &bufferList() const { return _buffers; } @@ -88,13 +93,14 @@ public slots: virtual inline void requestRemoveBuffer(const BufferId &bufferId) { emit removeBufferRequested(bufferId); } void removeBufferPermanently(const BufferId &bufferId); virtual inline void requestRemoveBufferPermanently(const BufferId &bufferId) { emit removeBufferPermanentlyRequested(bufferId); } - - + + signals: void bufferViewNameSet(const QString &bufferViewName); void networkIdSet(const NetworkId &networkId); void addNewBuffersAutomaticallySet(bool addNewBuffersAutomatically); - void sortAlphabeticallySet(bool sortAlphabetically); + void sortAlphabeticallySet(bool sortAlphabetically); + void disableDecorationSet(bool disableDecoration); void allowedBufferTypesSet(int allowedBufferTypes); void minimumActivitySet(int activity); void hideInactiveBuffersSet(bool hideInactiveBuffers); @@ -108,7 +114,7 @@ signals: void bufferPermanentlyRemoved(const BufferId &bufferId); void removeBufferRequested(const BufferId &bufferId); void removeBufferPermanentlyRequested(const BufferId &bufferId); - + void setBufferViewNameRequested(const QString &bufferViewName); private: @@ -118,6 +124,7 @@ private: bool _addNewBuffersAutomatically; bool _sortAlphabetically; bool _hideInactiveBuffers; + bool _disableDecoration; int _allowedBufferTypes; int _minimumActivity; QList _buffers;