summaryrefslogtreecommitdiffstats
path: root/qt/src/qdbusbus.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2006-06-04 15:52:05 +0000
committerThiago Macieira <thiago@kde.org>2006-06-04 15:52:05 +0000
commitedbf2bfc109ce94b2604ea20328fda25542e4383 (patch)
tree3281d191fa9dde9f1f26b947b145d02373f031b0 /qt/src/qdbusbus.h
parent435c7af9b605c3ffc8641142b6d7add18bf7080b (diff)
* qt/: Update to Subversion r548032.
This includes a big reorganisation of the files inside the subdir. We really need a version control system that supports moving of files. I'm not bothering with history anyways anymore, since the bindings will be moved out to git. The history should be restored from Subversion when that happens.
Diffstat (limited to 'qt/src/qdbusbus.h')
-rw-r--r--qt/src/qdbusbus.h158
1 files changed, 158 insertions, 0 deletions
diff --git a/qt/src/qdbusbus.h b/qt/src/qdbusbus.h
new file mode 100644
index 00000000..22606852
--- /dev/null
+++ b/qt/src/qdbusbus.h
@@ -0,0 +1,158 @@
+/* -*- C++ -*-
+ *
+ * Copyright (C) 2006 Trolltech AS. All rights reserved.
+ * Author: Thiago Macieira <thiago.macieira@trolltech.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This file was generated by dbusidl2cpp version 0.3
+ * when processing input file -
+ *
+ * dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
+ *
+ * This file has been hand-edited! Be careful when re-generating it!
+ *
+ */
+
+#ifndef QDBUSBUS_H
+#define QDBUSBUS_H
+
+#include <QtCore/qstringlist.h>
+
+#include "qdbusabstractinterface.h"
+#include "qdbusreply.h"
+
+class QDBusConnection;
+class QString;
+class QByteArray;
+
+/*
+ * Proxy class for interface org.freedesktop.DBus
+ */
+class QDBUS_EXPORT QDBusBusService: public QDBusAbstractInterface
+{
+ Q_OBJECT
+ friend class QDBusConnection;
+ static inline const char *staticInterfaceName();
+
+ explicit QDBusBusService(QDBusAbstractInterfacePrivate *p);
+
+ ~QDBusBusService();
+
+public:
+ // taken out of http://dbus.freedesktop.org/doc/dbus-specification.html
+ // update if the standard updates
+ enum RequestNameOption {
+ AllowReplacingName = 0x1,
+ ReplaceExistingName = 0x2,
+ DoNotQueueName = 0x4
+ };
+ Q_DECLARE_FLAGS(RequestNameOptions, RequestNameOption)
+
+ enum RequestNameReply {
+ PrimaryOwnerReply = 1,
+ InQueueReply = 2,
+ NameExistsReply = 3,
+ AlreadyOwnerReply = 4
+ };
+
+ enum ReleaseNameReply {
+ NameReleasedReply = 1,
+ NameNonExistentReply = 2,
+ NotOwnerReply = 3
+ };
+
+ enum StartServiceReply {
+ Success = 1,
+ AlreadyRunning = 2
+ };
+
+#ifndef Q_QDOC
+ // D-Bus names
+public: // METHODS
+ QDBusReply<QString> Hello();
+ QDBusReply<void> ReloadConfig();
+
+ QDBusReply<QStringList> ListNames();
+
+ QDBusReply<bool> NameHasOwner(const QString &service);
+ QDBusReply<QString> GetNameOwner(const QString &name);
+ QDBusReply<ReleaseNameReply> ReleaseName(const QString &service);
+ QDBusReply<RequestNameReply> RequestName(const QString &service, RequestNameOptions flags);
+ QDBusReply<QStringList> ListQueuedOwners(const QString &service);
+
+ QDBusReply<void> AddMatch(const QString &rule);
+ QDBusReply<void> RemoveMatch(const QString &rule);
+
+ QDBusReply<QByteArray> GetConnectionSELinuxSecurityContext(const QString &service);
+ QDBusReply<uint> GetConnectionUnixProcessID(const QString &service);
+ QDBusReply<uint> GetConnectionUnixUser(const QString &service);
+
+ QDBusReply<StartServiceReply> StartServiceByName(const QString &name, uint flags);
+
+signals: // SIGNALS
+ void NameAcquired(const QString &service);
+ void NameLost(const QString &service);
+ void NameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
+#endif
+
+ // Qt-style naming
+public slots:
+ QDBusReply<QString> hello()
+ { return Hello(); }
+ QDBusReply<void> reloadConfig()
+ { return ReloadConfig(); }
+
+ QDBusReply<QStringList> listNames()
+ { return ListNames(); }
+
+ QDBusReply<bool> nameHasOwner(const QString &service)
+ { return NameHasOwner(service); }
+ QDBusReply<QString> nameOwner(const QString &name)
+ { return GetNameOwner(name); }
+ QDBusReply<ReleaseNameReply> releaseName(const QString &service)
+ { return ReleaseName(service); }
+ QDBusReply<RequestNameReply> requestName(const QString &service, RequestNameOptions flags)
+ { return RequestName(service, flags); }
+ QDBusReply<QStringList> listQueuedOwners(const QString &service)
+ { return ListQueuedOwners(service); }
+
+ QDBusReply<void> addMatch(const QString &rule)
+ { return AddMatch(rule); }
+ QDBusReply<void> removeMatch(const QString &rule)
+ { return RemoveMatch(rule); }
+
+ QDBusReply<QByteArray> connectionSELinuxSecurityContext(const QString &service)
+ { return GetConnectionSELinuxSecurityContext(service); }
+ QDBusReply<uint> connectionUnixProcessID(const QString &service)
+ { return GetConnectionUnixProcessID(service); }
+ QDBusReply<uint> connectionUnixUser(const QString &service)
+ { return GetConnectionUnixUser(service); }
+
+ QDBusReply<StartServiceReply> startServiceByName(const QString &name, uint flags)
+ { return StartServiceByName(name, flags); }
+
+signals:
+ void nameAcquired(const QString &service);
+ void nameLost(const QString &service);
+ void nameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
+};
+
+Q_DECLARE_OPERATORS_FOR_FLAGS(QDBusBusService::RequestNameOptions)
+
+#endif