summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobileclient.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmobile/kmobileclient.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmobile/kmobileclient.h')
-rw-r--r--kmobile/kmobileclient.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/kmobile/kmobileclient.h b/kmobile/kmobileclient.h
new file mode 100644
index 000000000..ca4b5c182
--- /dev/null
+++ b/kmobile/kmobileclient.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2003-2005 Helge Deller <deller@kde.org>
+ */
+
+#ifndef _KMOBILECLIENT_H_
+#define _KMOBILECLIENT_H_
+
+#include <dcopclient.h>
+#include <kdepimmacros.h>
+
+class KDE_EXPORT KMobileClient : public DCOPClient
+{
+ Q_OBJECT
+public:
+ KMobileClient();
+ virtual ~KMobileClient();
+
+ QCString appId() const { return m_clientAppId; };
+
+ bool isKMobileAvailable();
+ bool startKMobileApplication();
+
+ /**
+ * DCOP implementation
+ */
+ QStringList deviceNames();
+
+ void removeDevice( QString deviceName );
+ void configDevice( QString deviceName );
+
+ bool connectDevice( QString deviceName );
+ bool disconnectDevice( QString deviceName );
+ bool connected( QString deviceName );
+
+ QString deviceClassName( QString deviceName );
+ QString deviceName( QString deviceName );
+ QString revision( QString deviceName );
+ int classType( QString deviceName );
+
+ int capabilities( QString deviceName );
+ QString nameForCap( QString deviceName, int cap );
+
+ QString iconFileName( QString deviceName );
+
+ int numAddresses( QString deviceName );
+ QString readAddress( QString deviceName, int index );
+ bool storeAddress( QString deviceName, int index, QString vcard, bool append );
+
+ int numCalendarEntries( QString deviceName );
+
+ int numNotes( QString deviceName );
+ QString readNote( QString deviceName, int index );
+ bool storeNote( QString deviceName, int index, QString note );
+
+private:
+ QCString m_clientAppId;
+ QCString m_kmobileApp;
+ QCString m_kmobileObj;
+
+};
+
+#endif // _KMOBILECLIENT_H_