[Telepathy-commits] [telepathy-qt4/master] Whoops, refHandle and unrefHandle obviously need to have the handle type as a parameter

Olli Salli olli.salli at collabora.co.uk
Wed Jan 21 04:42:15 PST 2009


---
 TelepathyQt4/cli-connection.cpp         |    4 ++--
 TelepathyQt4/cli-connection.h           |    4 ++--
 TelepathyQt4/cli-referenced-handles.cpp |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/TelepathyQt4/cli-connection.cpp b/TelepathyQt4/cli-connection.cpp
index 2318fbe..7d4305c 100644
--- a/TelepathyQt4/cli-connection.cpp
+++ b/TelepathyQt4/cli-connection.cpp
@@ -508,12 +508,12 @@ PendingOperation* Connection::requestDisconnect()
     return new PendingVoidMethodCall(this, this->Disconnect());
 }
 
-void Connection::refHandle(uint handle)
+void Connection::refHandle(uint type, uint handle)
 {
     // FIXME implement
 }
 
-void Connection::unrefHandle(uint handle)
+void Connection::unrefHandle(uint type, uint handle)
 {
     // FIXME implement
 }
diff --git a/TelepathyQt4/cli-connection.h b/TelepathyQt4/cli-connection.h
index af9d417..1140831 100644
--- a/TelepathyQt4/cli-connection.h
+++ b/TelepathyQt4/cli-connection.h
@@ -504,8 +504,8 @@ private Q_SLOTS:
 
 private:
     friend class ReferencedHandles;
-    void refHandle(uint handle);
-    void unrefHandle(uint handle);
+    void refHandle(uint type, uint handle);
+    void unrefHandle(uint type, uint handle);
 
     struct Private;
     friend struct Private;
diff --git a/TelepathyQt4/cli-referenced-handles.cpp b/TelepathyQt4/cli-referenced-handles.cpp
index 30b820f..6136c0a 100644
--- a/TelepathyQt4/cli-referenced-handles.cpp
+++ b/TelepathyQt4/cli-referenced-handles.cpp
@@ -60,7 +60,7 @@ struct ReferencedHandles::Private : public QSharedData
             for (const_iterator i = handles.begin();
                                 i != handles.end();
                                 ++i)
-                connection->refHandle(*i);
+                connection->refHandle(handleType, *i);
         }
     }
 
@@ -77,7 +77,7 @@ struct ReferencedHandles::Private : public QSharedData
             for (const_iterator i = handles.begin();
                                 i != handles.end();
                                 ++i)
-                connection->unrefHandle(*i);
+                connection->unrefHandle(handleType, *i);
         }
     }
 
@@ -244,7 +244,7 @@ ReferencedHandles::ReferencedHandles(Connection* connection, uint handleType, co
     for (const_iterator i = handles.begin();
                         i != handles.end();
                         ++i)
-        connection->refHandle(*i);
+        connection->refHandle(handleType, *i);
 }
 
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list