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

KIO

kopenwithdialog.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2000 David Faure <faure@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef OPENWITHDIALOG_H
00021 #define OPENWITHDIALOG_H
00022 
00023 #include <kio/kio_export.h>
00024 
00025 #include <kdialog.h>
00026 #include <kurl.h>
00027 #include <kservice.h>
00028 
00029 class KOpenWithDialogPrivate;
00030 
00039 class KIO_EXPORT KOpenWithDialog : public KDialog
00040 {
00041     Q_OBJECT
00042 public:
00043 
00052     explicit KOpenWithDialog(const KUrl::List &urls, QWidget *parent = 0);
00053 
00063     KOpenWithDialog( const KUrl::List& urls, const QString& text, const QString& value,
00064                   QWidget *parent = 0 );
00065 
00074     KOpenWithDialog( const QString& mimeType, const QString& value,
00075                   QWidget *parent = 0 );
00076 
00083     KOpenWithDialog( QWidget *parent = 0 );
00084 
00088     ~KOpenWithDialog();
00089 
00093     QString text() const;
00097     void hideNoCloseOnExit();
00101     void hideRunInTerminal();
00106     KService::Ptr service() const;
00116     void setSaveNewApplications(bool b);
00117 
00118 public Q_SLOTS:
00119     void slotSelected( const QString&_name, const QString& _exec );
00120     void slotHighlighted( const QString& _name, const QString& _exec );
00121     void slotTextChanged();
00122     void slotTerminalToggled(bool);
00123 
00124 protected Q_SLOTS:
00128     virtual void accept();
00129 
00130 private:
00131     friend class KOpenWithDialogPrivate;
00132     KOpenWithDialogPrivate* const d;
00133 
00134     Q_DISABLE_COPY(KOpenWithDialog)
00135 
00136     Q_PRIVATE_SLOT(d, void _k_slotDbClick())
00137     Q_PRIVATE_SLOT(d, void _k_slotOK())
00138 };
00139 
00140 #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