fix class and file names in the d-bus examples
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Thu, 2 Aug 2012 18:49:12 +0000 (20:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Aug 2012 16:55:43 +0000 (18:55 +0200)
some omissions from the com.trolltech => org.example replacement.

Change-Id: I078c272fc3729fc7b9e9cd3e6ede7c21f0386b62
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
examples/dbus/dbus-chat/chat.cpp
examples/dbus/dbus-chat/chat_interface.cpp
examples/dbus/dbus-chat/chat_interface.h
examples/dbus/dbus-chat/org.example.chat.xml [moved from examples/dbus/dbus-chat/com.trolltech.chat.xml with 100% similarity]
examples/dbus/remotecontrolledcar/controller/car_interface.cpp
examples/dbus/remotecontrolledcar/controller/car_interface.h
examples/dbus/remotecontrolledcar/controller/controller.cpp
examples/dbus/remotecontrolledcar/controller/controller.h

index beeccb0..3c3c0f9 100644 (file)
@@ -62,8 +62,8 @@ ChatMainWindow::ChatMainWindow()
     new ChatAdaptor(this);
     QDBusConnection::sessionBus().registerObject("/", this);
 
-    com::trolltech::chat *iface;
-    iface = new com::trolltech::chat(QString(), QString(), QDBusConnection::sessionBus(), this);
+    org::example::chat *iface;
+    iface = new org::example::chat(QString(), QString(), QDBusConnection::sessionBus(), this);
     //connect(iface, SIGNAL(message(QString,QString)), this, SLOT(messageSlot(QString,QString)));
     QDBusConnection::sessionBus().connect(QString(), QString(), "org.example.chat", "message", this, SLOT(messageSlot(QString,QString)));
     connect(iface, SIGNAL(action(QString,QString)), this, SLOT(actionSlot(QString,QString)));
index eb2258d..01dc595 100644 (file)
 
 #include "chat_interface.h"
 /*
- * Implementation of interface class ComTrolltechChatInterface
+ * Implementation of interface class OrgExampleChatInterface
  */
 
-ComTrolltechChatInterface::ComTrolltechChatInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+OrgExampleChatInterface::OrgExampleChatInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
     : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
 {
 }
 
-ComTrolltechChatInterface::~ComTrolltechChatInterface()
+OrgExampleChatInterface::~OrgExampleChatInterface()
 {
 }
 
index ee01a79..f4d524e 100644 (file)
@@ -62,7 +62,7 @@
 /*
  * Proxy class for interface org.example.chat
  */
-class ComTrolltechChatInterface: public QDBusAbstractInterface
+class OrgExampleChatInterface: public QDBusAbstractInterface
 {
     Q_OBJECT
 public:
@@ -70,9 +70,9 @@ public:
     { return "org.example.chat"; }
 
 public:
-    ComTrolltechChatInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+    OrgExampleChatInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
 
-    ~ComTrolltechChatInterface();
+    ~OrgExampleChatInterface();
 
 public Q_SLOTS: // METHODS
 Q_SIGNALS: // SIGNALS
@@ -80,9 +80,9 @@ Q_SIGNALS: // SIGNALS
     void message(const QString &nickname, const QString &text);
 };
 
-namespace com {
-  namespace trolltech {
-    typedef ::ComTrolltechChatInterface chat;
+namespace org {
+  namespace example {
+    typedef ::OrgExampleChatInterface chat;
   }
 }
 #endif
index 8f495ea..3a7020e 100644 (file)
 
 #include "car_interface.h"
 /*
- * Implementation of interface class ComTrolltechExamplesCarInterfaceInterface
+ * Implementation of interface class OrgExampleExamplesCarInterfaceInterface
  */
 
-ComTrolltechExamplesCarInterfaceInterface::ComTrolltechExamplesCarInterfaceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+OrgExampleExamplesCarInterfaceInterface::OrgExampleExamplesCarInterfaceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
     : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
 {
 }
 
-ComTrolltechExamplesCarInterfaceInterface::~ComTrolltechExamplesCarInterfaceInterface()
+OrgExampleExamplesCarInterfaceInterface::~OrgExampleExamplesCarInterfaceInterface()
 {
 }
 
index 8d624b3..1696b2f 100644 (file)
@@ -62,7 +62,7 @@
 /*
  * Proxy class for interface org.example.Examples.CarInterface
  */
-class ComTrolltechExamplesCarInterfaceInterface: public QDBusAbstractInterface
+class OrgExampleExamplesCarInterfaceInterface: public QDBusAbstractInterface
 {
     Q_OBJECT
 public:
@@ -70,9 +70,9 @@ public:
     { return "org.example.Examples.CarInterface"; }
 
 public:
-    ComTrolltechExamplesCarInterfaceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+    OrgExampleExamplesCarInterfaceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
 
-    ~ComTrolltechExamplesCarInterfaceInterface();
+    ~OrgExampleExamplesCarInterfaceInterface();
 
 public Q_SLOTS: // METHODS
     inline QDBusPendingReply<> accelerate()
@@ -103,10 +103,10 @@ Q_SIGNALS: // SIGNALS
     void crashed();
 };
 
-namespace com {
-  namespace trolltech {
+namespace org {
+  namespace example {
     namespace Examples {
-      typedef ::ComTrolltechExamplesCarInterfaceInterface CarInterface;
+      typedef ::OrgExampleExamplesCarInterfaceInterface CarInterface;
     }
   }
 }
index fb829da..9c4950a 100644 (file)
@@ -47,7 +47,7 @@ Controller::Controller(QWidget *parent)
     : QWidget(parent)
 {
     ui.setupUi(this);
-    car = new com::trolltech::Examples::CarInterface("org.example.CarExample", "/Car",
+    car = new org::example::Examples::CarInterface("org.example.CarExample", "/Car",
                            QDBusConnection::sessionBus(), this);
     startTimer(1000);
 }
index 2d8c903..0ce8a8e 100644 (file)
@@ -62,7 +62,7 @@ private slots:
 
 private:
     Ui::Controller ui;
-    com::trolltech::Examples::CarInterface *car;
+    org::example::Examples::CarInterface *car;
 };
 
 #endif