LeechCraft Azoth  0.6.70-16373-g319c272718
Modular multiprotocol IM plugin for LeechCraft
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 
14 namespace LC
15 {
16 namespace Azoth
17 {
26  {
27  public:
28  virtual ~IHaveDirectedStatus () {}
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 
57 Q_DECLARE_INTERFACE (LC::Azoth::IHaveDirectedStatus,
58  "org.Deviant.LeechCraft.Azoth.IHaveDirectedStatus/1.0")
59 
60 #endif
Interface for entries for sending directed statuses.
virtual bool CanSendDirectedStatusNow(const QString &variant)=0
Checks if status can be sent to the given variant.
Describes an entry&#39;s status.
Definition: iclentry.h:34
virtual void SendDirectedStatus(const EntryStatus &status, const QString &variant)=0
Sends directed status to the given variant.