LeechCraft Azoth 0.6.70-14794-g33744ae6ce
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
ihavecontactactivity.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
13namespace LC
14{
15namespace Azoth
16{
17 struct ActivityInfo;
18
37 {
38 public:
40
51 virtual ActivityInfo GetUserActivity (const QString& variant) const = 0;
52 protected:
63 virtual void activityChanged (const QString& variant) = 0;
64 };
65}
66}
67
68Q_DECLARE_INTERFACE (LC::Azoth::IHaveContactActivity,
69 "org.LeechCraft.Azoth.IHaveContactActivity/1.0")
70
71
Interface for contacts announcing their current activity.
virtual void activityChanged(const QString &variant)=0
Notifies that entry's user activity has changed.
virtual ActivityInfo GetUserActivity(const QString &variant) const =0
Returns the user activity at the given variant.
Describes contact activity information.
Definition: activityinfo.h:23