KIO
kurlrequesterdialog.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 Wilco Greven <greven@kde.org> 00003 00004 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 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 // vim:ts=4:sw=4:tw=78