summaryrefslogtreecommitdiff
path: root/libopie/ofiledialog.h
authorzecke <zecke>2002-06-26 18:01:53 (UTC)
committer zecke <zecke>2002-06-26 18:01:53 (UTC)
commit76f87a51800511fe108edbcd14d4dd40ead6f391 (patch) (unidiff)
tree1d1b3cf7c3bbd98d294cac738b3bfa277964b32d /libopie/ofiledialog.h
parent125dc1fe52d7a3c8be1b955c79d729cc935c8b6d (diff)
downloadopie-76f87a51800511fe108edbcd14d4dd40ead6f391.zip
opie-76f87a51800511fe108edbcd14d4dd40ead6f391.tar.gz
opie-76f87a51800511fe108edbcd14d4dd40ead6f391.tar.bz2
Improve mimetype handling
API is now fixed 2 Bugs outstanding though
Diffstat (limited to 'libopie/ofiledialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofiledialog.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libopie/ofiledialog.h b/libopie/ofiledialog.h
index 40d147e..e14253c 100644
--- a/libopie/ofiledialog.h
+++ b/libopie/ofiledialog.h
@@ -1,26 +1,26 @@
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
@@ -38,27 +38,27 @@ class OFileDialog : public QDialog {
38 Q_OBJECT 38 Q_OBJECT
39 public: 39 public:
40 OFileDialog(const QString &caption, 40 OFileDialog(const QString &caption,
41 QWidget *, int mode, int selector, 41 QWidget *, int mode, int selector,
42 const QString &dirName, 42 const QString &dirName,
43 const QString &fileName = QString::null, 43 const QString &fileName = QString::null,
44 const QStringList &mimetypes = QStringList() ); 44 const MimeTypes &mimetypes = MimeTypes() );
45 QString mimetype() const; 45 QString mimetype() const;
46 QString fileName() const; 46 QString fileName() const;
47 DocLnk selectedDocument()const; 47 DocLnk selectedDocument()const;
48 48
49 // static methods 49 // static methods
50 static QString getOpenFileName(int selector, 50 static QString getOpenFileName(int selector,
51 const QString& startDir = QString::null, 51 const QString& startDir = QString::null,
52 const QString &fileName = QString::null, 52 const QString &fileName = QString::null,
53 const QStringList& mimefilter = QStringList(), 53 const MimeTypes& mime = MimeTypes(),
54 QWidget *wid = 0, 54 QWidget *wid = 0,
55 const QString &caption = QString::null ); 55 const QString &caption = QString::null );
56 56
57 static QString getSaveFileName(int selector, 57 static QString getSaveFileName(int selector,
58 const QString& startDir = QString::null, 58 const QString& startDir = QString::null,
59 const QString& fileName = QString::null, 59 const QString& fileName = QString::null,
60 const QStringList& mimefilter = QStringList(), 60 const MimeTypes& mimefilter = MimeTypes(),
61 QWidget *wid = 0, 61 QWidget *wid = 0,
62 const QString &caption = QString::null ); 62 const QString &caption = QString::null );
63 63
64 //let's OFileSelector catch up first 64 //let's OFileSelector catch up first