X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientbufferviewmanager.cpp;fp=src%2Fclient%2Fclientbufferviewmanager.cpp;h=c46ff3ac7224f345c6d619f72129702c8c32ee4b;hp=0000000000000000000000000000000000000000;hb=ee7d56f3abdb6ee4ce6c79ddea0142407b4e9e74;hpb=7e20c659f88e26ccdfdc65f4894ed6ecf61ca8a9 diff --git a/src/client/clientbufferviewmanager.cpp b/src/client/clientbufferviewmanager.cpp new file mode 100644 index 00000000..c46ff3ac --- /dev/null +++ b/src/client/clientbufferviewmanager.cpp @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2005-08 by the Quassel Project * + * devel@quassel-irc.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) version 3. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "clientbufferviewmanager.h" + +#include "clientbufferviewconfig.h" + +ClientBufferViewManager::ClientBufferViewManager(SignalProxy *proxy, QObject *parent) + : BufferViewManager(proxy, parent) +{ +} + +BufferViewConfig *ClientBufferViewManager::bufferViewConfigFactory(int bufferViewConfigId) { + return new ClientBufferViewConfig(bufferViewConfigId, this); +} + +QList ClientBufferViewManager::clientBufferViewConfigs() const { + QList clientConfigs; + foreach(BufferViewConfig *config, bufferViewConfigs()) { + clientConfigs << static_cast(config); + } + return clientConfigs; +} + +ClientBufferViewConfig *ClientBufferViewManager::clientBufferViewConfig(int bufferViewId) const { + return static_cast(bufferViewConfig(bufferViewId)); +} +