KIO
kopenwithdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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 };
00138
00139 #endif