KNewStuff
uploaddialog.h
Go to the documentation of this file.00001 /* 00002 This file is part of KNewStuff. 00003 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> 00004 Copyright (C) 2007 Josef Spillner <spillner@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 #ifndef KNEWSTUFF2_UI_UPLOADDIALOG_H 00022 #define KNEWSTUFF2_UI_UPLOADDIALOG_H 00023 00024 #include <kdialog.h> 00025 #include <kurl.h> 00026 #include <knewstuff2/knewstuff_export.h> 00027 00028 class KComboBox; 00029 class KLineEdit; 00030 class KUrlRequester; 00031 class KTextEdit; 00032 00033 namespace KNS 00034 { 00035 00036 class Entry; 00037 00051 class KNEWSTUFF_EXPORT UploadDialog : public KDialog 00052 { 00053 Q_OBJECT 00054 public: 00060 UploadDialog(QWidget *parent); 00061 00065 ~UploadDialog(); 00066 00073 void setPreviewFile(const KUrl& previewFile); 00074 00082 void setPayloadFile(const KUrl& payloadFile); 00083 00084 Entry *entry() const; 00085 00086 protected Q_SLOTS: 00087 void slotOk(); 00088 00089 private: 00090 KLineEdit *mNameEdit; 00091 KLineEdit *mAuthorEdit; 00092 KLineEdit *mEmailEdit; 00093 KLineEdit *mVersionEdit; 00094 KUrlRequester *mPreviewUrl; 00095 KTextEdit *mSummaryEdit; 00096 KComboBox *mLanguageCombo; 00097 KComboBox *mLicenseCombo; 00098 00099 KUrl mPayloadUrl; 00100 00101 Entry *m_entry; 00102 QMap<QString, QString> m_languages; 00103 }; 00104 00105 } 00106 00107 #endif