• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kencodingfiledialog.h

Go to the documentation of this file.
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 
00081     KEncodingFileDialog (const QString& startDir = QString(),
00082                     const QString& encoding = QString(),
00083             const QString& filter = QString(),
00084             const QString& caption = QString(), KFileDialog::OperationMode type = KFileDialog::Opening,
00085                     QWidget *parent= 0);
00089     ~KEncodingFileDialog();
00090 
00091 
00095     QString selectedEncoding() const;
00096 
00097 
00125     static Result getOpenFileNameAndEncoding(const QString& encoding=QString(),
00126                    const QString& startDir= QString(),
00127                    const QString& filter= QString(),
00128                    QWidget *parent= 0,
00129                    const QString& caption = QString());
00130 
00157     static Result getOpenFileNamesAndEncoding(const QString& encoding=QString(),
00158                     const QString& startDir= QString(),
00159                     const QString& filter= QString(),
00160                     QWidget *parent = 0,
00161                     const QString& caption= QString());
00162 
00189     static Result getOpenUrlAndEncoding(const QString& encoding=QString(),
00190                const QString& startDir = QString(),
00191                const QString& filter= QString(),
00192                QWidget *parent= 0,
00193                const QString& caption = QString());
00194 
00195 
00196 
00197 
00224     static Result getOpenUrlsAndEncoding(const QString& encoding=QString(),
00225                   const QString& startDir= QString(),
00226                   const QString& filter= QString(),
00227                   QWidget *parent = 0,
00228                   const QString& caption= QString());
00229 
00230 
00231 
00260     static Result getSaveFileNameAndEncoding(const QString& encoding=QString(),
00261                    const QString& startDir=QString(),
00262                    const QString& filter= QString(),
00263                    QWidget *parent= 0,
00264                    const QString& caption = QString());
00265 
00266 
00295     static Result getSaveUrlAndEncoding(const QString& encoding=QString(),
00296                const QString& startDir= QString(),
00297                const QString& filter= QString(),
00298                QWidget *parent= 0,
00299                const QString& caption = QString());
00300 
00301 
00302 
00303 private:
00304     KEncodingFileDialogPrivate* const d;
00305 };
00306 
00307 #endif

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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