author | mickeyl <mickeyl> | 2004-01-15 13:59:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-15 13:59:58 (UTC) |
commit | dde789ef19fa3a3913805e452ac1e3400688e8a0 (patch) (unidiff) | |
tree | a33a0ce31750ad56cfd3362585d4e7b32ca0a456 /libopie2/opieui/fileselector/ofileview.h | |
parent | 3c74c5343a8432c494ace71d94cca354c01ef1d3 (diff) | |
download | opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.zip opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.tar.gz opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.tar.bz2 |
more libopie1 --> libopie2 with namespace cleanups and code layout cleanups
Diffstat (limited to 'libopie2/opieui/fileselector/ofileview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/fileselector/ofileview.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/libopie2/opieui/fileselector/ofileview.h b/libopie2/opieui/fileselector/ofileview.h new file mode 100644 index 0000000..495401b --- a/dev/null +++ b/libopie2/opieui/fileselector/ofileview.h | |||
@@ -0,0 +1,95 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (C) 2002 Holger Freyther <zecke@handhelds.org> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #ifndef OFILEVIEW_H | ||
30 | #define OFILEVIEW_H | ||
31 | |||
32 | /* QT */ | ||
33 | #include <qobject.h> | ||
34 | #include <qwidget.h> | ||
35 | |||
36 | class QFileInfo; | ||
37 | class QDir; | ||
38 | class DocLnk; | ||
39 | |||
40 | namespace Opie | ||
41 | { | ||
42 | |||
43 | /** | ||
44 | * A OFileView is a specialised View for the | ||
45 | * OFileSelector | ||
46 | * With a View you can chage the user visible | ||
47 | * representation of a OFileLister | ||
48 | * OFileView is just a basic interface which helps you to | ||
49 | * write new views | ||
50 | */ | ||
51 | class OFileView : public QWidget | ||
52 | { | ||
53 | Q_OBJECT | ||
54 | public: | ||
55 | OFileView(QWidget *widget, | ||
56 | const char *name ); | ||
57 | |||
58 | OFileView(); | ||
59 | |||
60 | virtual void addFile(const QString &mine, | ||
61 | QFileInfo *info, | ||
62 | bool isSymlink = FALSE ) = 0; | ||
63 | |||
64 | virtual void addDir (const QString &mine, | ||
65 | QFileInfo *info, | ||
66 | bool isSymlink = FALSE ) = 0; | ||
67 | |||
68 | virtual void addSymlink(const QString &mime, | ||
69 | QFileInfo *info, | ||
70 | bool isSymlink = FALSE ) = 0; | ||
71 | |||
72 | virtual void cd(const QString &path ) = 0; | ||
73 | signals: | ||
74 | void fileSelected(const QString &); | ||
75 | void fileSelected(const DocLnk & ); | ||
76 | void contextMenu(); | ||
77 | void changedDir(const QString &); | ||
78 | void changedDir(const QDir & ); | ||
79 | }; | ||
80 | |||
81 | |||
82 | class OFileViewFactory | ||
83 | { | ||
84 | // Q_OBJECT | ||
85 | public: | ||
86 | OFileViewFactory() {} ; | ||
87 | virtual ~OFileViewFactory() = 0; | ||
88 | |||
89 | OFileView* newView(QWidget *parent, const char *name ); | ||
90 | QString name()const; | ||
91 | }; | ||
92 | |||
93 | }; | ||
94 | |||
95 | #endif | ||