LeechCraft Azoth 0.6.70-16373-g319c272718
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
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
13namespace LC
14{
15namespace Azoth
16{
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
73Q_DECLARE_METATYPE (LC::Azoth::ActivityInfo)
bool operator!=(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are not equal.
bool operator==(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are equal.
Describes contact activity information.
QString Specific_
Specific activity name within the General_ one.
QString General_
General activity name as per XEP-0108.
QString Text_
Optional contact-set text accompanying the activity.