KFile
knameandurlinputdialog.h
Go to the documentation of this file.
00001 /* 00002 Copyright (c) 1998, 2008, 2009 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as published by 00006 the Free Software Foundation; either version 2 of the License or ( at 00007 your option ) version 3 or, at the discretion of KDE e.V. ( which shall 00008 act as a proxy as in section 14 of the GPLv3 ), any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KNAMEANDURLINPUTDIALOG_H 00022 #define KNAMEANDURLINPUTDIALOG_H 00023 00024 #include <kfile_export.h> 00025 #include <kdialog.h> 00026 class KLineEdit; 00027 class KUrlRequester; 00028 class KNameAndUrlInputDialogPrivate; 00029 00036 class KFILE_EXPORT KNameAndUrlInputDialog : public KDialog 00037 { 00038 Q_OBJECT 00039 public: 00046 KNameAndUrlInputDialog(const QString& nameLabel, const QString& urlLabel, const KUrl& startDir, QWidget *parent); 00047 00051 virtual ~KNameAndUrlInputDialog(); 00052 00056 void setSuggestedName(const QString& name); 00060 void setSuggestedUrl(const KUrl& url); 00061 00066 QString name() const; 00071 KUrl url() const; 00072 00073 private: 00074 Q_PRIVATE_SLOT(d, void _k_slotClear()) 00075 Q_PRIVATE_SLOT(d, void _k_slotNameTextChanged(const QString&)) 00076 Q_PRIVATE_SLOT(d, void _k_slotURLTextChanged(const QString&)) 00077 00078 KNameAndUrlInputDialogPrivate* const d; 00079 }; 00080 00081 #endif
KDE 4.6 API Reference