23 #ifndef _TelepathyQt_simple_text_observer_h_HEADER_GUARD_ 24 #define _TelepathyQt_simple_text_observer_h_HEADER_GUARD_ 26 #include <TelepathyQt/Constants> 27 #include <TelepathyQt/Types> 35 class PendingOperation;
36 class ReceivedMessage;
44 static SimpleTextObserverPtr create(
const AccountPtr &account);
45 static SimpleTextObserverPtr create(
const AccountPtr &account,
46 const ContactPtr &contact);
47 static SimpleTextObserverPtr create(
const AccountPtr &account,
48 const QString &contactIdentifier);
52 AccountPtr account()
const;
53 QString contactIdentifier()
const;
55 QList<TextChannelPtr> textChats()
const;
59 const QString &sentMessageToken,
const Tp::TextChannelPtr &channel);
60 void messageReceived(
const Tp::ReceivedMessage &message,
const Tp::TextChannelPtr &channel);
63 TP_QT_NO_EXPORT
void onNewChannels(
const QList<Tp::ChannelPtr> &channels);
64 TP_QT_NO_EXPORT
void onChannelInvalidated(
const Tp::ChannelPtr &channel);
67 TP_QT_NO_EXPORT
static SimpleTextObserverPtr create(
const AccountPtr &account,
68 const QString &contactIdentifier,
bool requiresNormalization);
71 const QString &contactIdentifier,
bool requiresNormalization);
74 friend struct Private;
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
The ReceivedMessage class is a subclass of Message, representing a received message only...
Definition: message.h:97
The Message class represents a Telepathy message in a TextChannel.
Definition: message.h:44
QFlags< MessageSendingFlag > MessageSendingFlags
Definition: build/TelepathyQt/_gen/constants.h:1166
Definition: abstract-adaptor.cpp:31