• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kio/kfile

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., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef __KENCODINGFILEDIALOG_H__
00023 #define __KENCODINGFILEDIALOG_H__
00024 
00025 #include <kfiledialog.h>
00026 
00027 struct KEncodingFileDialogPrivate;
00028 
00039 class KIO_EXPORT 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 
00085     KEncodingFileDialog (const QString& startDir = QString::null,
00086                     const QString& encoding = QString::null,
00087             const QString& filter = QString::null,
00088             const QString& caption = QString::null, KFileDialog::OperationMode type = KFileDialog::Opening,
00089                     QWidget *parent= 0, const char *name="", bool modal = true);
00093     ~KEncodingFileDialog();
00094 
00095 
00099     QString selectedEncoding() const;
00100 
00101 
00129     static Result getOpenFileNameAndEncoding(const QString& encoding=QString::null,
00130                    const QString& startDir= QString::null,
00131                    const QString& filter= QString::null,
00132                    QWidget *parent= 0,
00133                    const QString& caption = QString::null);
00134 
00161     static Result getOpenFileNamesAndEncoding(const QString& encoding=QString::null,
00162                     const QString& startDir= QString::null,
00163                     const QString& filter= QString::null,
00164                     QWidget *parent = 0,
00165                     const QString& caption= QString::null);
00166 
00193     static Result getOpenURLAndEncoding(const QString& encoding=QString::null,
00194                const QString& startDir = QString::null,
00195                const QString& filter= QString::null,
00196                QWidget *parent= 0,
00197                const QString& caption = QString::null);
00198 
00199 
00200 
00201 
00228     static Result getOpenURLsAndEncoding(const QString& encoding=QString::null,
00229                   const QString& startDir= QString::null,
00230                   const QString& filter= QString::null,
00231                   QWidget *parent = 0,
00232                   const QString& caption= QString::null);
00233 
00234 
00235 
00264     static Result getSaveFileNameAndEncoding(const QString& encoding=QString::null,
00265                    const QString& startDir=QString::null,
00266                    const QString& filter= QString::null,
00267                    QWidget *parent= 0,
00268                    const QString& caption = QString::null);
00269 
00270 
00299     static Result getSaveURLAndEncoding(const QString& encoding=QString::null,
00300                const QString& startDir= QString::null,
00301                const QString& filter= QString::null,
00302                QWidget *parent= 0,
00303                const QString& caption = QString::null);
00304 
00305 
00306 
00307 protected:
00308     virtual void virtual_hook( int id, void* data );
00309 private:
00310     KEncodingFileDialogPrivate *d;
00311 };
00312 
00313 #endif

kio/kfile

Skip menu "kio/kfile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal