LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
activityinfo.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 <QMetaType>
12
13
namespace
LC
14
{
15
namespace
Azoth
16
{
22
struct
ActivityInfo
23
{
29
QString
General_
;
30
33
QString
Specific_
;
34
37
QString
Text_
;
38
};
39
49
inline
bool
operator==
(
const
ActivityInfo
& i1,
const
ActivityInfo
& i2)
50
{
51
return
i1.General_ == i2.General_ &&
52
i1.Specific_ == i2.Specific_ &&
53
i1.Text_ == i2.Text_;
54
}
55
66
inline
bool
operator!=
(
const
ActivityInfo
& i1,
const
ActivityInfo
& i2)
67
{
68
return
!(i1 == i2);
69
}
70
}
71
}
72
73
Q_DECLARE_METATYPE (
LC::Azoth::ActivityInfo
)
LC::Azoth::ActivityInfo::General_
QString General_
General activity name as per XEP-0108.
Definition:
activityinfo.h:47
LC::Azoth::ActivityInfo
Describes contact activity information.
Definition:
activityinfo.h:34
LC::Azoth::operator==
bool operator==(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are equal.
Definition:
activityinfo.h:61
LC
Definition:
activityinfo.h:13
LC::Azoth::ActivityInfo::Text_
QString Text_
Optional contact-set text accompanying the activity.
Definition:
activityinfo.h:55
LC::Azoth::operator!=
bool operator!=(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are not equal.
Definition:
activityinfo.h:78
LC::Azoth::ActivityInfo::Specific_
QString Specific_
Specific activity name within the General_ one.
Definition:
activityinfo.h:51
src
plugins
azoth
interfaces
azoth
activityinfo.h
Generated by
1.8.17