diff options
Diffstat (limited to 'TelepathyQt/message.h')
-rw-r--r-- | TelepathyQt/message.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/TelepathyQt/message.h b/TelepathyQt/message.h index c6a0211c..7aa6bc2a 100644 --- a/TelepathyQt/message.h +++ b/TelepathyQt/message.h @@ -106,7 +106,7 @@ public: DeliveryDetails &operator=(const DeliveryDetails &other); - bool isValid() const { return mPriv.constData() != 0; } + bool isValid() const { return mPriv.constData() != nullptr; } DeliveryStatus status() const; @@ -146,26 +146,27 @@ public: bool isScrollback() const; bool isRescued() const; + bool isSilent() const; bool isDeliveryReport() const; DeliveryDetails deliveryDetails() const; bool isFromChannel(const TextChannelPtr &channel) const; -private: +protected: friend class TextChannel; - TP_QT_NO_EXPORT ReceivedMessage(const MessagePartList &parts, + ReceivedMessage(const MessagePartList &parts, const TextChannelPtr &channel); - TP_QT_NO_EXPORT ReceivedMessage(); + ReceivedMessage(); - TP_QT_NO_EXPORT uint senderHandle() const; - TP_QT_NO_EXPORT QString senderId() const; - TP_QT_NO_EXPORT uint pendingId() const; + uint senderHandle() const; + QString senderId() const; + uint pendingId() const; - TP_QT_NO_EXPORT void setForceNonText(); - TP_QT_NO_EXPORT void clearSenderHandle(); - TP_QT_NO_EXPORT void setSender(const ContactPtr &sender); + void setForceNonText(); + void clearSenderHandle(); + void setSender(const ContactPtr &sender); }; } // Tp |