[Telepathy-commits] [telepathy-qt4/master] Q_DISABLE_COPY in all public classes, except those that have a copy ctor

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jan 23 07:25:27 PST 2009


---
 TelepathyQt4/Client/abstract-interface.h         |    1 +
 TelepathyQt4/Client/account-manager.h            |    1 +
 TelepathyQt4/Client/channel.h                    |    1 +
 TelepathyQt4/Client/connection.h                 |    1 +
 TelepathyQt4/Client/dbus-proxy.h                 |    1 +
 TelepathyQt4/Client/optional-interface-factory.h |    2 ++
 TelepathyQt4/Client/pending-channel.h            |    1 +
 TelepathyQt4/Client/pending-handles.h            |    1 +
 TelepathyQt4/Client/pending-operation.h          |    1 +
 TelepathyQt4/Client/simple-pending-operations.h  |    3 +++
 10 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Client/abstract-interface.h b/TelepathyQt4/Client/abstract-interface.h
index 933359e..3eba805 100644
--- a/TelepathyQt4/Client/abstract-interface.h
+++ b/TelepathyQt4/Client/abstract-interface.h
@@ -37,6 +37,7 @@ class DBusProxy;
 class AbstractInterface : public QDBusAbstractInterface
 {
     Q_OBJECT
+    Q_DISABLE_COPY(AbstractInterface)
 
 public:
     virtual ~AbstractInterface();
diff --git a/TelepathyQt4/Client/account-manager.h b/TelepathyQt4/Client/account-manager.h
index 89b3fda..715e28d 100644
--- a/TelepathyQt4/Client/account-manager.h
+++ b/TelepathyQt4/Client/account-manager.h
@@ -50,6 +50,7 @@ class AccountManager : public StatelessDBusProxy,
                        private OptionalInterfaceFactory<AccountManager>
 {
     Q_OBJECT
+    Q_DISABLE_COPY(AccountManager)
 
 public:
     enum Feature {
diff --git a/TelepathyQt4/Client/channel.h b/TelepathyQt4/Client/channel.h
index 95b2f53..dd1df5a 100644
--- a/TelepathyQt4/Client/channel.h
+++ b/TelepathyQt4/Client/channel.h
@@ -96,6 +96,7 @@ class Channel : public StatefulDBusProxy,
                 private OptionalInterfaceFactory<Channel>
 {
     Q_OBJECT
+    Q_DISABLE_COPY(Channel)
     Q_ENUMS(Readiness)
 
 public:
diff --git a/TelepathyQt4/Client/connection.h b/TelepathyQt4/Client/connection.h
index bad98ba..1f4f424 100644
--- a/TelepathyQt4/Client/connection.h
+++ b/TelepathyQt4/Client/connection.h
@@ -104,6 +104,7 @@ class Connection : public StatefulDBusProxy,
                    private OptionalInterfaceFactory<Connection>
 {
     Q_OBJECT
+    Q_DISABLE_COPY(Connection)
     Q_ENUMS(Readiness);
 
 public:
diff --git a/TelepathyQt4/Client/dbus-proxy.h b/TelepathyQt4/Client/dbus-proxy.h
index 67703bb..285b5dc 100644
--- a/TelepathyQt4/Client/dbus-proxy.h
+++ b/TelepathyQt4/Client/dbus-proxy.h
@@ -37,6 +37,7 @@ namespace Client
 class DBusProxy : public QObject
 {
     Q_OBJECT
+    Q_DISABLE_COPY(DBusProxy)
 
 public:
     DBusProxy(const QDBusConnection &dbusConnection, const QString &busName,
diff --git a/TelepathyQt4/Client/optional-interface-factory.h b/TelepathyQt4/Client/optional-interface-factory.h
index 7924591..29246a1 100644
--- a/TelepathyQt4/Client/optional-interface-factory.h
+++ b/TelepathyQt4/Client/optional-interface-factory.h
@@ -48,6 +48,8 @@ namespace Client
 
 class OptionalInterfaceCache
 {
+    Q_DISABLE_COPY(OptionalInterfaceCache)
+
     public:
         /**
          * Class constructor.
diff --git a/TelepathyQt4/Client/pending-channel.h b/TelepathyQt4/Client/pending-channel.h
index b9c52b5..6e93f8d 100644
--- a/TelepathyQt4/Client/pending-channel.h
+++ b/TelepathyQt4/Client/pending-channel.h
@@ -73,6 +73,7 @@ namespace Client
 class PendingChannel : public PendingOperation
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingChannel)
 
 public:
     /**
diff --git a/TelepathyQt4/Client/pending-handles.h b/TelepathyQt4/Client/pending-handles.h
index 5e05f8c..7aa6265 100644
--- a/TelepathyQt4/Client/pending-handles.h
+++ b/TelepathyQt4/Client/pending-handles.h
@@ -77,6 +77,7 @@ namespace Client
 class PendingHandles : public PendingOperation
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingHandles)
 
 public:
     /**
diff --git a/TelepathyQt4/Client/pending-operation.h b/TelepathyQt4/Client/pending-operation.h
index 8ed40b7..15a58ba 100644
--- a/TelepathyQt4/Client/pending-operation.h
+++ b/TelepathyQt4/Client/pending-operation.h
@@ -63,6 +63,7 @@ namespace Client
 class PendingOperation : public QObject
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingOperation)
 
 public:
     virtual ~PendingOperation();
diff --git a/TelepathyQt4/Client/simple-pending-operations.h b/TelepathyQt4/Client/simple-pending-operations.h
index 63090bb..871b25f 100644
--- a/TelepathyQt4/Client/simple-pending-operations.h
+++ b/TelepathyQt4/Client/simple-pending-operations.h
@@ -42,6 +42,7 @@ namespace Client
 class PendingSuccess : public PendingOperation
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingSuccess)
 
 public:
     PendingSuccess(QObject* parent)
@@ -59,6 +60,7 @@ public:
 class PendingFailure : public PendingOperation
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingFailure)
 
 public:
     PendingFailure(QObject* parent, const QString& name,
@@ -87,6 +89,7 @@ public:
 class PendingVoidMethodCall : public PendingOperation
 {
     Q_OBJECT
+    Q_DISABLE_COPY(PendingVoidMethodCall)
 
 public:
     /**
-- 
1.5.6.5



More information about the Telepathy-commits mailing list