![]() |
LeechCraft Azoth
0.6.70-16373-g319c272718
Modular multiprotocol IM plugin for LeechCraft
|
This interface is for widgets used to configure the room. More...
#include "iconfigurablemuc.h"
Public Member Functions | |
virtual | ~IMUCConfigWidget () |
virtual void | accept ()=0 |
This function is called to accept the configuration. More... | |
virtual void | dataReady ()=0 |
This signal notifies about the widget's readiness. More... | |
This interface is for widgets used to configure the room.
The widgets that are returned from the IConfigurableMUC::GetConfigurationWidget() method must implement this interface.
They are shown to the user, and since it's better to pre-fill the widget with current room configuration, but fetching the configuration may require communicating to the server, the widget would be in disabled state until the dataReady() signal is emitted.
When the user chooses to accept the widget, then accept() method or IConfigurableMUC::AcceptConfiguration() method would be called depending on the context, but never both at once. It's suggested that one should just be implemented by calling the other.
Definition at line 36 of file iconfigurablemuc.h.
|
inlinevirtual |
Definition at line 39 of file iconfigurablemuc.h.
|
pure virtual |
This function is called to accept the configuration.
If the user chooses to accept the configuration, then this function is called.
|
pure virtual |
This signal notifies about the widget's readiness.
When the current room configuration data arrives and the widget is filled with it, this signal should be emitted to notify Azoth that it's now safe to allow the user to interact with the widget.