summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobileview.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/kmobileview.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/kmobileview.h')
-rw-r--r--kmobile/kmobileview.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/kmobile/kmobileview.h b/kmobile/kmobileview.h
new file mode 100644
index 00000000..4e18793c
--- /dev/null
+++ b/kmobile/kmobileview.h
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2003 Helge Deller <deller@kde.org>
+ */
+
+#ifndef _KMOBILEVIEW_H_
+#define _KMOBILEVIEW_H_
+
+#include <qiconview.h>
+
+#include "kmobileiface.h"
+
+#include <kdepimmacros.h>
+class KConfig;
+class KMobileItem;
+
+/**
+ * This is the main view class for kmobile.
+ *
+ * @short Main view
+ * @author Helge Deller <deller@kde.org>
+ * @version 0.1
+ */
+class KDE_EXPORT KMobileView : public QIconView, public kmobileIface
+{
+ Q_OBJECT
+public:
+ KMobileView(QWidget *parent, KConfig *_config);
+ virtual ~KMobileView();
+
+ bool addNewDevice(KConfig *config, KService::Ptr service);
+ bool startKonqueror(const QString &devName);
+
+ /**
+ * 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 );
+
+ /* devices kioslave support: */
+ QStringList kio_devices_deviceInfo(QString deviceName);
+
+public:
+ void saveAll();
+ void restoreAll();
+
+protected:
+ KMobileItem * findDevice( const QString &deviceName ) const;
+
+protected slots:
+ void slotDoubleClicked( QIconViewItem * item );
+
+signals:
+ /**
+ * Use this signal to change the content of the statusbar
+ */
+ void signalChangeStatusbar(const QString& text);
+
+private:
+ KConfig *m_config;
+
+};
+
+#endif // _KMOBILEVIEW_H_