summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/ofileview.h
Unidiff
Diffstat (limited to 'noncore/unsupported/libopie/ofileview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/libopie/ofileview.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/ofileview.h b/noncore/unsupported/libopie/ofileview.h
new file mode 100644
index 0000000..e072477
--- a/dev/null
+++ b/noncore/unsupported/libopie/ofileview.h
@@ -0,0 +1,87 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 zecke <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#include <qobject.h>
33#include <qwidget.h>
34
35class QFileInfo;
36class QDir;
37class DocLnk;
38
39/**
40 * A OFileView is a specialised View for the
41 * OFileSelector
42 * With a View you can chage the user visible
43 * representation of a OFileLister
44 * OFileView is just a basic interface which helps you to
45 * write new views
46 */
47class OFileView {
48 Q_OBJECT
49 public:
50 OFileView(QWidget *widget,
51 const char *name );
52 virtual OFileView();
53 virtual ~OFileSelectorView() = 0;
54
55 virtual void addFile(const QString &mine,
56 QFileInfo *info,
57 bool isSymlink = FALSE ) = 0;
58
59 virtual void addDir (const QString &mine,
60 QFileInfo *info,
61 bool isSymlink = FALSE ) = 0;
62
63 virtual void addSymlink(const QString &mime,
64 QFileInfo *info,
65 bool isSymlink = FALSE ) = 0;
66
67 virtual void cd(const QString &path ) = 0;
68 signals:
69 void fileSelected(const QString &);
70 void fileSelected(const DocLnk & );
71 void contextMenu();
72 void changedDir(const QString &);
73 void changedDir(const QDir & );
74};
75
76class OFileViewFactory {
77 // Q_OBJECT
78 public:
79 OFileViewFactory() {} ;
80 virtual ~OFileViewFactory() = 0;
81
82 OFileSelectorView* newView(QWidget *parent, const char *name );
83 QString name()const;
84};
85
86
87#endif