00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KNEWSTUFF_UPLOADDIALOG_H
00021 #define KNEWSTUFF_UPLOADDIALOG_H
00022
00023 #include <kdialogbase.h>
00024
00025 class TQLineEdit;
00026 class TQSpinBox;
00027 class KURLRequester;
00028 class TQTextEdit;
00029 class TQComboBox;
00030
00031 namespace KNS {
00032
00033 class Engine;
00034 class Entry;
00035
00047 class UploadDialog : public KDialogBase
00048 {
00049 Q_OBJECT
00050 public:
00057 UploadDialog( Engine *engine, TQWidget *parent );
00058
00062 ~UploadDialog();
00063
00070 void setPreviewFile( const TQString &previewFile );
00071
00079 void setPayloadFile( const TQString &payloadFile );
00080
00081 protected slots:
00082 void slotOk();
00083
00084 private:
00085 Engine *mEngine;
00086
00087 TQLineEdit *mNameEdit;
00088 TQLineEdit *mAuthorEdit;
00089 TQLineEdit *mEmailEdit;
00090 TQLineEdit *mVersionEdit;
00091 TQSpinBox *mReleaseSpin;
00092 KURLRequester *mPreviewUrl;
00093 TQTextEdit *mSummaryEdit;
00094 TQComboBox *mLanguageCombo;
00095 TQComboBox *mLicenceCombo;
00096
00097 TQPtrList<Entry> mEntryList;
00098 KURL mPayloadUrl;
00099 };
00100
00101 }
00102
00103 #endif