Diffstat (limited to 'libopie/ofileselector/olister.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/olister.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libopie/ofileselector/olister.h b/libopie/ofileselector/olister.h index 79d5409..cd84316 100644 --- a/libopie/ofileselector/olister.h +++ b/libopie/ofileselector/olister.h | |||
@@ -24,26 +24,26 @@ public: | |||
24 | OLister( OFileSelector* ); | 24 | OLister( OFileSelector* ); |
25 | virtual ~OLister(); | 25 | virtual ~OLister(); |
26 | virtual void reparse(const QString& path) = 0; | 26 | virtual void reparse(const QString& path) = 0; |
27 | 27 | ||
28 | /** | 28 | /** |
29 | * return a list of available mimetypes | 29 | * return a list of available mimetypes |
30 | */ | 30 | */ |
31 | virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0; | 31 | virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0; |
32 | void setPixmapProvider( OPixmapProvider* ); | 32 | void setPixmapProvider( OPixmapProvider* ); |
33 | 33 | ||
34 | 34 | ||
35 | /* some way a slot */ | 35 | /* some way a slot */ |
36 | void fileSelected( const QString& dir, const QString& file, const QString& extra ) = 0; | 36 | virtual void fileSelected( const QString& dir, const QString& file, const QString& extra ) = 0; |
37 | void changeDir( const QString& dir, const QString& file, const QString& extra ) = 0; | 37 | virtual void changedDir( const QString& dir, const QString& file, const QString& extra ) = 0; |
38 | protected: | 38 | protected: |
39 | /** | 39 | /** |
40 | * I hate too big classes | 40 | * I hate too big classes |
41 | * this is a way to group | 41 | * this is a way to group |
42 | * access to a ComboBox | 42 | * access to a ComboBox |
43 | * which might exist or | 43 | * which might exist or |
44 | * not in a secure way | 44 | * not in a secure way |
45 | */ | 45 | */ |
46 | OListerCmbAccess* comboBox(); | 46 | OListerCmbAccess* comboBox(); |
47 | 47 | ||
48 | bool showFiles()const; | 48 | bool showFiles()const; |
49 | bool showDirs()const; | 49 | bool showDirs()const; |
@@ -51,41 +51,44 @@ protected: | |||
51 | void addFile( const QString& mine, | 51 | void addFile( const QString& mine, |
52 | QFileInfo*, | 52 | QFileInfo*, |
53 | const QString& extra = QString::null, | 53 | const QString& extra = QString::null, |
54 | bool isSymlink = FALSE ); | 54 | bool isSymlink = FALSE ); |
55 | 55 | ||
56 | void addFile( const QString& mine, | 56 | void addFile( const QString& mine, |
57 | const QString& path, | 57 | const QString& path, |
58 | const QString& file, | 58 | const QString& file, |
59 | const QString& extra = QString::null, | 59 | const QString& extra = QString::null, |
60 | bool isSymlink = FALSE ); | 60 | bool isSymlink = FALSE ); |
61 | void addDir( const QString& mine, | 61 | void addDir( const QString& mine, |
62 | QFileInfo*, | 62 | QFileInfo*, |
63 | const QString& extra = QString::null, | ||
63 | bool isSymlink = FALSE ); | 64 | bool isSymlink = FALSE ); |
64 | void addDir( const QString& mine, | 65 | void addDir( const QString& mine, |
65 | const QString& path, | 66 | const QString& path, |
66 | const QString& dir, | 67 | const QString& dir, |
67 | const QString& extra = QString::null, | 68 | const QString& extra = QString::null, |
68 | bool isSymlink = FALSE ); | 69 | bool isSymlink = FALSE ); |
69 | void addSymlink( const QString& mine, | 70 | void addSymlink( const QString& mine, |
70 | QFileInfo* info, | 71 | QFileInfo* info, |
71 | const QString& extra = QString::null, | 72 | const QString& extra = QString::null, |
72 | bool isSymlink = FALSE); | 73 | bool isSymlink = FALSE); |
73 | void addSymlink( const QString& mine, | 74 | void addSymlink( const QString& mine, |
74 | const QString& path, | 75 | const QString& path, |
75 | const QString& name, | 76 | const QString& name, |
76 | const QString& extra = QString::null, | 77 | const QString& extra = QString::null, |
77 | bool isSymlink = FALSE ); | 78 | bool isSymlink = FALSE ); |
78 | OFileSelector* view(); | 79 | OFileSelector* view(); |
79 | OPixmapProvider* provider(); | 80 | OPixmapProvider* provider(); |
81 | void internFileSelected( const QString& file ); | ||
82 | void internChangedDir( const QString& dir ); | ||
80 | private: | 83 | private: |
81 | OFileSelector* m_view; | 84 | OFileSelector* m_view; |
82 | OPixmapProvider* m_prov; | 85 | OPixmapProvider* m_prov; |
83 | OListerCmbAccess* m_acc; | 86 | OListerCmbAccess* m_acc; |
84 | 87 | ||
85 | class Private; | 88 | class Private; |
86 | Private *d; | 89 | Private *d; |
87 | }; | 90 | }; |
88 | 91 | ||
89 | class OListerCmbAccess { | 92 | class OListerCmbAccess { |
90 | friend class OLister; | 93 | friend class OLister; |
91 | public: | 94 | public: |