KIO
kurlrequesterdialog.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
00021 #ifndef KURLREQUESTERDIALOG_H
00022 #define KURLREQUESTERDIALOG_H
00023
00024 #include <kio/kio_export.h>
00025 #include <kdialog.h>
00026 #include <kurl.h>
00027
00028 class KUrlRequester;
00029 class KFileDialog;
00030 class KUrlRequesterDialogPrivate;
00039 class KIO_EXPORT KUrlRequesterDialog : public KDialog
00040 {
00041 Q_OBJECT
00042
00043 public:
00052 explicit KUrlRequesterDialog(const QString &url, QWidget *parent = 0);
00053
00063 KUrlRequesterDialog( const QString& url, const QString& text,
00064 QWidget *parent);
00068 ~KUrlRequesterDialog();
00069
00073 KUrl selectedUrl() const;
00074
00082 static KUrl getUrl(const QString& url = QString(),
00083 QWidget *parent= 0, const QString& caption = QString());
00084
00088 KFileDialog * fileDialog();
00092 KUrlRequester *urlRequester();
00093
00094 private:
00095 friend class KUrlRequesterDialogPrivate;
00096 KUrlRequesterDialogPrivate *const d;
00097
00098 Q_DISABLE_COPY(KUrlRequesterDialog)
00099
00100 Q_PRIVATE_SLOT(d, void _k_slotClear())
00101 Q_PRIVATE_SLOT(d, void _k_slotTextChanged(const QString &))
00102 };
00103
00104 #endif // KURLREQUESTERDIALOG_H
00105
00106