summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofileview.h
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofileview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/ofileview.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/libopie/ofileselector/ofileview.h b/libopie/ofileselector/ofileview.h
index a4b1748..d7ea4a2 100644
--- a/libopie/ofileselector/ofileview.h
+++ b/libopie/ofileselector/ofileview.h
@@ -44,62 +44,72 @@ class DocLnk;
44 * representation of a OFileLister 44 * representation of a OFileLister
45 * OFileView is just a basic interface which helps you to 45 * OFileView is just a basic interface which helps you to
46 * write new views 46 * write new views
47 */ 47 */
48class OFileSelector; 48class OFileSelector;
49class OFileView { 49class OFileView {
50public: 50public:
51 OFileView( OFileSelector* ); 51 OFileView( OFileSelector* );
52 OFileView(); 52 OFileView();
53 virtual ~OFileView(); 53 virtual ~OFileView();
54 54
55 virtual void clear() = 0; 55 virtual void clear() = 0;
56 virtual void addFile(const QString &mine, 56 virtual void addFile(const QPixmap&,
57 const QString &mine,
57 QFileInfo *info, 58 QFileInfo *info,
58 bool isSymlink = FALSE ) = 0; 59 bool isSymlink = FALSE ) = 0;
59 virtual void addFile(const QString& mine, const QString& dir, 60
61 virtual void addFile(const QPixmap&,
62 const QString& mine, const QString& dir,
60 const QString& file, bool = FALSE ) = 0; 63 const QString& file, bool = FALSE ) = 0;
61 64
62 virtual void addDir (const QString &mine, 65 virtual void addDir (const QPixmap&,
66 const QString &mine,
63 QFileInfo *info, 67 QFileInfo *info,
64 bool isSymlink = FALSE ) = 0; 68 bool isSymlink = FALSE ) = 0;
65 virtual void addDir (const QString& mine, const QString& dir, 69 virtual void addDir (const QPixmap&,
70 const QString& mine, const QString& dir,
66 const QString& file, bool = FALSE) = 0; 71 const QString& file, bool = FALSE) = 0;
67 72
68 virtual void addSymlink(const QString &mime, 73 virtual void addSymlink(const QPixmap&,
74 const QString &mime,
69 QFileInfo *info, 75 QFileInfo *info,
70 bool isSymlink = FALSE ) = 0; 76 bool isSymlink = FALSE ) = 0;
71 virtual void addSymlink(const QString& mine, 77
78 virtual void addSymlink(const QPixmap&,
79 const QString& mine,
72 const QString& path, 80 const QString& path,
73 const QString& file, 81 const QString& file,
74 bool isSymlink = FALSE ) = 0; 82 bool isSymlink = FALSE ) = 0;
75 83
76 virtual void cd(const QString &path ) = 0; 84 virtual void cd(const QString &path ) = 0;
77 virtual QWidget* widget() = 0; 85 virtual QWidget* widget() = 0;
78 86
79 virtual QString selectedName()const = 0; 87 virtual QString selectedName()const = 0;
80 virtual QStringList selectedNames()const = 0; 88 virtual QStringList selectedNames()const = 0;
81 virtual QString selectedPath()const = 0; 89 virtual QString selectedPath()const = 0;
82 virtual QStringList selectedPaths()const = 0; 90 virtual QStringList selectedPaths()const = 0;
83 virtual int fileCount() = 0; 91 virtual int fileCount() = 0;
84 virtual void sort() =0; 92 virtual void sort() =0;
85 93
86/*signals:*/ 94/*signals:*/
87protected: 95protected:
88 96
89 void fileSelected(const QString &); 97 void fileSelected(const QString &);
90 void fileSelected(const DocLnk & ); 98 void fileSelected(const DocLnk & );
91 void contextMenu(); 99 void contextMenu();
92 void changedDir(const QString &); 100 void changedDir(const QString &);
93 void changedDir(const QDir & ); 101 void changedDir(const QDir & );
102
103 /* updates the file name line of the FileSelector */
94 void updateLine( const QString& ); 104 void updateLine( const QString& );
95 OFileSelector* selector()const; 105 OFileSelector* selector()const;
96 106
97private: 107private:
98 OFileSelector* m_sel; 108 OFileSelector* m_sel;
99}; 109};
100 110
101class OFileViewFactory { 111class OFileViewFactory {
102 public: 112 public:
103 OFileViewFactory() {} ; 113 OFileViewFactory() {} ;
104 virtual ~OFileViewFactory() = 0; 114 virtual ~OFileViewFactory() = 0;
105 115