#include <TelepathyQt4/Client/TextChannel>
Public Member Functions | |
ReceivedMessage (const ReceivedMessage &other) | |
ReceivedMessage & | operator= (const ReceivedMessage &other) |
~ReceivedMessage () | |
QDateTime | received () const |
QSharedPointer< Contact > | sender () const |
bool | isScrollback () const |
bool | isRescued () const |
bool | isFromChannel (const TextChannel *channel) const |
Friends | |
class | TextChannel |
Telepathy::Client::ReceivedMessage::ReceivedMessage | ( | const ReceivedMessage & | other | ) |
Copy constructor.
Telepathy::Client::ReceivedMessage::~ReceivedMessage | ( | ) |
Destructor.
bool Telepathy::Client::ReceivedMessage::isFromChannel | ( | const TextChannel * | channel | ) | const |
bool Telepathy::Client::ReceivedMessage::isRescued | ( | ) | const |
Return whether the incoming message was seen in a previous channel during the lifetime of this Connection, but was not acknowledged before that chanenl closed, causing the channel in which it now appears to open.
If true, loggers should not log this message again.
bool Telepathy::Client::ReceivedMessage::isScrollback | ( | ) | const |
Return whether the incoming message was part of a replay of message history.
If true, loggers can use this to improve their heuristics for elimination of duplicate messages (a simple, correct implementation would be to avoid logging any message that has this flag).
ReceivedMessage & Telepathy::Client::ReceivedMessage::operator= | ( | const ReceivedMessage & | other | ) |
Assignment operator.
QDateTime Telepathy::Client::ReceivedMessage::received | ( | ) | const |
Return the time the message was received.
QSharedPointer< Contact > Telepathy::Client::ReceivedMessage::sender | ( | ) | const |
Return the Contact who sent the message, or QSharedPointer<Contact>(0) if unknown.
friend class TextChannel [friend] |
Reimplemented from Telepathy::Client::Message.