[Telepathy-commits] [telepathy-qt4/master] Message: add operator==
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Feb 20 06:51:08 PST 2009
---
TelepathyQt4/Client/text-channel.cpp | 8 ++++++++
TelepathyQt4/Client/text-channel.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/text-channel.cpp b/TelepathyQt4/Client/text-channel.cpp
index 3f11cb1..bfe45ba 100644
--- a/TelepathyQt4/Client/text-channel.cpp
+++ b/TelepathyQt4/Client/text-channel.cpp
@@ -190,6 +190,14 @@ Message &Message::operator=(const Message &other)
}
/**
+ * Equality operator.
+ */
+bool Message::operator==(const Message &other) const
+{
+ return this->mPriv == other.mPriv;
+}
+
+/**
* Destructor.
*/
Message::~Message()
diff --git a/TelepathyQt4/Client/text-channel.h b/TelepathyQt4/Client/text-channel.h
index f46136f..2f2ce53 100644
--- a/TelepathyQt4/Client/text-channel.h
+++ b/TelepathyQt4/Client/text-channel.h
@@ -43,6 +43,7 @@ public:
Message(const Message &other);
Message &operator=(const Message &other);
+ bool operator==(const Message &other) const;
~Message();
// Convenient access to headers
--
1.5.6.5
More information about the telepathy-commits
mailing list