23 #ifndef _TelepathyQt_text_channel_h_HEADER_GUARD_ 24 #define _TelepathyQt_text_channel_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/Channel> 31 #include <TelepathyQt/PendingOperation> 32 #include <TelepathyQt/PendingSendMessage> 38 class ReceivedMessage;
52 static TextChannelPtr create(
const ConnectionPtr &connection,
53 const QString &objectPath,
const QVariantMap &immutableProperties);
57 bool hasMessagesInterface()
const;
58 bool hasChatStateInterface()
const;
59 bool canInviteContacts()
const;
63 QList<ChannelTextMessageType> supportedMessageTypes()
const;
64 QStringList supportedContentTypes()
const;
69 QList<ReceivedMessage> messageQueue()
const;
75 void acknowledge(
const QList<ReceivedMessage> &messages);
77 void forget(
const QList<ReceivedMessage> &messages);
87 const QList<ContactPtr> &contacts,
88 const QString &message = QString())
90 return groupAddContacts(contacts, message);
99 const QString &sentMessageToken);
103 void pendingMessageRemoved(
107 void chatStateChanged(
const Tp::ContactPtr &contact,
111 TextChannel(
const ConnectionPtr &connection,
const QString &objectPath,
112 const QVariantMap &immutableProperties,
117 TP_QT_NO_EXPORT
void onAcknowledgePendingMessagesReply(QDBusPendingCallWatcher *);
122 TP_QT_NO_EXPORT
void onPendingMessagesRemoved(
const Tp::UIntList &);
124 TP_QT_NO_EXPORT
void onTextSent(uint, uint,
const QString &);
125 TP_QT_NO_EXPORT
void onTextReceived(uint, uint, uint, uint, uint,
const QString &);
126 TP_QT_NO_EXPORT
void onTextSendError(uint, uint, uint,
const QString &);
128 TP_QT_NO_EXPORT
void gotProperties(QDBusPendingCallWatcher *);
129 TP_QT_NO_EXPORT
void gotPendingMessages(QDBusPendingCallWatcher *);
131 TP_QT_NO_EXPORT
void onChatStateChanged(uint, uint);
135 friend struct Private;
The PendingSendMessage class represents the parameters of and the reply to an asynchronous message se...
Definition: pending-send-message.h:41
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
static const Feature FeatureCore
Definition: text-channel.h:46
The ReceivedMessage class is a subclass of Message, representing a received message only...
Definition: message.h:97
static const Feature FeatureMessageSentSignal
Definition: text-channel.h:49
static const Feature FeatureMessageCapabilities
Definition: text-channel.h:48
The TextChannel class represents a Telepathy channel of type Text.
Definition: text-channel.h:40
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: build/TelepathyQt/_gen/types.h:107
QFlags< MessagePartSupportFlag > MessagePartSupportFlags
Definition: build/TelepathyQt/_gen/constants.h:1106
ChannelChatState
Definition: build/TelepathyQt/_gen/constants.h:3078
PendingOperation * inviteContacts(const QList< ContactPtr > &contacts, const QString &message=QString())
Definition: text-channel.h:86
Definition: abstract-adaptor.cpp:31
QFlags< DeliveryReportingSupportFlag > DeliveryReportingSupportFlags
Definition: build/TelepathyQt/_gen/constants.h:1219
static const Feature FeatureMessageQueue
Definition: text-channel.h:47
QList< MessagePart > MessagePartList
Definition: build/TelepathyQt/_gen/types.h:2040
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
static const Feature FeatureChatState
Definition: text-channel.h:50
Definition: build/TelepathyQt/_gen/constants.h:2871
ChannelTextMessageType
Definition: build/TelepathyQt/_gen/constants.h:2866
The Channel class represents a Telepathy channel.
Definition: channel.h:51