author | korovkin <korovkin> | 2006-03-19 14:59:21 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-03-19 14:59:21 (UTC) |
commit | 39fedaa847ed64b2c0113a75d0f1de29da5876db (patch) (unidiff) | |
tree | 442fc009975e72a22cb9773b88599ea388af195b /noncore/net/opietooth/manager/filelistitem.h | |
parent | 3de693f244170cb9424d841aef6a6d7175766fa3 (diff) | |
download | opie-39fedaa847ed64b2c0113a75d0f1de29da5876db.zip opie-39fedaa847ed64b2c0113a75d0f1de29da5876db.tar.gz opie-39fedaa847ed64b2c0113a75d0f1de29da5876db.tar.bz2 |
Added device browsing and files downloading using OBEX File transfer
protocol.
Diffstat (limited to 'noncore/net/opietooth/manager/filelistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/filelistitem.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/filelistitem.h b/noncore/net/opietooth/manager/filelistitem.h new file mode 100644 index 0000000..a45d196 --- a/dev/null +++ b/noncore/net/opietooth/manager/filelistitem.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* $Id$ */ | ||
2 | /* Directory tree entry */ | ||
3 | /*************************************************************************** | ||
4 | * * | ||
5 | * This program is free software; you can redistribute it and/or modify * | ||
6 | * it under the terms of the GNU General Public License as published by * | ||
7 | * the Free Software Foundation; either version 2 of the License, or * | ||
8 | * (at your option) any later version. * | ||
9 | * * | ||
10 | ***************************************************************************/ | ||
11 | #ifndef FILELISTITEM_H | ||
12 | #define FILELISTITEM_H | ||
13 | |||
14 | #include <qlistview.h> | ||
15 | #include <sys/stat.h> | ||
16 | #include <client.h> | ||
17 | |||
18 | enum dtype { IS_DIR = 0, IS_FILE = 1 }; | ||
19 | |||
20 | namespace OpieTooth { | ||
21 | |||
22 | class FileListItem : public QListViewItem { | ||
23 | Q_OBJECT | ||
24 | public: | ||
25 | FileListItem(QListView * parent, stat_entry_t* ent, int size = 0); | ||
26 | FileListItem(QListViewItem * parent, stat_entry_t* ent, int size = 0); | ||
27 | virtual QString key ( int, bool ) const; | ||
28 | virtual enum dtype gettype(); | ||
29 | protected: | ||
30 | void init(stat_entry_t* ent, int size); | ||
31 | protected: | ||
32 | QString m_name; //name | ||
33 | int m_size; //file (not directory) size | ||
34 | enum dtype type; //type: file or directory | ||
35 | }; | ||
36 | }; | ||
37 | |||
38 | #endif | ||