23 #ifndef _TelepathyQt_simple_observer_h_HEADER_GUARD_
24 #define _TelepathyQt_simple_observer_h_HEADER_GUARD_
26 #include <TelepathyQt/AbstractClientObserver>
27 #include <TelepathyQt/ChannelClassFeatures>
28 #include <TelepathyQt/Types>
35 class PendingOperation;
43 static SimpleObserverPtr create(
const AccountPtr &account,
47 static SimpleObserverPtr create(
const AccountPtr &account,
49 const ContactPtr &contact,
52 static SimpleObserverPtr create(
const AccountPtr &account,
54 const QString &contactIdentifier,
60 AccountPtr account()
const;
62 QString contactIdentifier()
const;
69 void channelInvalidated(
const Tp::ChannelPtr &channel,
const QString &errorName,
73 TP_QT_NO_EXPORT
void onAccountConnectionChanged(
const Tp::ConnectionPtr &connection);
74 TP_QT_NO_EXPORT
void onAccountConnectionConnected();
77 TP_QT_NO_EXPORT
void onNewChannels(
const Tp::AccountPtr &channelsAccount,
79 TP_QT_NO_EXPORT
void onChannelInvalidated(
const Tp::AccountPtr &channelAccount,
80 const Tp::ChannelPtr &channel,
const QString &errorName,
const QString &errorMessage);
86 TP_QT_NO_EXPORT
static SimpleObserverPtr create(
const AccountPtr &account,
88 const QString &contactIdentifier,
89 bool requiresNormalization,
94 const QString &contactIdentifier,
95 bool requiresNormalization,
99 friend struct Private;
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The SimpleCallObserver class provides an easy way to track calls in an account and can be optionally ...
Definition: simple-call-observer.h:36
The ChannelClassSpecList class represents a list of ChannelClassSpec.
Definition: channel-class-spec.h:249
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
The SimpleObserver class provides an easy way to track channels in an account and can be optionally f...
Definition: simple-observer.h:37
The SimpleTextObserver class provides an easy way to track sent/received text messages in an account ...
Definition: simple-text-observer.h:38
Definition: abstract-adaptor.cpp:31