LeechCraft Azoth 0.6.70-17335-ge406ffdcaf
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
iconfigurablemuc.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#ifndef PLUGINS_AZOTH_INTERFACES_ICONFIGURABLEMUC_H
10#define PLUGINS_AZOTH_INTERFACES_ICONFIGURABLEMUC_H
11#include <QMetaType>
12
13class QWidget;
14
15namespace LC
16{
17namespace Azoth
18{
37 {
38 public:
39 virtual ~IMUCConfigWidget () {}
40
48 virtual void accept () = 0;
49
59 virtual void dataReady () = 0;
60 };
61
70 {
71 public:
72 virtual ~IConfigurableMUC () {}
73
98 virtual QWidget* GetConfigurationWidget () = 0;
99
114 virtual void AcceptConfiguration (QWidget *widget) = 0;
115 };
116}
117}
118
119Q_DECLARE_INTERFACE (LC::Azoth::IMUCConfigWidget,
120 "org.Deviant.LeechCraft.Azoth.IMUCConfigWidget/1.0")
121Q_DECLARE_INTERFACE (LC::Azoth::IConfigurableMUC,
122 "org.Deviant.LeechCraft.Azoth.IConfigurableMUC/1.0")
123
124#endif
This interfaces is used for MUCs that can be configured.
virtual void AcceptConfiguration(QWidget *widget)=0
Accepts the configuration.
virtual QWidget * GetConfigurationWidget()=0
Returns the widget used for configuration.
This interface is for widgets used to configure the room.
virtual void dataReady()=0
This signal notifies about the widget's readiness.
virtual void accept()=0
This function is called to accept the configuration.