![]() |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Interface for protocols supporting multiuser chat rooms. More...
#include "imucprotocol.h"
Public Member Functions | |
virtual | ~IMUCProtocol () |
virtual QWidget * | GetMUCJoinWidget ()=0 |
Returns the widget used to set up the MUC join options. More... | |
virtual QVariantMap | TryGuessMUCIdentifyingData (const QString &input, QObject *entryObj) |
Tries to guess MUC identifying data from user input. More... | |
Interface for protocols supporting multiuser chat rooms.
This interface should be implemented by protocol objects supporting multiuser chat rooms.
Definition at line 24 of file imucprotocol.h.
|
inlinevirtual |
Definition at line 27 of file imucprotocol.h.
|
pure virtual |
Returns the widget used to set up the MUC join options.
The returned widget must implement IMUCJoinWidget.
The caller takes the ownership of the widget, so each time a newly constructed widget should be returned, and the plugin shouldn't delete the widget by itself.
If the protocol doesn't support joining multi-user chats, it is safe to return nullptr here.
|
inlinevirtual |
Tries to guess MUC identifying data from user input.
This method is used by Azoth core and other plugins to try to guess MUC identifying data from the given user input. The input, for example, may be a string like c_plu in case of a XMPP MUC. s_pl us@co nfer ence. jabb er.ru
The method should return a variant map suitable to passing to IMUCJoinWidget::SetIdentifyingData().
The entryObj can be used to get additional information about the context of the user input. For example, if only room name is given, it can be used to get the corresponding server address.
[in] | input | The user input, like a human-readable MUC name. |
[in] | entryObj | The entry this input is relevant to. |
Definition at line 72 of file imucprotocol.h.