diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmobile/kmobileitem.h | |
download | tdepim-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/kmobileitem.h')
-rw-r--r-- | kmobile/kmobileitem.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/kmobile/kmobileitem.h b/kmobile/kmobileitem.h new file mode 100644 index 000000000..b23a8f1e0 --- /dev/null +++ b/kmobile/kmobileitem.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2003 Helge Deller <[email protected]> + */ + +#ifndef _KMOBILEITEM_H_ +#define _KMOBILEITEM_H_ + +#include <qiconview.h> +#include <qpixmap.h> +#include <ktrader.h> +#include "kmobiledevice.h" + +class KMobileItem : public QObject, public QIconViewItem +{ + Q_OBJECT + friend class KMobileView; +public: + KMobileItem(QIconView *parent, KConfig *config, KService::Ptr service); + KMobileItem(QIconView *parent, KConfig *config, int reload_index); + virtual ~KMobileItem(); + + void configSave() const; + bool configLoad(int index); + + QString config_SectionName( int idx = -1 ) const; + QPixmap getIcon() const; + + static KTrader::OfferList getMobileDevicesList(); + +protected: + QString getKonquMimeType() const; + void writeKonquMimeFile() const; + + + KService::Ptr getServicePtr() const; + bool driverAvailable(); + KMobileDevice *m_dev; + +signals: + +private slots: + +private: + KConfig *config; + + QString m_deviceConfigFile; + QString m_deviceDesktopFile; + + QString m_iconName; +}; + +#endif // _KMOBILEITEM_H_ |