LeechCraft Azoth 0.6.70-17335-ge406ffdcaf
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
moodinfo.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 <QString>
12
13namespace LC
14{
15namespace Azoth
16{
22 struct MoodInfo
23 {
29 QString Mood_;
30
33 QString Text_;
34 };
35
45 inline bool operator== (const MoodInfo& i1, const MoodInfo& i2)
46 {
47 return i1.Mood_ == i2.Mood_ &&
48 i1.Text_ == i2.Text_;
49 }
50
61 inline bool operator!= (const MoodInfo& i1, const MoodInfo& i2)
62 {
63 return !(i1 == i2);
64 }
65}
66}
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 mood information.
Definition moodinfo.h:23
QString Text_
Optional contact-set text accompanying the mood.
Definition moodinfo.h:33
QString Mood_
Mood name as per XEP-0107.
Definition moodinfo.h:29