Home · All Classes · All Namespaces · Modules · Functions · Files
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
Tp::BaseChannelSASLAuthenticationInterface Class Reference

Base class for implementations of Channel.Interface.SASLAuthentication. More...

#include <TelepathyQt/BaseChannel>

Inherits Tp::AbstractChannelInterface.

List of all members.

Public Types

typedef Callback2< void, const
QString &, DBusError * > 
StartMechanismCallback
typedef Callback3< void, const
QString &, const QByteArray
&, DBusError * > 
StartMechanismWithDataCallback
typedef Callback2< void, const
QByteArray &, DBusError * > 
RespondCallback
typedef Callback1< void,
DBusError * > 
AcceptSASLCallback
typedef Callback3< void, uint,
const QString &, DBusError * > 
AbortSASLCallback

Public Member Functions

virtual ~BaseChannelSASLAuthenticationInterface ()
QVariantMap immutableProperties () const
QStringList availableMechanisms () const
bool hasInitialData () const
bool canTryAgain () const
QString authorizationIdentity () const
QString defaultUsername () const
QString defaultRealm () const
bool maySaveResponse () const
uint saslStatus () const
void setSaslStatus (uint status, const QString &reason, const QVariantMap &details)
QString saslError () const
void setSaslError (const QString &saslError)
QVariantMap saslErrorDetails () const
void setSaslErrorDetails (const QVariantMap &saslErrorDetails)
void setStartMechanismCallback (const StartMechanismCallback &cb)
void startMechanism (const QString &mechanism, DBusError *error)
void setStartMechanismWithDataCallback (const StartMechanismWithDataCallback &cb)
void startMechanismWithData (const QString &mechanism, const QByteArray &initialData, DBusError *error)
void setRespondCallback (const RespondCallback &cb)
void respond (const QByteArray &responseData, DBusError *error)
void setAcceptSaslCallback (const AcceptSASLCallback &cb)
void acceptSasl (DBusError *error)
void setAbortSaslCallback (const AbortSASLCallback &cb)
void abortSasl (uint reason, const QString &debugMessage, DBusError *error)
void newChallenge (const QByteArray &challengeData)

Static Public Member Functions

static
BaseChannelSASLAuthenticationInterfacePtr 
create (const QStringList &availableMechanisms, bool hasInitialData, bool canTryAgain, const QString &authorizationIdentity, const QString &defaultUsername, const QString &defaultRealm, bool maySaveResponse)
template<typename BaseChannelSASLAuthenticationInterfaceSubclass >
static SharedPtr
< BaseChannelSASLAuthenticationInterfaceSubclass > 
create (const QStringList &availableMechanisms, bool hasInitialData, bool canTryAgain, const QString &authorizationIdentity, const QString &defaultUsername, const QString &defaultRealm, bool maySaveResponse)

Protected Member Functions

 BaseChannelSASLAuthenticationInterface (const QStringList &availableMechanisms, bool hasInitialData, bool canTryAgain, const QString &authorizationIdentity, const QString &defaultUsername, const QString &defaultRealm, bool maySaveResponse)

Detailed Description

Base class for implementations of Channel.Interface.SASLAuthentication.


Member Typedef Documentation


Constructor & Destructor Documentation

Class destructor.

Tp::BaseChannelSASLAuthenticationInterface::BaseChannelSASLAuthenticationInterface ( const QStringList &  availableMechanisms,
bool  hasInitialData,
bool  canTryAgain,
const QString &  authorizationIdentity,
const QString &  defaultUsername,
const QString &  defaultRealm,
bool  maySaveResponse 
) [protected]

Class constructor.


Member Function Documentation

static BaseChannelSASLAuthenticationInterfacePtr Tp::BaseChannelSASLAuthenticationInterface::create ( const QStringList &  availableMechanisms,
bool  hasInitialData,
bool  canTryAgain,
const QString &  authorizationIdentity,
const QString &  defaultUsername,
const QString &  defaultRealm,
bool  maySaveResponse 
) [inline, static]
template<typename BaseChannelSASLAuthenticationInterfaceSubclass >
static SharedPtr<BaseChannelSASLAuthenticationInterfaceSubclass> Tp::BaseChannelSASLAuthenticationInterface::create ( const QStringList &  availableMechanisms,
bool  hasInitialData,
bool  canTryAgain,
const QString &  authorizationIdentity,
const QString &  defaultUsername,
const QString &  defaultRealm,
bool  maySaveResponse 
) [inline, static]

Return the immutable properties of this interface.

Immutable properties cannot change after the interface has been registered on a service on the bus with registerInterface().

Returns:
The immutable properties of this interface.

Implements Tp::AbstractDBusServiceInterface.

void Tp::BaseChannelSASLAuthenticationInterface::setSaslStatus ( uint  status,
const QString &  reason,
const QVariantMap &  details 
)
void Tp::BaseChannelSASLAuthenticationInterface::setSaslError ( const QString &  saslError)
void Tp::BaseChannelSASLAuthenticationInterface::setSaslErrorDetails ( const QVariantMap &  saslErrorDetails)
void Tp::BaseChannelSASLAuthenticationInterface::startMechanism ( const QString &  mechanism,
DBusError error 
)
void Tp::BaseChannelSASLAuthenticationInterface::startMechanismWithData ( const QString &  mechanism,
const QByteArray &  initialData,
DBusError error 
)
void Tp::BaseChannelSASLAuthenticationInterface::respond ( const QByteArray &  responseData,
DBusError error 
)
void Tp::BaseChannelSASLAuthenticationInterface::abortSasl ( uint  reason,
const QString &  debugMessage,
DBusError error 
)
void Tp::BaseChannelSASLAuthenticationInterface::newChallenge ( const QByteArray &  challengeData)


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7