You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
2.7 KiB
104 lines
2.7 KiB
15 years ago
|
/*
|
||
|
This file is part of KOrganizer.
|
||
|
Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
#ifndef KNEWSTUFF_UPLOADDIALOG_H
|
||
|
#define KNEWSTUFF_UPLOADDIALOG_H
|
||
|
|
||
|
#include <kdialogbase.h>
|
||
|
|
||
14 years ago
|
class TQLineEdit;
|
||
|
class TQSpinBox;
|
||
15 years ago
|
class KURLRequester;
|
||
14 years ago
|
class TQTextEdit;
|
||
|
class TQComboBox;
|
||
15 years ago
|
|
||
|
namespace KNS {
|
||
|
|
||
|
class Engine;
|
||
|
class Entry;
|
||
|
|
||
|
/**
|
||
10 years ago
|
* @short TDENewStuff file upload dialog.
|
||
15 years ago
|
*
|
||
|
* Using this dialog, data can easily be uploaded to the Hotstuff servers.
|
||
10 years ago
|
* It should however not be used on its own, instead a TDENewStuff (or
|
||
|
* TDENewStuffGeneric) object invokes it.
|
||
15 years ago
|
*
|
||
|
* @author Cornelius Schumacher (schumacher@kde.org)
|
||
|
* \par Maintainer:
|
||
|
* Josef Spillner (spillner@kde.org)
|
||
|
*/
|
||
|
class UploadDialog : public KDialogBase
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
/**
|
||
|
Constructor.
|
||
|
|
||
10 years ago
|
@param engine a TDENewStuff engine object to be used for uploads
|
||
15 years ago
|
@param parent the parent window
|
||
|
*/
|
||
15 years ago
|
UploadDialog( Engine *engine, TQWidget *parent );
|
||
15 years ago
|
|
||
|
/**
|
||
|
Destructor.
|
||
|
*/
|
||
|
~UploadDialog();
|
||
|
|
||
|
/**
|
||
|
Sets the preview filename.
|
||
|
This is only meaningful if the application supports previews.
|
||
|
|
||
|
@param previewFile the preview image file
|
||
|
*/
|
||
15 years ago
|
void setPreviewFile( const TQString &previewFile );
|
||
15 years ago
|
|
||
|
/**
|
||
|
Sets the payload filename.
|
||
|
This is optional, but necessary if the application wants to support
|
||
|
reusing previously filled out form data based on the filename.
|
||
|
|
||
|
@param payloadFile the payload data file
|
||
|
*/
|
||
15 years ago
|
void setPayloadFile( const TQString &payloadFile );
|
||
15 years ago
|
|
||
|
protected slots:
|
||
|
void slotOk();
|
||
|
|
||
|
private:
|
||
|
Engine *mEngine;
|
||
|
|
||
15 years ago
|
TQLineEdit *mNameEdit;
|
||
|
TQLineEdit *mAuthorEdit;
|
||
|
TQLineEdit *mEmailEdit;
|
||
|
TQLineEdit *mVersionEdit;
|
||
|
TQSpinBox *mReleaseSpin;
|
||
15 years ago
|
KURLRequester *mPreviewUrl;
|
||
15 years ago
|
TQTextEdit *mSummaryEdit;
|
||
|
TQComboBox *mLanguageCombo;
|
||
|
TQComboBox *mLicenceCombo;
|
||
15 years ago
|
|
||
15 years ago
|
TQPtrList<Entry> mEntryList;
|
||
15 years ago
|
KURL mPayloadUrl;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|