KIO
pastedialog.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2005 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 version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef PASTEDIALOG_H 00020 #define PASTEDIALOG_H 00021 00022 #include <kdialog.h> 00023 00024 class KComboBox; 00025 class KLineEdit; 00026 class QLabel; 00027 00028 namespace KIO { 00029 00034 class PasteDialog : public KDialog 00035 { 00036 Q_OBJECT 00037 public: 00038 PasteDialog( const QString &caption, const QString &label, 00039 const QString &value, const QStringList& items, 00040 QWidget *parent, bool clipboard ); 00041 00042 QString lineEditText() const; 00043 int comboItem() const; 00044 bool clipboardChanged() const { return m_clipboardChanged; } 00045 00046 private Q_SLOTS: 00047 void slotClipboardDataChanged(); 00048 00049 private: 00050 QLabel* m_label; 00051 KLineEdit* m_lineEdit; 00052 KComboBox* m_comboBox; 00053 bool m_clipboardChanged; 00054 00055 class Private; 00056 Private* d; 00057 }; 00058 00059 } // namespace 00060 00061 00062 #endif /* PASTEDIALOG_H */ 00063