RenrenOAuth2PluginNS::RenrenOAuth2Plugin Class Reference

#include <renrenoauth2plugin.h>

Link against: renren_oauth2_plugin.lib

class RenrenOAuth2PluginNS::RenrenOAuth2Plugin : public AccountAuthPlugin::AccountAuthPluginInterface, public AccountAuthPlugin::AccountAuthPluginInterface

Inherits from

  • RenrenOAuth2PluginNS::RenrenOAuth2Plugin

    Nested Classes and Structures

    • RenrenOAuth2PluginNS::RenrenOAuth2Plugin::RenrenOAuth2PluginPrivate
    Public Member Functions
    RenrenOAuth2Plugin(QObject *)
    ~RenrenOAuth2Plugin()
    Public Slots
    virtual voidcancel()
    virtual QStringList mechanisms()
    virtual voidprocess(const AccountData::SessionData &, const QString &)
    virtual voidrefresh(const AccountData::UiSessionData &)
    virtual QString type()
    virtual voiduserActionFinished(const AccountData::UiSessionData &)
    Inherited Attributes
    QObject::d_ptr
    QObject::objectName
    QObject::staticQtMetaObject
    Inherited Enumerations
    AccountAuthPlugin::AccountAuthPluginInterface:AccountAuthPluginState
    Inherited Functions
    AccountAuthPlugin::AccountAuthPluginInterface::AccountAuthPluginInterface()
    AccountAuthPlugin::AccountAuthPluginInterface::abort()
    AccountAuthPlugin::AccountAuthPluginInterface::error
    AccountAuthPlugin::AccountAuthPluginInterface::refreshed
    AccountAuthPlugin::AccountAuthPluginInterface::result
    AccountAuthPlugin::AccountAuthPluginInterface::statusChanged
    AccountAuthPlugin::AccountAuthPluginInterface::store
    AccountAuthPlugin::AccountAuthPluginInterface::userActionRequired
    AccountAuthPlugin::AccountAuthPluginInterface::~AccountAuthPluginInterface()
    QObject::QObject(QObjectPrivate &,QObject *)
    QObject::blockSignals(bool)
    QObject::childEvent(QChildEvent *)
    QObject::children()const
    QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const
    QObject::connectNotify(const char *)
    QObject::customEvent(QEvent *)
    QObject::deleteLater
    QObject::destroyed
    QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &)
    QObject::disconnect(const QObject *,const char *)
    QObject::disconnect(const QObject *,const char *,const QObject *,const char *)
    QObject::disconnect(const char *,const QObject *,const char *)
    QObject::disconnectNotify(const char *)
    QObject::dumpObjectInfo()
    QObject::dumpObjectTree()
    QObject::dynamicPropertyNames()const
    QObject::event(QEvent *)
    QObject::eventFilter(QObject *,QEvent *)
    QObject::findChild(const QString &)const
    QObject::findChildren(const QRegExp &)const
    QObject::findChildren(const QString &)const
    QObject::inherits(const char *)const
    QObject::installEventFilter(QObject *)
    QObject::isWidgetType()const
    QObject::killTimer(int)
    QObject::moveToThread(QThread *)
    QObject::objectName()const
    QObject::parent()const
    QObject::property(const char *)const
    QObject::receivers(const char *)const
    QObject::registerUserData()
    QObject::removeEventFilter(QObject *)
    QObject::sender()const
    QObject::senderSignalIndex()const
    QObject::setObjectName(const QString &)
    QObject::setParent(QObject *)
    QObject::setProperty(const char *,const QVariant &)
    QObject::setUserData(uint,QObjectUserData *)
    QObject::signalsBlocked()const
    QObject::startTimer(int)
    QObject::thread()const
    QObject::timerEvent(QTimerEvent *)
    QObject::userData(uint)const
    QObject::~QObject()

    Detailed Description

    OAuth authentication plugin.

    Constructor & Destructor Documentation

    RenrenOAuth2Plugin ( QObject * )

    RenrenOAuth2Plugin(QObject *parent = 0)

    ~RenrenOAuth2Plugin ( )

    ~RenrenOAuth2Plugin()

    Member Function Documentation

    cancel ( )

    voidcancel()[virtual, slot]

    Requests to cancel the process. Process is terminated after this call. Reimplement this in order to execute specific instructions before the effective cancel occures.

    mechanisms ( )

    QStringList mechanisms()const [virtual, slot]

    Gets the list of supported mechanisms.

    Return Value
    List of mechanisms

    process ( const AccountData::SessionData &, const QString & )

    voidprocess(const AccountData::SessionData &inData,
    const QString &mechanism = 0
    )[virtual, slot]

    Process authentication. Authentication can be logging to a server, obtain token(s) from a server, calculate response using given challenge, etc. Given session data is used to do authentication and return response. Signal result() is emitted when authentication is completed, or signal error() if authentication failed.

    See also: result error

    Parameters
    inDataData passed by user to authenticate

    refresh ( const AccountData::UiSessionData & )

    voidrefresh(const AccountData::UiSessionData &data)[virtual, slot]

    Reimplemented from AccountAuthPlugin::AccountAuthPluginInterface::refresh

    Refreshes given session. Signal refreshed() must be emitted when refresh is completed. This must be reimplemented to refresh the session.

    See also: refreshed

    Parameters
    dataSession data to be refreshed

    type ( )

    QString type()const [virtual, slot]

    Gets the type of the plugin

    Return Value
    Plugin type

    userActionFinished ( const AccountData::UiSessionData & )

    voiduserActionFinished(const AccountData::UiSessionData &data)[virtual, slot]

    Reimplemented from AccountAuthPlugin::AccountAuthPluginInterface::userActionFinished

    User interaction completed. This is response to userActionRequired() signal. This must be reimplemented to get response from user interaction.

    See also: userActionRequired

    Parameters
    datauser completed UiSessionData.