author | zecke <zecke> | 2002-10-29 19:08:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-29 19:08:40 (UTC) |
commit | 2957aae1073f4c41dd6783c41d1199be71cd9f4a (patch) (unidiff) | |
tree | 2aa5c4f61105aa151867e170601de58511479fd8 /libopie/ofileselector/olister.h | |
parent | a575fd4c862693705018902b4482c5135a8cb6a2 (diff) | |
download | opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.zip opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.tar.gz opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.tar.bz2 |
the reverse getting of filenames is actually enabled
There will be some code clean ups...
but the interfaces should be fine now
Diffstat (limited to 'libopie/ofileselector/olister.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/olister.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libopie/ofileselector/olister.h b/libopie/ofileselector/olister.h index cd84316..4adb9f8 100644 --- a/libopie/ofileselector/olister.h +++ b/libopie/ofileselector/olister.h | |||
@@ -23,7 +23,11 @@ class OLister { | |||
23 | public: | 23 | public: |
24 | OLister( OFileSelector* ); | 24 | OLister( OFileSelector* ); |
25 | virtual ~OLister(); | 25 | virtual ~OLister(); |
26 | virtual void reparse(const QString& path) = 0; | 26 | |
27 | /** | ||
28 | * if path == QString::null reread current dir | ||
29 | */ | ||
30 | virtual void reparse(const QString& path = QString::null ) = 0; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * return a list of available mimetypes | 33 | * return a list of available mimetypes |
@@ -35,6 +39,8 @@ public: | |||
35 | /* some way a slot */ | 39 | /* some way a slot */ |
36 | virtual void fileSelected( const QString& dir, const QString& file, const QString& extra ) = 0; | 40 | virtual void fileSelected( const QString& dir, const QString& file, const QString& extra ) = 0; |
37 | virtual void changedDir( const QString& dir, const QString& file, const QString& extra ) = 0; | 41 | virtual void changedDir( const QString& dir, const QString& file, const QString& extra ) = 0; |
42 | virtual QString selectedName()const = 0; | ||
43 | virtual QStringList selectedNames()const = 0; | ||
38 | protected: | 44 | protected: |
39 | /** | 45 | /** |
40 | * I hate too big classes | 46 | * I hate too big classes |
@@ -77,9 +83,19 @@ protected: | |||
77 | const QString& extra = QString::null, | 83 | const QString& extra = QString::null, |
78 | bool isSymlink = FALSE ); | 84 | bool isSymlink = FALSE ); |
79 | OFileSelector* view(); | 85 | OFileSelector* view(); |
86 | OFileSelector* view()const; | ||
80 | OPixmapProvider* provider(); | 87 | OPixmapProvider* provider(); |
81 | void internFileSelected( const QString& file ); | 88 | void internFileSelected( const QString& file ); |
82 | void internChangedDir( const QString& dir ); | 89 | void internChangedDir( const QString& dir ); |
90 | |||
91 | /** | ||
92 | * try to take | ||
93 | * the text from the mainwindows | ||
94 | * lineedit | ||
95 | * if it's not available QString::null | ||
96 | * will be returned | ||
97 | */ | ||
98 | QString lineEdit()const; | ||
83 | private: | 99 | private: |
84 | OFileSelector* m_view; | 100 | OFileSelector* m_view; |
85 | OPixmapProvider* m_prov; | 101 | OPixmapProvider* m_prov; |