LeechCraft Azoth 0.6.70-17335-ge406ffdcaf
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
imucjoinwidget.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_IMUCJOINWIDGET_H
10#define PLUGINS_AZOTH_INTERFACES_IMUCJOINWIDGET_H
11#include <QVariant>
12
13namespace LC
14{
15namespace Azoth
16{
25 {
26 public:
27 virtual ~IMUCJoinWidget () {}
28
43 virtual void AccountSelected (QObject *account) = 0;
44
51 virtual void Join (QObject *account) = 0;
52
55 virtual void Cancel () = 0;
56
80 virtual QVariantMap GetIdentifyingData () const = 0;
81
92 virtual void SetIdentifyingData (const QVariantMap& data) = 0;
93
104 virtual void validityChanged (bool isValid) = 0;
105 };
106}
107}
108
109Q_DECLARE_INTERFACE (LC::Azoth::IMUCJoinWidget,
110 "org.Deviant.LeechCraft.Azoth.IMUCJoinWidget/1.0")
111
112#endif
This interface defines methods that should be implemented in widgets which are used to join MUC rooms...
virtual void SetIdentifyingData(const QVariantMap &data)=0
Sets the previously saved join parameters.
virtual void Cancel()=0
Called when user decides to not join any chatrooms.
virtual void validityChanged(bool isValid)=0
Notifies about validity of the input.
virtual void Join(QObject *account)=0
Called when user decides to join a chatroom from the given account.
virtual void AccountSelected(QObject *account)=0
Called when user selects a different account of this protocol.
virtual QVariantMap GetIdentifyingData() const =0
Returns the map with current join parameters.