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,
 
   45             const QList<ChannelClassFeatures> &extraChannelFeatures =
 
   46                 QList<ChannelClassFeatures>());
 
   47     static SimpleObserverPtr create(
const AccountPtr &account,
 
   49             const ContactPtr &contact,
 
   50             const QList<ChannelClassFeatures> &extraChannelFeatures =
 
   51                 QList<ChannelClassFeatures>());
 
   52     static SimpleObserverPtr create(
const AccountPtr &account,
 
   54             const QString &contactIdentifier,
 
   55             const QList<ChannelClassFeatures> &extraChannelFeatures =
 
   56                 QList<ChannelClassFeatures>());
 
   60     AccountPtr account() 
const;
 
   62     QString contactIdentifier() 
const;
 
   63     QList<ChannelClassFeatures> extraChannelFeatures() 
const;
 
   65     QList<ChannelPtr> channels() 
const;
 
   68     void newChannels(
const QList<Tp::ChannelPtr> &channels);
 
   69     void channelInvalidated(
const Tp::ChannelPtr &channel, 
const QString &errorName,
 
   70             const QString &errorMessage);
 
   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,
 
   78             const QList<Tp::ChannelPtr> &channels);
 
   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,
 
   90             const QList<ChannelClassFeatures> &extraChannelFeatures);
 
   94             const QString &contactIdentifier,
 
   95             bool requiresNormalization,
 
   96             const QList<ChannelClassFeatures> &extraChannelFeatures);
 
   99     friend struct Private;
 
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 PendingOperation class is a base class for pending asynchronous operations. 
Definition: pending-operation.h:45
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
The RefCounted class is a base class for shared objects used by SharedPtr. 
Definition: shared-ptr.h:42