-rw-r--r-- | noncore/net/opietooth/manager/filelistitem.cpp | 5 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/filelistitem.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/filelistitem.cpp b/noncore/net/opietooth/manager/filelistitem.cpp index 86fcc54..a6d6bb5 100644 --- a/noncore/net/opietooth/manager/filelistitem.cpp +++ b/noncore/net/opietooth/manager/filelistitem.cpp | |||
@@ -63,9 +63,14 @@ QString FileListItem::key(int, bool) const | |||
63 | return str; | 63 | return str; |
64 | } | 64 | } |
65 | 65 | ||
66 | enum dtype FileListItem::gettype() | 66 | enum dtype FileListItem::gettype() |
67 | { | 67 | { |
68 | return type; | 68 | return type; |
69 | } | 69 | } |
70 | 70 | ||
71 | int FileListItem::getsize() | ||
72 | { | ||
73 | return m_size; | ||
74 | } | ||
75 | |||
71 | //eof | 76 | //eof |
diff --git a/noncore/net/opietooth/manager/filelistitem.h b/noncore/net/opietooth/manager/filelistitem.h index a45d196..d4019bf 100644 --- a/noncore/net/opietooth/manager/filelistitem.h +++ b/noncore/net/opietooth/manager/filelistitem.h | |||
@@ -21,16 +21,17 @@ namespace OpieTooth { | |||
21 | 21 | ||
22 | class FileListItem : public QListViewItem { | 22 | class FileListItem : public QListViewItem { |
23 | Q_OBJECT | 23 | Q_OBJECT |
24 | public: | 24 | public: |
25 | FileListItem(QListView * parent, stat_entry_t* ent, int size = 0); | 25 | FileListItem(QListView * parent, stat_entry_t* ent, int size = 0); |
26 | FileListItem(QListViewItem * 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; | 27 | virtual QString key ( int, bool ) const; |
28 | virtual enum dtype gettype(); | 28 | virtual enum dtype gettype(); |
29 | virtual int getsize(); | ||
29 | protected: | 30 | protected: |
30 | void init(stat_entry_t* ent, int size); | 31 | void init(stat_entry_t* ent, int size); |
31 | protected: | 32 | protected: |
32 | QString m_name; //name | 33 | QString m_name; //name |
33 | int m_size; //file (not directory) size | 34 | int m_size; //file (not directory) size |
34 | enum dtype type; //type: file or directory | 35 | enum dtype type; //type: file or directory |
35 | }; | 36 | }; |
36 | }; | 37 | }; |