LeechCraft Azoth
0.6.70-18450-gabe19ee3b0
Modular multiprotocol IM plugin for LeechCraft
Toggle main menu visibility
Loading...
Searching...
No Matches
imucentry.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_IMUCENTRY_H
10
#define PLUGINS_AZOTH_INTERFACES_IMUCENTRY_H
11
#include <QFlags>
12
#include <QVariant>
13
#include <util/azoth/emitters/mucentry.h>
14
15
namespace
LC
16
{
17
namespace
Azoth
18
{
19
class
ICLEntry
;
20
31
class
IMUCEntry
32
{
33
protected
:
34
Emitters::MUCEntry
MUCEmitter_
;
35
36
virtual
~IMUCEntry
() =
default
;
37
public
:
38
Emitters::MUCEntry&
GetMUCEntryEmitter
() {
return
MUCEmitter_
; }
39
40
enum
MUCFeature
41
{
45
MUCFCanBeConfigured
= 0x0001,
46
50
MUCFCanHaveSubject
= 0x0002,
51
54
MUCFCanInvite
= 0x0004
55
};
56
57
Q_DECLARE_FLAGS (MUCFeatures,
MUCFeature
)
58
59
63
virtual MUCFeatures
GetMUCFeatures
() const = 0;
64
73
virtual QString
GetMUCSubject
() const = 0;
74
83
virtual
void
SetMUCSubject
(const QString& subject) = 0;
84
92
virtual
bool
CanChangeSubject
() const = 0;
93
103
virtual
QList
<
ICLEntry
*>
GetParticipants
() = 0;
104
112
virtual
bool
IsAutojoined
() const = 0;
113
120
virtual
void
Join
() = 0;
121
134
virtual
void
Leave
(const QString& msg = QString ()) = 0;
135
140
virtual QString
GetNick
() const = 0;
141
150
virtual
void
SetNick
(const QString& nick) = 0;
151
159
virtual QString
GetGroupName
() const = 0;
160
172
virtual QString
GetRealID
(const
ICLEntry
& participant) const = 0;
173
183
virtual QVariantMap
GetIdentifyingData
() const = 0;
184
203
virtual
void
InviteToMUC
(const QString& userId, const QString& msg) = 0;
204
};
205
}
206
}
207
208
Q_DECLARE_INTERFACE (
LC
::
Azoth
::
IMUCEntry
,
"org.Deviant.LeechCraft.Azoth.IMUCEntry/1.0"
)
209
Q_DECLARE_OPERATORS_FOR_FLAGS (
LC
::
Azoth
::
IMUCEntry
::MUCFeatures)
210
211
#endif
LC::Azoth::ICLEntry
Represents a single entry in contact list.
Definition
iclentry.h:57
LC::Azoth::IMUCEntry
Represents a single MUC entry in the CL.
Definition
imucentry.h:32
LC::Azoth::IMUCEntry::Leave
virtual void Leave(const QString &msg=QString())=0
Requests to leave the room.
LC::Azoth::IMUCEntry::InviteToMUC
virtual void InviteToMUC(const QString &userId, const QString &msg)=0
Invites the user to this MUC.
LC::Azoth::IMUCEntry::MUCFeature
MUCFeature
Definition
imucentry.h:41
LC::Azoth::IMUCEntry::MUCFCanInvite
@ MUCFCanInvite
Definition
imucentry.h:54
LC::Azoth::IMUCEntry::MUCFCanBeConfigured
@ MUCFCanBeConfigured
Definition
imucentry.h:45
LC::Azoth::IMUCEntry::MUCFCanHaveSubject
@ MUCFCanHaveSubject
Definition
imucentry.h:50
LC::Azoth::IMUCEntry::GetMUCSubject
virtual QString GetMUCSubject() const =0
Returns subject of this MUC.
LC::Azoth::IMUCEntry::GetRealID
virtual QString GetRealID(const ICLEntry &participant) const =0
Returns the real ID of a participant.
LC::Azoth::IMUCEntry::CanChangeSubject
virtual bool CanChangeSubject() const =0
Returns whether MUC subject can be changed.
LC::Azoth::IMUCEntry::IsAutojoined
virtual bool IsAutojoined() const =0
Whether this MUC room was automatically joined.
LC::Azoth::IMUCEntry::Join
virtual void Join()=0
Requests to join the room.
LC::Azoth::IMUCEntry::GetMUCEntryEmitter
Emitters::MUCEntry & GetMUCEntryEmitter()
Definition
imucentry.h:38
LC::Azoth::IMUCEntry::~IMUCEntry
virtual ~IMUCEntry()=default
LC::Azoth::IMUCEntry::GetNick
virtual QString GetNick() const =0
Returns the nick of our participant.
LC::Azoth::IMUCEntry::MUCEmitter_
Emitters::MUCEntry MUCEmitter_
Definition
imucentry.h:34
LC::Azoth::IMUCEntry::GetMUCFeatures
virtual MUCFeatures GetMUCFeatures() const =0
The list of features of this MUC.
LC::Azoth::IMUCEntry::GetParticipants
virtual QList< ICLEntry * > GetParticipants()=0
The list of participants of this MUC.
LC::Azoth::IMUCEntry::SetNick
virtual void SetNick(const QString &nick)=0
Changes the nick of our participant.
LC::Azoth::IMUCEntry::SetMUCSubject
virtual void SetMUCSubject(const QString &subject)=0
Updates the subject of this MUC.
LC::Azoth::IMUCEntry::GetGroupName
virtual QString GetGroupName() const =0
Returns human-readable name of participants' group.
LC::Azoth::IMUCEntry::GetIdentifyingData
virtual QVariantMap GetIdentifyingData() const =0
Returns the data identifying this room.
QList
Definition
iaccountactionsprovider.h:16
LC::Azoth
Definition
activityinfo.h:16
LC
Definition
activityinfo.h:14
src
plugins
azoth
interfaces
azoth
imucentry.h
Generated by
1.17.0