kio Library API Documentation

kencodingfiledialog.h

00001 // -*- c++ -*- 00002 /* This file is part of the KDE libraries 00003 Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org> 00004 2003 Andras Mantia <amantia@freemail.hu> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef __KENCODINGFILEDIALOG_H__ 00023 #define __KENCODINGFILEDIALOG_H__ 00024 00025 #include <kfiledialog.h> 00026 00027 class KEncodingFileDialogPrivate; 00028 00039 class KEncodingFileDialog : public KFileDialog 00040 { 00041 Q_OBJECT 00042 00043 public: 00044 class Result { 00045 public: 00046 QStringList fileNames; 00047 KURL::List URLs; 00048 QString encoding; 00049 }; 00050 00077 KEncodingFileDialog (const QString& startDir = QString::null, 00078 const QString& encoding = QString::null, 00079 const QString& filter = QString::null, 00080 const QString& caption = QString::null, KFileDialog::OperationMode type = KFileDialog::Opening, 00081 QWidget *parent= 0, const char *name="", bool modal = true); 00085 ~KEncodingFileDialog(); 00086 00087 00091 QString selectedEncoding() const; 00092 00093 00120 static Result getOpenFileNameAndEncoding(const QString& encoding=QString::null, 00121 const QString& startDir= QString::null, 00122 const QString& filter= QString::null, 00123 QWidget *parent= 0, 00124 const QString& caption = QString::null); 00125 00151 static Result getOpenFileNamesAndEncoding(const QString& encoding=QString::null, 00152 const QString& startDir= QString::null, 00153 const QString& filter= QString::null, 00154 QWidget *parent = 0, 00155 const QString& caption= QString::null); 00156 00182 static Result getOpenURLAndEncoding(const QString& encoding=QString::null, 00183 const QString& startDir = QString::null, 00184 const QString& filter= QString::null, 00185 QWidget *parent= 0, 00186 const QString& caption = QString::null); 00187 00188 00189 00190 00216 static Result getOpenURLsAndEncoding(const QString& encoding=QString::null, 00217 const QString& startDir= QString::null, 00218 const QString& filter= QString::null, 00219 QWidget *parent = 0, 00220 const QString& caption= QString::null); 00221 00222 00223 00251 static Result getSaveFileNameAndEncoding(const QString& encoding=QString::null, 00252 const QString& startDir=QString::null, 00253 const QString& filter= QString::null, 00254 QWidget *parent= 0, 00255 const QString& caption = QString::null); 00256 00257 00285 static Result getSaveURLAndEncoding(const QString& encoding=QString::null, 00286 const QString& startDir= QString::null, 00287 const QString& filter= QString::null, 00288 QWidget *parent= 0, 00289 const QString& caption = QString::null); 00290 00291 00292 00293 protected: 00294 virtual void virtual_hook( int id, void* data ); 00295 private: 00296 KEncodingFileDialogPrivate *d; 00297 }; 00298 00299 #endif
KDE Logo
This file is part of the documentation for kio Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 20 09:49:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003