Home · Modules · All Classes · All Namespaces
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Tp::BaseChannelCallType Class Reference

Base class for implementations of Channel.Type.Call. More...

#include <TelepathyQt/BaseChannel>

Inherits Tp::AbstractChannelInterface.

Public Types

typedef Callback2< QDBusObjectPath, const QVariantMap &, DBusError * > CreateChannelCallback
 
typedef Callback2< bool, const QVariantMap &, DBusError * > EnsureChannelCallback
 
typedef Callback1< void, DBusError * > AcceptCallback
 
typedef Callback4< void, uint, const QString &, const QString &, DBusError * > HangupCallback
 
typedef Callback1< void, DBusError * > SetRingingCallback
 
typedef Callback1< void, DBusError * > SetQueuedCallback
 
typedef Callback4< QDBusObjectPath, const QString &, const Tp::MediaStreamType &, const Tp::MediaStreamDirection &, DBusError * > AddContentCallback
 

Public Member Functions

virtual ~BaseChannelCallType ()
 
QVariantMap immutableProperties () const
 
Tp::ObjectPathList contents ()
 
QVariantMap callStateDetails ()
 
uint callState ()
 
uint callFlags ()
 
Tp::CallStateReason callStateReason ()
 
bool hardwareStreaming ()
 
Tp::CallMemberMap callMembers ()
 
Tp::HandleIdentifierMap memberIdentifiers ()
 
uint initialTransport ()
 
bool initialAudio ()
 
bool initialVideo ()
 
QString initialAudioName ()
 
QString initialVideoName ()
 
bool mutableContents ()
 
void setAcceptCallback (const AcceptCallback &cb)
 
void setHangupCallback (const HangupCallback &cb)
 
void setSetRingingCallback (const SetRingingCallback &cb)
 
void setSetQueuedCallback (const SetQueuedCallback &cb)
 
void setAddContentCallback (const AddContentCallback &cb)
 
void setCallState (const Tp::CallState &state, uint flags, const Tp::CallStateReason &stateReason, const QVariantMap &callStateDetails)
 
void setMembersFlags (const Tp::CallMemberMap &flagsChanged, const Tp::HandleIdentifierMap &identifiers, const Tp::UIntList &removed, const Tp::CallStateReason &reason)
 
BaseCallContentPtr addContent (const QString &name, const Tp::MediaStreamType &type, const Tp::MediaStreamDirection &direction)
 
void addContent (BaseCallContentPtr content)
 
- Public Member Functions inherited from Tp::AbstractChannelInterface
 AbstractChannelInterface (const QString &interfaceName)
 
virtual ~AbstractChannelInterface ()
 
- Public Member Functions inherited from Tp::AbstractDBusServiceInterface
 AbstractDBusServiceInterface (const QString &interfaceName)
 
virtual ~AbstractDBusServiceInterface ()
 
QString interfaceName () const
 
DBusObjectdbusObject () const
 
bool isRegistered () const
 
bool notifyPropertyChanged (const QString &propertyName, const QVariant &propertyValue)
 
- Public Member Functions inherited from Tp::Object
virtual ~Object ()
 
- Public Member Functions inherited from Tp::RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 

Static Public Member Functions

static BaseChannelCallTypePtr create (BaseChannel *channel, bool hardwareStreaming, uint initialTransport, bool initialAudio, bool initialVideo, QString initialAudioName, QString initialVideoName, bool mutableContents=false)
 
template<typename BaseChannelCallTypeSubclass >
static SharedPtr< BaseChannelCallTypeSubclass > create (BaseChannel *channel, bool hardwareStreaming, uint initialTransport, bool initialAudio, bool initialVideo, QString initialAudioName, QString initialVideoName, bool mutableContents=false)
 

Public Attributes

CreateChannelCallback createChannel
 
EnsureChannelCallback ensureChannel
 
Tp::RequestableChannelClassList requestableChannelClasses
 

Protected Member Functions

 BaseChannelCallType (BaseChannel *channel, bool hardwareStreaming, uint initialTransport, bool initialAudio, bool initialVideo, QString initialAudioName, QString initialVideoName, bool mutableContents=false)
 
- Protected Member Functions inherited from Tp::AbstractChannelInterface
virtual void close ()
 
virtual void setBaseChannel (BaseChannel *channel)
 
- Protected Member Functions inherited from Tp::AbstractDBusServiceInterface
virtual bool registerInterface (DBusObject *dbusObject)
 
- Protected Member Functions inherited from Tp::Object
 Object ()
 
void notify (const char *propertyName)
 

Additional Inherited Members

- Signals inherited from Tp::Object
void propertyChanged (const QString &propertyName)
 

Detailed Description

Base class for implementations of Channel.Type.Call.

Member Typedef Documentation

◆ CreateChannelCallback

typedef Callback2<QDBusObjectPath, const QVariantMap&, DBusError*> Tp::BaseChannelCallType::CreateChannelCallback

◆ EnsureChannelCallback

◆ AcceptCallback

◆ HangupCallback

typedef Callback4<void, uint, const QString &, const QString &, DBusError*> Tp::BaseChannelCallType::HangupCallback

◆ SetRingingCallback

◆ SetQueuedCallback

◆ AddContentCallback

Constructor & Destructor Documentation

◆ ~BaseChannelCallType()

Tp::BaseChannelCallType::~BaseChannelCallType ( )
virtual

Class destructor.

◆ BaseChannelCallType()

Tp::BaseChannelCallType::BaseChannelCallType ( BaseChannel channel,
bool  hardwareStreaming,
uint  initialTransport,
bool  initialAudio,
bool  initialVideo,
QString  initialAudioName,
QString  initialVideoName,
bool  mutableContents = false 
)
protected

Class constructor.

Member Function Documentation

◆ create() [1/2]

static BaseChannelCallTypePtr Tp::BaseChannelCallType::create ( BaseChannel channel,
bool  hardwareStreaming,
uint  initialTransport,
bool  initialAudio,
bool  initialVideo,
QString  initialAudioName,
QString  initialVideoName,
bool  mutableContents = false 
)
inlinestatic

◆ create() [2/2]

template<typename BaseChannelCallTypeSubclass >
static SharedPtr<BaseChannelCallTypeSubclass> Tp::BaseChannelCallType::create ( BaseChannel channel,
bool  hardwareStreaming,
uint  initialTransport,
bool  initialAudio,
bool  initialVideo,
QString  initialAudioName,
QString  initialVideoName,
bool  mutableContents = false 
)
inlinestatic

◆ immutableProperties()

QVariantMap Tp::BaseChannelCallType::immutableProperties ( ) const
virtual

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.

Reimplemented from Tp::AbstractDBusServiceInterface.

◆ contents()

Tp::ObjectPathList Tp::BaseChannelCallType::contents ( )

◆ callStateDetails()

QVariantMap Tp::BaseChannelCallType::callStateDetails ( )

◆ callState()

uint Tp::BaseChannelCallType::callState ( )

◆ callFlags()

uint Tp::BaseChannelCallType::callFlags ( )

◆ callStateReason()

Tp::CallStateReason Tp::BaseChannelCallType::callStateReason ( )

◆ hardwareStreaming()

bool Tp::BaseChannelCallType::hardwareStreaming ( )

◆ callMembers()

Tp::CallMemberMap Tp::BaseChannelCallType::callMembers ( )

◆ memberIdentifiers()

Tp::HandleIdentifierMap Tp::BaseChannelCallType::memberIdentifiers ( )

◆ initialTransport()

uint Tp::BaseChannelCallType::initialTransport ( )

◆ initialAudio()

bool Tp::BaseChannelCallType::initialAudio ( )

◆ initialVideo()

bool Tp::BaseChannelCallType::initialVideo ( )

◆ initialAudioName()

QString Tp::BaseChannelCallType::initialAudioName ( )

◆ initialVideoName()

QString Tp::BaseChannelCallType::initialVideoName ( )

◆ mutableContents()

bool Tp::BaseChannelCallType::mutableContents ( )

◆ setAcceptCallback()

void Tp::BaseChannelCallType::setAcceptCallback ( const AcceptCallback cb)

◆ setHangupCallback()

void Tp::BaseChannelCallType::setHangupCallback ( const HangupCallback cb)

◆ setSetRingingCallback()

void Tp::BaseChannelCallType::setSetRingingCallback ( const SetRingingCallback cb)

◆ setSetQueuedCallback()

void Tp::BaseChannelCallType::setSetQueuedCallback ( const SetQueuedCallback cb)

◆ setAddContentCallback()

void Tp::BaseChannelCallType::setAddContentCallback ( const AddContentCallback cb)

◆ setCallState()

void Tp::BaseChannelCallType::setCallState ( const Tp::CallState state,
uint  flags,
const Tp::CallStateReason stateReason,
const QVariantMap &  callStateDetails 
)

◆ setMembersFlags()

void Tp::BaseChannelCallType::setMembersFlags ( const Tp::CallMemberMap flagsChanged,
const Tp::HandleIdentifierMap identifiers,
const Tp::UIntList removed,
const Tp::CallStateReason reason 
)

◆ addContent() [1/2]

BaseCallContentPtr Tp::BaseChannelCallType::addContent ( const QString &  name,
const Tp::MediaStreamType type,
const Tp::MediaStreamDirection direction 
)

◆ addContent() [2/2]

void Tp::BaseChannelCallType::addContent ( BaseCallContentPtr  content)

Member Data Documentation

◆ createChannel

CreateChannelCallback Tp::BaseChannelCallType::createChannel

◆ ensureChannel

EnsureChannelCallback Tp::BaseChannelCallType::ensureChannel

◆ requestableChannelClasses

Tp::RequestableChannelClassList Tp::BaseChannelCallType::requestableChannelClasses