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

KIO

  • sources
  • kde-4.12
  • kdelibs
  • kio
  • kfile
kencodingfiledialog.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /* This file is part of the KDE libraries
3  Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
4  2003 Andras Mantia <amantia@freemail.hu>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef __KENCODINGFILEDIALOG_H__
23 #define __KENCODINGFILEDIALOG_H__
24 
25 #include <kfiledialog.h>
26 
27 struct KEncodingFileDialogPrivate;
28 
39 class KIO_EXPORT KEncodingFileDialog : public KFileDialog
40 {
41  Q_OBJECT
42 
43 public:
44  class Result {
45  public:
46  QStringList fileNames;
47  KUrl::List URLs;
48  QString encoding;
49  };
50 
81  KEncodingFileDialog (const QString& startDir = QString(),
82  const QString& encoding = QString(),
83  const QString& filter = QString(),
84  const QString& caption = QString(), KFileDialog::OperationMode type = KFileDialog::Opening,
85  QWidget *parent= 0);
89  ~KEncodingFileDialog();
90 
91 
95  QString selectedEncoding() const;
96 
97 
125  static Result getOpenFileNameAndEncoding(const QString& encoding=QString(),
126  const QString& startDir= QString(),
127  const QString& filter= QString(),
128  QWidget *parent= 0,
129  const QString& caption = QString());
130 
157  static Result getOpenFileNamesAndEncoding(const QString& encoding=QString(),
158  const QString& startDir= QString(),
159  const QString& filter= QString(),
160  QWidget *parent = 0,
161  const QString& caption= QString());
162 
189  static Result getOpenUrlAndEncoding(const QString& encoding=QString(),
190  const QString& startDir = QString(),
191  const QString& filter= QString(),
192  QWidget *parent= 0,
193  const QString& caption = QString());
194 
195 
196 
197 
224  static Result getOpenUrlsAndEncoding(const QString& encoding=QString(),
225  const QString& startDir= QString(),
226  const QString& filter= QString(),
227  QWidget *parent = 0,
228  const QString& caption= QString());
229 
230 
231 
260  static Result getSaveFileNameAndEncoding(const QString& encoding=QString(),
261  const QString& startDir=QString(),
262  const QString& filter= QString(),
263  QWidget *parent= 0,
264  const QString& caption = QString());
265 
266 
295  static Result getSaveUrlAndEncoding(const QString& encoding=QString(),
296  const QString& startDir= QString(),
297  const QString& filter= QString(),
298  QWidget *parent= 0,
299  const QString& caption = QString());
300 
301 
302 
303 private:
304  KEncodingFileDialogPrivate* const d;
305 };
306 
307 #endif
KEncodingFileDialog
Provides a user (and developer) friendly way to select files with support for choosing encoding...
Definition: kencodingfiledialog.h:39
KEncodingFileDialog::Result::fileNames
QStringList fileNames
Definition: kencodingfiledialog.h:46
kfiledialog.h
QWidget
QString
KFileDialog
Provides a user (and developer) friendly way to select files and directories.
Definition: kfiledialog.h:68
QStringList
KFileDialog::Opening
Definition: kfiledialog.h:85
KFileDialog::OperationMode
OperationMode
Defines some default behavior of the filedialog.
Definition: kfiledialog.h:85
KUrl::List
KEncodingFileDialog::Result
Definition: kencodingfiledialog.h:44
KEncodingFileDialog::Result::URLs
KUrl::List URLs
Definition: kencodingfiledialog.h:47
KEncodingFileDialog::Result::encoding
QString encoding
Definition: kencodingfiledialog.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal