LeechCraft Azoth  0.6.70-14771-g9d21b0f8ad
Modular multiprotocol IM plugin for LeechCraft
iauthable.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_IAUTHABLE_H
10 #define PLUGINS_AZOTH_INTERFACES_IAUTHABLE_H
11 #include <QString>
12 #include "azothcommon.h"
13 
14 namespace LC
15 {
16 namespace Azoth
17 {
20  class IAuthable
21  {
22  public:
23  virtual ~IAuthable () {}
24 
30  virtual AuthStatus GetAuthStatus () const = 0;
31 
36  virtual void ResendAuth (const QString& reason = QString ()) = 0;
37 
42  virtual void RevokeAuth (const QString& reason = QString ()) = 0;
43 
48  virtual void Unsubscribe (const QString& reason = QString ()) = 0;
49 
54  virtual void RerequestAuth (const QString& reason = QString ()) = 0;
55  };
56 }
57 }
58 
59 Q_DECLARE_INTERFACE (LC::Azoth::IAuthable,
60  "org.Deviant.LeechCraft.Azoth.IAuthable/1.0")
61 
62 #endif
Represents an entry that supports authorizations.
Definition: iauthable.h:21
virtual void RerequestAuth(const QString &reason=QString())=0
Rerequest authorization.
virtual AuthStatus GetAuthStatus() const =0
Returns the AuthStatus between our user and this remote.
virtual void Unsubscribe(const QString &reason=QString())=0
Unsubscribes ourselves from the contact.
virtual void RevokeAuth(const QString &reason=QString())=0
Revokes authorization from the entry.
virtual void ResendAuth(const QString &reason=QString())=0
Resends authorization to the entry.
virtual ~IAuthable()
Definition: iauthable.h:23