author | zecke <zecke> | 2002-04-27 23:12:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-27 23:12:20 (UTC) |
commit | a64cc0ad0574ae1e15c4965d2557c3e06cc3fd65 (patch) (unidiff) | |
tree | 80a622e1e82e46a24dc5968b7b89180d4420476c /libopie/ofileview.h | |
parent | db95cde435e507833f58111237f86cb9f9ac927a (diff) | |
download | opie-a64cc0ad0574ae1e15c4965d2557c3e06cc3fd65.zip opie-a64cc0ad0574ae1e15c4965d2557c3e06cc3fd65.tar.gz opie-a64cc0ad0574ae1e15c4965d2557c3e06cc3fd65.tar.bz2 |
compile it for Max
-rw-r--r-- | libopie/ofileview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie/ofileview.h b/libopie/ofileview.h index 48a71ca..ed256f1 100644 --- a/libopie/ofileview.h +++ b/libopie/ofileview.h | |||
@@ -1,79 +1,79 @@ | |||
1 | /* | 1 | /* |
2 | =. This file is part of the OPIE Project | 2 | =. This file is part of the OPIE Project |
3 | .=l. Copyright (c) 2002 zecke <zecke@handhelds.org> | 3 | .=l. Copyright (c) 2002 zecke <zecke@handhelds.org> |
4 | .>+-= | 4 | .>+-= |
5 | _;:, .> :=|. This library is free software; you can | 5 | _;:, .> :=|. This library is free software; you can |
6 | .> <`_, > . <= redistribute it and/or modify it under | 6 | .> <`_, > . <= redistribute it and/or modify it under |
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
8 | .="- .-=="i, .._ License as published by the Free Software | 8 | .="- .-=="i, .._ License as published by the Free Software |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | 9 | - . .-<_> .<> Foundation; either version 2 of the License, |
10 | ._= =} : or (at your option) any later version. | 10 | ._= =} : or (at your option) any later version. |
11 | .%`+i> _;_. | 11 | .%`+i> _;_. |
12 | .i_,=:_. -<s. This library is distributed in the hope that | 12 | .i_,=:_. -<s. This library is distributed in the hope that |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | : .. .:, . . . without even the implied warranty of | 14 | : .. .:, . . . without even the implied warranty of |
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
17 | ..}^=.= = ; Library General Public License for more | 17 | ..}^=.= = ; Library General Public License for more |
18 | ++= -. .` .: details. | 18 | ++= -. .` .: details. |
19 | : = ...= . :.=- | 19 | : = ...= . :.=- |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 20 | -. .:....=;==+<; You should have received a copy of the GNU |
21 | -_. . . )=. = Library General Public License along with | 21 | -_. . . )=. = Library General Public License along with |
22 | -- :-=` this library; see the file COPYING.LIB. | 22 | -- :-=` this library; see the file COPYING.LIB. |
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef ofileview_h | 29 | #ifndef ofileview_h |
30 | #define ofileview_h | 30 | #define ofileview_h |
31 | 31 | ||
32 | #include <qobject.h> | 32 | #include <qobject.h> |
33 | #include <qwidget.h> | 33 | #include <qwidget.h> |
34 | 34 | ||
35 | class QFileInfo; | 35 | class QFileInfo; |
36 | class QDir; | 36 | class QDir; |
37 | class DocLnk; | 37 | class DocLnk; |
38 | class OFileSelectorView : public QWidget { | 38 | class OFileSelectorView : public QWidget { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | public: | 40 | public: |
41 | OFileSelectorView(QWidget *widget, | 41 | OFileSelectorView(QWidget *widget, |
42 | const char *name ) | 42 | const char *name ) |
43 | : QWidget(widget, name ) | 43 | : QWidget(widget, name ) |
44 | { }; | 44 | { }; |
45 | virtual ~OFileSelectorView(); | 45 | virtual ~OFileSelectorView() = 0; |
46 | 46 | ||
47 | virtual void addFile(const QString &mine, | 47 | virtual void addFile(const QString &mine, |
48 | QFileInfo *info, | 48 | QFileInfo *info, |
49 | bool isSymlink = FALSE ) = 0; | 49 | bool isSymlink = FALSE ) = 0; |
50 | 50 | ||
51 | virtual void addDir (const QString &mine, | 51 | virtual void addDir (const QString &mine, |
52 | QFileInfo *info, | 52 | QFileInfo *info, |
53 | bool isSymlink = FALSE ) = 0; | 53 | bool isSymlink = FALSE ) = 0; |
54 | 54 | ||
55 | virtual void addSymlink(const QString &mime, | 55 | virtual void addSymlink(const QString &mime, |
56 | QFileInfo *info, | 56 | QFileInfo *info, |
57 | bool isSymlink = FALSE ) = 0; | 57 | bool isSymlink = FALSE ) = 0; |
58 | 58 | ||
59 | virtual void cd(const QString &path ); | 59 | virtual void cd(const QString &path ) = 0; |
60 | signals: | 60 | signals: |
61 | void fileSelected(const QString &); | 61 | void fileSelected(const QString &); |
62 | void fileSelected(const DocLnk & ); | 62 | void fileSelected(const DocLnk & ); |
63 | void contextMenu(); | 63 | void contextMenu(); |
64 | void changedDir(const QString &); | 64 | void changedDir(const QString &); |
65 | void changedDir(const QDir & ); | 65 | void changedDir(const QDir & ); |
66 | }; | 66 | }; |
67 | 67 | ||
68 | class OFileViewFactory { | 68 | class OFileViewFactory { |
69 | // Q_OBJECT | 69 | // Q_OBJECT |
70 | public: | 70 | public: |
71 | OFileViewFactory() {} ; | 71 | OFileViewFactory() {} ; |
72 | virtual ~OFileViewFactory(); | 72 | virtual ~OFileViewFactory() = 0; |
73 | 73 | ||
74 | OFileSelectorView* newView(QWidget *parent, const char *name ); | 74 | OFileSelectorView* newView(QWidget *parent, const char *name ); |
75 | QString name()const; | 75 | QString name()const; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | 78 | ||
79 | #endif | 79 | #endif |