[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Jan 12 18:54:19 UTC 2007


SVN commit 622732 by rdale:

* Added some missing methods to QDBusConnectionInterface

CCMAIL: kde-bindings at kde.org



 M  +1 -0      ChangeLog  
 M  +23 -0     qdbus/QDBusConnectionInterface.cs  


--- trunk/playground/bindings/kimono/ChangeLog #622731:622732
@@ -2,6 +2,7 @@
 
 	* Change the cmake build to use gmcs rather than mcs
 	* Added a QDBusReply class using a generic type
+	* Added some missing methods to QDBusConnectionInterface
 
 2006-12-07  Richard Dale  <rdale at foton.es>
 
--- trunk/playground/bindings/kimono/qdbus/QDBusConnectionInterface.cs #622731:622732
@@ -60,6 +60,29 @@
 		// QDBusReply<uint> servicePid(const QString& arg1); >>>> NOT CONVERTED
 		// QDBusReply<uint> serviceUid(const QString& arg1); >>>> NOT CONVERTED
 		// QDBusReply<void> startService(const QString& arg1); >>>> NOT CONVERTED
+
+		public QDBusReply<bool> isServiceRegistered(string serviceName) {
+            ArrayList serviceArg = new ArrayList();
+			serviceArg.Add(new QVariant(serviceName));
+			return new QDBusReply<bool>(InternalConstCall(QDBus.CallMode.AutoDetect,"NameHasOwner", serviceArg));
+		}
+
+		public QDBusReply<uint> servicePid(string serviceName) {
+            ArrayList serviceArg = new ArrayList();
+			serviceArg.Add(new QVariant(serviceName));
+			return new QDBusReply<uint>(InternalConstCall(QDBus.CallMode.AutoDetect, "GetConnectionUnixProcessID", serviceArg));
+		}
+
+		public QDBusReply<uint> serviceUid(string serviceName) {
+            ArrayList serviceArg = new ArrayList();
+			serviceArg.Add(new QVariant(serviceName));
+			return new QDBusReply<uint>(InternalConstCall(QDBus.CallMode.AutoDetect, "GetConnectionUnixUser", serviceArg));
+		}
+
+		public QDBusReply<int> startService(string name) {
+			return new QDBusReply<int>(Call("StartServiceByName", new QVariant(name), new QVariant(0)));
+		}
+
 		[SmokeMethod("tr(const char*, const char*)")]
 		public static new string Tr(string s, string c) {
 			return StaticQDBusConnectionInterface().Tr(s,c);



More information about the Kde-bindings mailing list