23 #ifndef _TelepathyQt_message_h_HEADER_GUARD_ 24 #define _TelepathyQt_message_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <QSharedDataPointer> 32 #include <TelepathyQt/Constants> 33 #include <TelepathyQt/Contact> 34 #include <TelepathyQt/Types> 55 return !(*
this == other);
60 QDateTime sent()
const;
64 bool isTruncated()
const;
66 bool hasNonTextContent()
const;
68 QString messageToken()
const;
70 bool isSpecificToDBusInterface()
const;
71 QString dbusInterface()
const;
90 TP_QT_NO_EXPORT
Message(uint, uint,
const QString &);
93 friend struct Private;
94 QSharedDataPointer<Private> mPriv;
109 bool isValid()
const {
return mPriv.constData() != 0; }
113 bool hasOriginalToken()
const;
114 QString originalToken()
const;
116 bool isError()
const;
119 bool hasDebugMessage()
const;
120 QString debugMessage()
const;
122 QString dbusError()
const;
124 bool hasEchoedMessage()
const;
133 friend struct Private;
134 QSharedDataPointer<Private> mPriv;
141 QDateTime received()
const;
142 ContactPtr sender()
const;
143 QString senderNickname()
const;
145 QString supersededToken()
const;
147 bool isScrollback()
const;
148 bool isRescued()
const;
149 bool isSilent()
const;
151 bool isDeliveryReport()
const;
154 bool isFromChannel(
const TextChannelPtr &channel)
const;
160 const TextChannelPtr &channel);
163 uint senderHandle()
const;
164 QString senderId()
const;
165 uint pendingId()
const;
167 void setForceNonText();
168 void clearSenderHandle();
169 void setSender(
const ContactPtr &sender);
bool operator==(const SUSocketAddress &v1, const SUSocketAddress &v2)
Definition: types.cpp:50
QList< MessagePart > MessagePartList
Definition: build/TelepathyQt/_gen/types.h:2068
bool operator!=(const Message &other) const
Definition: message.h:53
ChannelTextMessageType
Definition: build/TelepathyQt/_gen/constants.h:2866
The ReceivedMessage::DeliveryDetails class represents the details of a delivery report.
Definition: message.h:100
ChannelTextSendError
Definition: build/TelepathyQt/_gen/constants.h:2815
DeliveryStatus
Definition: build/TelepathyQt/_gen/constants.h:3558
The ReceivedMessage class is a subclass of Message, representing a received message only.
Definition: message.h:97
Definition: build/TelepathyQt/_gen/types.h:2049
The ContactMessenger class provides an easy way to send text messages to a contact and also track sen...
Definition: contact-messenger.h:40
bool isValid() const
Definition: message.h:109
The Message class represents a Telepathy message in a TextChannel.
Definition: message.h:44
Definition: abstract-adaptor.cpp:31
The TextChannel class represents a Telepathy channel of type Text.
Definition: text-channel.h:40