LeechCraft Azoth 0.6.70-17335-ge406ffdcaf
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
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
14namespace LC
15{
16namespace Azoth
17{
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
59Q_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