KNewStuff
uploaddialog.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 #ifndef KNEWSTUFF2_UI_UPLOADDIALOG_H
00020 #define KNEWSTUFF2_UI_UPLOADDIALOG_H
00021
00022 #include <kdialog.h>
00023 #include <kurl.h>
00024 #include <knewstuff2/knewstuff_export.h>
00025
00026 class KComboBox;
00027 class KLineEdit;
00028 class KUrlRequester;
00029 class KTextEdit;
00030
00031 namespace KNS
00032 {
00033
00034 class Entry;
00035
00049 class KNEWSTUFF_EXPORT UploadDialog : public KDialog
00050 {
00051 Q_OBJECT
00052 public:
00058 UploadDialog(QWidget *parent);
00059
00063 ~UploadDialog();
00064
00071 void setPreviewFile(const KUrl& previewFile);
00072
00080 void setPayloadFile(const KUrl& payloadFile);
00081
00082 Entry *entry() const;
00083
00084 protected Q_SLOTS:
00085 void slotOk();
00086
00087 private:
00088 KLineEdit *mNameEdit;
00089 KLineEdit *mAuthorEdit;
00090 KLineEdit *mEmailEdit;
00091 KLineEdit *mVersionEdit;
00092 KUrlRequester *mPreviewUrl;
00093 KTextEdit *mSummaryEdit;
00094 KComboBox *mLanguageCombo;
00095 KComboBox *mLicenseCombo;
00096
00097 KUrl mPayloadUrl;
00098
00099 Entry *m_entry;
00100 QMap<QString, QString> m_languages;
00101 };
00102
00103 }
00104
00105 #endif