23 #ifndef _TelepathyQt_simple_call_observer_h_HEADER_GUARD_ 24 #define _TelepathyQt_simple_call_observer_h_HEADER_GUARD_ 26 #include <TelepathyQt/Constants> 27 #include <TelepathyQt/Types> 34 class PendingOperation;
45 CallDirectionIncoming = 0x01,
46 CallDirectionOutgoing = 0x02,
47 CallDirectionBoth = CallDirectionIncoming | CallDirectionOutgoing
49 Q_DECLARE_FLAGS(CallDirections, CallDirection)
51 static SimpleCallObserverPtr create(
const AccountPtr &account,
52 CallDirection direction = CallDirectionBoth);
53 static SimpleCallObserverPtr create(
const AccountPtr &account,
54 const ContactPtr &contact,
55 CallDirection direction = CallDirectionBoth);
56 static SimpleCallObserverPtr create(
const AccountPtr &account,
57 const QString &contactIdentifier,
58 CallDirection direction = CallDirectionBoth);
62 AccountPtr account()
const;
63 QString contactIdentifier()
const;
64 CallDirection direction()
const;
66 QList<CallChannelPtr> calls()
const;
67 TP_QT_DEPRECATED QList<StreamedMediaChannelPtr> streamedMediaCalls()
const;
70 void callStarted(
const Tp::CallChannelPtr &channel);
71 void callEnded(
const Tp::CallChannelPtr &channel,
72 const QString &errorName,
const QString &errorMessage);
74 void streamedMediaCallStarted(
const Tp::StreamedMediaChannelPtr &channel);
75 void streamedMediaCallEnded(
const Tp::StreamedMediaChannelPtr &channel,
76 const QString &errorName,
const QString &errorMessage);
79 TP_QT_NO_EXPORT
void onNewChannels(
const QList<Tp::ChannelPtr> &channels);
80 TP_QT_NO_EXPORT
void onChannelInvalidated(
const Tp::ChannelPtr &channel,
81 const QString &errorName,
const QString &errorMessage);
84 TP_QT_NO_EXPORT
static SimpleCallObserverPtr create(
85 const AccountPtr &account,
86 const QString &contactIdentifier,
bool requiresNormalization,
87 CallDirection direction);
90 const QString &contactIdentifier,
bool requiresNormalization,
91 CallDirection direction);
94 friend struct Private;
CallDirection
Definition: simple-call-observer.h:44
The SimpleCallObserver class provides an easy way to track calls in an account and can be optionally ...
Definition: simple-call-observer.h:36
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
Definition: abstract-adaptor.cpp:31