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

KIO

kabstractfilewidget.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 /* This file is part of the KDE libraries
00003     Copyright (C) 1997, 1998 Richard Moore <rich@kde.org>
00004                   1998 Stephan Kulow <coolo@kde.org>
00005                   1998 Daniel Grana <grana@ie.iwi.unibe.ch>
00006                   2000,2001 Carsten Pfeiffer <pfeiffer@kde.org>
00007                   2001 Frerich Raabe <raabe@kde.org>
00008                   2007 David Faure <faure@kde.org>
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Library General Public
00012     License as published by the Free Software Foundation; either
00013     version 2 of the License, or (at your option) any later version.
00014 
00015     This library is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018     Library General Public License for more details.
00019 
00020     You should have received a copy of the GNU Library General Public License
00021     along with this library; see the file COPYING.LIB.  If not, write to
00022     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023     Boston, MA 02110-1301, USA.
00024 */
00025 #ifndef KABSTRACTFILEWIDGET_H
00026 #define KABSTRACTFILEWIDGET_H
00027 
00028 class KPreviewWidgetBase;
00029 
00030 #include "kurl.h"
00031 #include "kfile.h"
00032 #include <kmimetype.h>
00033 
00034 class KPushButton;
00035 class KActionCollection;
00036 class KToolBar;
00037 class KFileWidgetPrivate;
00038 class KUrlComboBox;
00039 class KFileFilterCombo;
00040 
00041 class KIO_EXPORT KAbstractFileWidget
00042 {
00043 public:
00044     virtual ~KAbstractFileWidget() {}
00045 
00057     enum OperationMode { Other = 0, Opening, Saving };
00058 
00062     virtual KUrl selectedUrl() const = 0;
00063 
00067     virtual KUrl::List selectedUrls() const = 0;
00068 
00072     virtual KUrl baseUrl() const = 0;
00073 
00078     virtual QString selectedFile() const = 0;
00079 
00083     virtual QStringList selectedFiles() const = 0;
00084 
00092     virtual void setUrl(const KUrl &url, bool clearforward = true) = 0;
00093 
00099     virtual void setSelection(const QString& name) = 0;
00100 
00118     virtual void setOperationMode( OperationMode ) = 0;
00119 
00127     virtual OperationMode operationMode() const = 0;
00128 
00140     virtual void setKeepLocation( bool keep ) = 0;
00141 
00146     virtual bool keepsLocation() const = 0;
00147 
00182     virtual void setFilter(const QString& filter) = 0;
00183 
00191     virtual QString currentFilter() const = 0;
00192 
00201     virtual KMimeType::Ptr currentFilterMimeType() = 0;
00202 
00214     virtual void setMimeFilter( const QStringList& types,
00215                                 const QString& defaultType = QString() ) = 0;
00216 
00225     virtual QString currentMimeFilter() const = 0;
00226 
00230     virtual void clearFilter() = 0;
00231 
00243    virtual void setPreviewWidget(KPreviewWidgetBase *w) = 0;
00244 
00266     virtual void setMode( KFile::Modes m ) = 0;
00267 
00272     virtual KFile::Modes mode() const = 0;
00273 
00281     virtual void setLocationLabel(const QString& text) = 0;
00282 
00295     virtual KToolBar *toolBar() const = 0;
00296 
00302     virtual KPushButton *okButton() const = 0;
00303 
00309     virtual KPushButton *cancelButton() const = 0;
00310 
00314     virtual KUrlComboBox *locationEdit() const = 0;
00315 
00319     virtual KFileFilterCombo *filterWidget() const = 0;
00320 
00325     virtual KActionCollection *actionCollection() const = 0;
00326 
00335     virtual void setCustomWidget(QWidget* widget) = 0;
00336 
00347     virtual void setCustomWidget(const QString& text, QWidget* widget) = 0;
00348 
00353     virtual void slotOk() = 0;
00354     virtual void accept() = 0;
00355     virtual void slotCancel() = 0;
00356 
00358     virtual void virtual_hook( int id, void* data ) = 0;
00359 };
00360 
00361 Q_DECLARE_INTERFACE(KAbstractFileWidget, "org.kde.KAbstractFileWidget")
00362 
00363 #endif /* KABSTRACTFILEWIDGET_H */
00364 

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