[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebindings/kjsembed/bindings
From: Ian Reinhart Geiser <geiseri () kde ! org>
Date: 2003-12-01 4:31:00
[Download RAW message or body]
CVS commit by geiseri:
Added DCOP remoteFunctions, remoteInterfaces,
remoteObjects, registeredApplication.
M +39 -1 dcop_imp.cpp 1.4
M +7 -2 dcop_imp.h 1.4
--- kdebindings/kjsembed/bindings/dcop_imp.cpp #1.3:1.4
@@ -414,4 +414,40 @@ void dcop::marshall( const QVariant& dat
}
+QStringList dcop::remoteFunctions( const QString & remApp, const QString & remObj )
+{
+ QStringList returnList;
+ QCStringList lst = m_client->remoteFunctions(remApp.local8Bit(), remObj.local8Bit());
+ for(int idx = 0; idx < lst.count(); ++idx)
+ returnList += lst[idx];
+ return returnList;
+}
+
+QStringList dcop::remoteInterfaces( const QString & remApp, const QString & remObj )
+{
+ QStringList returnList;
+ QCStringList lst = m_client->remoteInterfaces(remApp.local8Bit(), remObj.local8Bit());
+ for(int idx = 0; idx < lst.count(); ++idx)
+ returnList += lst[idx];
+ return returnList;
+}
+
+QStringList dcop::remoteObjects( const QString & remApp )
+{
+ QStringList returnList;
+ QCStringList lst = m_client->remoteObjects(remApp.local8Bit());
+ for(int idx = 0; idx < lst.count(); ++idx)
+ returnList += lst[idx];
+ return returnList;
+}
+
+QStringList dcop::registeredApplications( )
+{
+ QStringList returnList;
+ QCStringList lst = m_client->registeredApplications( );
+ for(int idx = 0; idx < lst.count(); ++idx)
+ returnList += lst[idx];
+ return returnList;
+}
+
} // namespace Bindings
} // namespace KJSEmbed
--- kdebindings/kjsembed/bindings/dcop_imp.h #1.3:1.4
@@ -27,5 +27,5 @@
class DCOPClient;
-#include <qdatastream.h>
+#include <kdatastream.h>
#include <qvariant.h>
#include <qstring.h>
@@ -55,4 +55,9 @@ public slots:
bool isAttached() const;
+
+ QStringList registeredApplications();
+ QStringList remoteObjects( const QString& remApp);
+ QStringList remoteInterfaces( const QString& remApp, const QString& remObj );
+ QStringList remoteFunctions( const QString& remApp, const QString& remObj);
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic