From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmobile/kmobileview.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 kmobile/kmobileview.h (limited to 'kmobile/kmobileview.h') diff --git a/kmobile/kmobileview.h b/kmobile/kmobileview.h new file mode 100644 index 000000000..4e18793cc --- /dev/null +++ b/kmobile/kmobileview.h @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2003 Helge Deller + */ + +#ifndef _KMOBILEVIEW_H_ +#define _KMOBILEVIEW_H_ + +#include + +#include "kmobileiface.h" + +#include +class KConfig; +class KMobileItem; + +/** + * This is the main view class for kmobile. + * + * @short Main view + * @author Helge Deller + * @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_ -- cgit v1.2.1