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

KNewStuff

  • sources
  • kde-4.14
  • kdelibs
  • knewstuff
  • knewstuff2
  • ui
knewstuff2/ui/uploaddialog.h
Go to the documentation of this file.
1 /*
2  This file is part of KNewStuff2.
3  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (C) 2007 Josef Spillner <spillner@kde.org>
5  Copyright (C) 2009 Jeremy Whiting <jpwhiting@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef KNEWSTUFF2_UI_UPLOADDIALOG_H
21 #define KNEWSTUFF2_UI_UPLOADDIALOG_H
22 
23 #include <kdialog.h>
24 #include <kurl.h>
25 #include <knewstuff2/knewstuff_export.h>
26 
27 #include "ui_UploadDialog.h"
28 
29 class KComboBox;
30 class KLineEdit;
31 class KUrlRequester;
32 class KTextEdit;
33 
34 namespace KNS
35 {
36 
37 class Entry;
38 
52 class KNEWSTUFF_EXPORT UploadDialog : public KDialog, public Ui::UploadDialog
53 {
54  Q_OBJECT
55 public:
61  UploadDialog(QWidget *parent);
62 
66  ~UploadDialog();
67 
74  void setPreviewFile(const KUrl& previewFile);
75 
83  void setPayloadFile(const KUrl& payloadFile);
84 
85  Entry *entry() const;
86 
87 protected Q_SLOTS:
88  void slotOk();
89 
90 private:
91  KUrl mPayloadUrl;
92 
93  Entry *m_entry;
94  QMap<QString, QString> m_languages;
95 };
96 
97 }
98 
99 #endif
kdialog.h
QWidget
kurl.h
KNS::Entry
KNewStuff data entry container.
Definition: knewstuff2/core/entry.h:46
KUrlRequester
QMap< QString, QString >
KDialog
KNS::UploadDialog
KNewStuff file upload dialog.
Definition: knewstuff2/ui/uploaddialog.h:52
knewstuff_export.h
KUrl
KLineEdit
KComboBox
KTextEdit
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal