LeechCraft Azoth  0.6.70-15082-g543737046d
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
LC::Azoth::IAuthable::~IAuthable
virtual ~IAuthable()
Definition: iauthable.h:41
LC::Azoth::IAuthable::ResendAuth
virtual void ResendAuth(const QString &reason=QString())=0
Resends authorization to the entry.
LC::Azoth::IAuthable::RerequestAuth
virtual void RerequestAuth(const QString &reason=QString())=0
Rerequest authorization.
LC::Azoth::IAuthable
Represents an entry that supports authorizations.
Definition: iauthable.h:32
LC::Azoth::IAuthable::GetAuthStatus
virtual AuthStatus GetAuthStatus() const =0
Returns the AuthStatus between our user and this remote.
LC::Azoth::IAuthable::RevokeAuth
virtual void RevokeAuth(const QString &reason=QString())=0
Revokes authorization from the entry.
LC::Azoth::IAuthable::Unsubscribe
virtual void Unsubscribe(const QString &reason=QString())=0
Unsubscribes ourselves from the contact.
LC::Azoth::AuthStatus
AuthStatus
Definition: azothcommon.h:81
LC
Definition: activityinfo.h:13
azothcommon.h