Diffstat (limited to 'libopie/ofileselector/ofilelistview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofilelistview.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libopie/ofileselector/ofilelistview.h b/libopie/ofileselector/ofilelistview.h new file mode 100644 index 0000000..c7e9223 --- a/dev/null +++ b/libopie/ofileselector/ofilelistview.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef OPIE_FILE_LIST_VIEW_H | ||
2 | #define OPIE_FILE_LIST_VIEW_H | ||
3 | |||
4 | #include <qlistview.h> | ||
5 | |||
6 | #include "ofileview.h" | ||
7 | |||
8 | class OFileListView : public QListView, public OFileView { | ||
9 | Q_OBJECT | ||
10 | public: | ||
11 | OFileListView( QWidget* parent, OFileSelector* ); | ||
12 | ~OFileListView(); | ||
13 | |||
14 | void clear(); | ||
15 | void addFile( const QString& mine, | ||
16 | QFileInfo* info, | ||
17 | bool isSymlink = FALSE ); | ||
18 | |||
19 | void addFile( const QString& mime, | ||
20 | const QString& dir, | ||
21 | const QString& file, | ||
22 | bool = false ); | ||
23 | |||
24 | void addDir( const QString& mime, | ||
25 | QFileInfo* info, bool = FALSE ); | ||
26 | void addDir( const QString& mime, const QString& dir, | ||
27 | const QString& file, bool = FALSE ); | ||
28 | |||
29 | void addSymlink( const QString& mime, | ||
30 | QFileInfo* info, bool = FALSE ); | ||
31 | void addSymlink( const QString& mine, const QString& path, | ||
32 | const QString& file, bool isSymlink = FALSE ); | ||
33 | void cd( const QString& path ); | ||
34 | QWidget* widget(); | ||
35 | |||
36 | QString selectedName()const ; | ||
37 | QStringList selectedNames()const; | ||
38 | |||
39 | QString selectedPath()const; | ||
40 | QStringList selectedPaths()const; | ||
41 | int fileCount(); | ||
42 | |||
43 | }; | ||
44 | |||
45 | #endif | ||