LeechCraft Azoth  0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
ihavecontactmood.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 <QtPlugin>
12 
13 class QString;
14 
15 namespace LC
16 {
17 namespace Azoth
18 {
19  struct MoodInfo;
20 
38  {
39  public:
40  virtual ~IHaveContactMood () {}
41 
52  virtual MoodInfo GetUserMood (const QString& variant) const = 0;
53  protected:
63  virtual void moodChanged (const QString& variant) = 0;
64  };
65 }
66 }
67 
68 Q_DECLARE_INTERFACE (LC::Azoth::IHaveContactMood,
69  "org.LeechCraft.Azoth.IHaveContactMood/1.0")
LC::Azoth::IHaveContactMood
Interface for contacts announcing their current mood.
Definition: ihavecontactmood.h:37
LC::Azoth::IHaveContactMood::GetUserMood
virtual MoodInfo GetUserMood(const QString &variant) const =0
Returns the user mood for the given variant.
LC
Definition: activityinfo.h:13
LC::Azoth::MoodInfo
Describes contact mood information.
Definition: moodinfo.h:34
LC::Azoth::IHaveContactMood::~IHaveContactMood
virtual ~IHaveContactMood()
Definition: ihavecontactmood.h:40
LC::Azoth::IHaveContactMood::moodChanged
virtual void moodChanged(const QString &variant)=0
Notifies that entry's user mood has changed.