LeechCraft Azoth 0.6.70-17609-g3dde4097dd
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
ihavedirectedstatus.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#ifndef PLUGINS_AZOTH_INTERFACES_IHAVEDIRECTEDSTATUS_H
10#define PLUGINS_AZOTH_INTERFACES_IHAVEDIRECTEDSTATUS_H
11#include <QtPlugin>
12#include "iclentry.h"
13
14namespace LC
15{
16namespace Azoth
17{
26 {
27 public:
29
41 virtual bool CanSendDirectedStatusNow (const QString& variant) = 0;
42
52 virtual void SendDirectedStatus (const EntryStatus& status, const QString& variant) = 0;
53 };
54}
55}
56
57Q_DECLARE_INTERFACE (LC::Azoth::IHaveDirectedStatus,
58 "org.Deviant.LeechCraft.Azoth.IHaveDirectedStatus/1.0")
59
60#endif
Interface for entries for sending directed statuses.
virtual void SendDirectedStatus(const EntryStatus &status, const QString &variant)=0
Sends directed status to the given variant.
virtual bool CanSendDirectedStatusNow(const QString &variant)=0
Checks if status can be sent to the given variant.
Describes an entry's status.
Definition iclentry.h:35