blob: 81878c8d057ac5299816e8fb50b1c9ff12a45702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* Copyright (C) 2003 Helge Deller <[email protected]>
*/
#ifndef _KMOBILEITEM_H_
#define _KMOBILEITEM_H_
#include <tqiconview.h>
#include <tqpixmap.h>
#include <ktrader.h>
#include "kmobiledevice.h"
class KMobileItem : public TQObject, public TQIconViewItem
{
Q_OBJECT
friend class KMobileView;
public:
KMobileItem(TQIconView *parent, KConfig *config, KService::Ptr service);
KMobileItem(TQIconView *parent, KConfig *config, int reload_index);
virtual ~KMobileItem();
void configSave() const;
bool configLoad(int index);
TQString config_SectionName( int idx = -1 ) const;
TQPixmap getIcon() const;
static KTrader::OfferList getMobileDevicesList();
protected:
TQString getKonquMimeType() const;
void writeKonquMimeFile() const;
KService::Ptr getServicePtr() const;
bool driverAvailable();
KMobileDevice *m_dev;
signals:
private slots:
private:
KConfig *config;
TQString m_deviceConfigFile;
TQString m_deviceDesktopFile;
TQString m_iconName;
};
#endif // _KMOBILEITEM_H_
|