• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KNewStuff

uploaddialog.h

Go to the documentation of this file.
00001 /*
00002     This file is part of KNewStuff2.
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 Lesser General Public
00008     License as published by the Free Software Foundation; either
00009     version 2.1 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     Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public
00017     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
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

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal