LeechCraft Azoth 0.6.70-17609-g3dde4097dd
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
imucprotocol.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#pragma once
10
11#include <QVariantMap>
12
13class QWidget;
14
15namespace LC
16{
17namespace Azoth
18{
25 {
26 public:
27 virtual ~IMUCProtocol () {};
28
45 virtual QWidget* GetMUCJoinWidget () = 0;
46
72 virtual QVariantMap TryGuessMUCIdentifyingData (const QString& input, QObject *entryObj)
73 {
74 Q_UNUSED (input);
75 Q_UNUSED (entryObj);
76 return {};
77 }
78 };
79}
80}
81
82Q_DECLARE_INTERFACE (LC::Azoth::IMUCProtocol,
83 "org.Deviant.LeechCraft.Azoth.IMUCProtocol/1.0")
Interface for protocols supporting multiuser chat rooms.
virtual QVariantMap TryGuessMUCIdentifyingData(const QString &input, QObject *entryObj)
Tries to guess MUC identifying data from user input.
virtual QWidget * GetMUCJoinWidget()=0
Returns the widget used to set up the MUC join options.