summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/olister.h
Side-by-side diff
Diffstat (limited to 'libopie/ofileselector/olister.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/olister.h18
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
@@ -20,24 +20,30 @@ class OListerCmbAccess;
*/
class OLister {
public:
OLister( OFileSelector* );
virtual ~OLister();
- virtual void reparse(const QString& path) = 0;
+
+ /**
+ * if path == QString::null reread current dir
+ */
+ virtual void reparse(const QString& path = QString::null ) = 0;
/**
* return a list of available mimetypes
*/
virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0;
void setPixmapProvider( OPixmapProvider* );
/* some way a slot */
virtual void fileSelected( const QString& dir, const QString& file, const QString& extra ) = 0;
virtual void changedDir( const QString& dir, const QString& file, const QString& extra ) = 0;
+ virtual QString selectedName()const = 0;
+ virtual QStringList selectedNames()const = 0;
protected:
/**
* I hate too big classes
* this is a way to group
* access to a ComboBox
* which might exist or
@@ -74,15 +80,25 @@ protected:
void addSymlink( const QString& mine,
const QString& path,
const QString& name,
const QString& extra = QString::null,
bool isSymlink = FALSE );
OFileSelector* view();
+ OFileSelector* view()const;
OPixmapProvider* provider();
void internFileSelected( const QString& file );
void internChangedDir( const QString& dir );
+
+ /**
+ * try to take
+ * the text from the mainwindows
+ * lineedit
+ * if it's not available QString::null
+ * will be returned
+ */
+ QString lineEdit()const;
private:
OFileSelector* m_view;
OPixmapProvider* m_prov;
OListerCmbAccess* m_acc;
class Private;