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

The SimpleCallObserver class provides an easy way to track calls in an account and can be optionally filtered by a contact and/or call direction. More...

#include <TelepathyQt4/SimpleCallObserver>

Inherits QObject, and Tp::RefCounted.

List of all members.

Public Types

Signals

Public Member Functions

Static Public Member Functions


Detailed Description

The SimpleCallObserver class provides an easy way to track calls in an account and can be optionally filtered by a contact and/or call direction.


Member Enumeration Documentation

Enumerator:
CallDirectionIncoming 
CallDirectionOutgoing 
CallDirectionBoth 

Constructor & Destructor Documentation

Tp::SimpleCallObserver::~SimpleCallObserver ( ) [virtual]

Class destructor.


Member Function Documentation

SimpleCallObserverPtr Tp::SimpleCallObserver::create ( const AccountPtr &  account,
CallDirection  direction = CallDirectionBoth 
) [static]

Create a new SimpleCallObserver object.

Events will be signalled for all calls in account that respect direction.

Parameters:
accountThe account used to listen to events.
directionThe direction of the calls used to filter events.
Returns:
An SimpleCallObserverPtr object pointing to the newly created SimpleCallObserver object.
SimpleCallObserverPtr Tp::SimpleCallObserver::create ( const AccountPtr &  account,
const ContactPtr &  contact,
CallDirection  direction = CallDirectionBoth 
) [static]

Create a new SimpleCallObserver object.

Events will be signalled for all calls in account established with contact and that respect direction.

Parameters:
accountThe account used to listen to events.
contactThe contact used to filter events.
directionThe direction of the calls used to filter events.
Returns:
An SimpleCallObserverPtr object pointing to the newly created SimpleCallObserver object.
SimpleCallObserverPtr Tp::SimpleCallObserver::create ( const AccountPtr &  account,
const QString contactIdentifier,
CallDirection  direction = CallDirectionBoth 
) [static]

Create a new SimpleCallObserver object.

Events will be signalled for all calls in account established with a contact identified by contactIdentifier and that respect direction.

Parameters:
accountThe account used to listen to events.
contactIdentifierThe identifier of the contact used to filter events.
directionThe direction of the calls used to filter events.
Returns:
An SimpleCallObserverPtr object pointing to the newly created SimpleCallObserver object.
AccountPtr Tp::SimpleCallObserver::account ( ) const

Return the account used to listen to events.

Returns:
The account used to listen to events.
QString Tp::SimpleCallObserver::contactIdentifier ( ) const

Return the identifier of the contact used to filter events, or an empty string if none was provided at construction.

Returns:
The identifier of the contact used to filter events.
SimpleCallObserver::CallDirection Tp::SimpleCallObserver::direction ( ) const

Return the direction of the calls used to filter events.

Returns:
The direction of the calls used to filter events.
QList< StreamedMediaChannelPtr > Tp::SimpleCallObserver::streamedMediaCalls ( ) const

Return the list of streamed media calls currently being observed.

Returns:
The list of streamed media calls currently being observed.
void Tp::SimpleCallObserver::streamedMediaCallStarted ( const Tp::StreamedMediaChannelPtr &  channel) [signal]

This signal is emitted whenever a streamed media call that matches this observer's criteria is started.

Parameters:
channelThe channel representing the streamed media call that started.
void Tp::SimpleCallObserver::streamedMediaCallEnded ( const Tp::StreamedMediaChannelPtr &  channel,
const QString errorName,
const QString errorMessage 
) [signal]

This signal is emitted whenever a streamed media call that matches this observer's criteria has ended.

Parameters:
channelThe channel representing the streamed media call that ended.
errorNameA D-Bus error name (a string in a subset of ASCII, prefixed with a reversed domain name).
errorMessageA debugging message associated with the error.


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.7.1