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

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

#include <TelepathyQt/BaseChannel>

Inherits Tp::AbstractChannelInterface.

Public Types

typedef Callback3< QString, const Tp::MessagePartList &, uint, DBusError * > SendMessageCallback
 

Public Member Functions

virtual ~BaseChannelMessagesInterface ()
 
QVariantMap immutableProperties () const
 
QStringList supportedContentTypes ()
 
Tp::UIntList messageTypes ()
 
uint messagePartSupportFlags ()
 
uint deliveryReportingSupport ()
 
Tp::MessagePartListList pendingMessages () const
 
void messageSent (const Tp::MessagePartList &content, uint flags, const QString &messageToken)
 
void setSendMessageCallback (const SendMessageCallback &cb)
 
- 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 BaseChannelMessagesInterfacePtr create (BaseChannelTextType *textTypeInterface, QStringList supportedContentTypes, UIntList messageTypes, uint messagePartSupportFlags, uint deliveryReportingSupport)
 
template<typename BaseChannelMessagesInterfaceSubclass >
static SharedPtr< BaseChannelMessagesInterfaceSubclass > create ()
 

Protected Member Functions

QString sendMessage (const Tp::MessagePartList &message, uint flags, DBusError *error)
 
- 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.Interface.Messages.

Member Typedef Documentation

◆ SendMessageCallback

Constructor & Destructor Documentation

◆ ~BaseChannelMessagesInterface()

Tp::BaseChannelMessagesInterface::~BaseChannelMessagesInterface ( )
virtual

Class destructor.

Member Function Documentation

◆ create() [1/2]

static BaseChannelMessagesInterfacePtr Tp::BaseChannelMessagesInterface::create ( BaseChannelTextType textTypeInterface,
QStringList  supportedContentTypes,
UIntList  messageTypes,
uint  messagePartSupportFlags,
uint  deliveryReportingSupport 
)
inlinestatic

◆ create() [2/2]

template<typename BaseChannelMessagesInterfaceSubclass >
static SharedPtr<BaseChannelMessagesInterfaceSubclass> Tp::BaseChannelMessagesInterface::create ( )
inlinestatic

◆ immutableProperties()

QVariantMap Tp::BaseChannelMessagesInterface::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.

◆ supportedContentTypes()

QStringList Tp::BaseChannelMessagesInterface::supportedContentTypes ( )

◆ messageTypes()

Tp::UIntList Tp::BaseChannelMessagesInterface::messageTypes ( )

◆ messagePartSupportFlags()

uint Tp::BaseChannelMessagesInterface::messagePartSupportFlags ( )

◆ deliveryReportingSupport()

uint Tp::BaseChannelMessagesInterface::deliveryReportingSupport ( )

◆ pendingMessages()

Tp::MessagePartListList Tp::BaseChannelMessagesInterface::pendingMessages ( ) const

◆ messageSent()

void Tp::BaseChannelMessagesInterface::messageSent ( const Tp::MessagePartList content,
uint  flags,
const QString &  messageToken 
)

◆ setSendMessageCallback()

void Tp::BaseChannelMessagesInterface::setSendMessageCallback ( const SendMessageCallback cb)

◆ sendMessage()

QString Tp::BaseChannelMessagesInterface::sendMessage ( const Tp::MessagePartList message,
uint  flags,
DBusError error 
)
protected