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

KNewStuff

  • sources
  • kde-4.12
  • kdelibs
  • knewstuff
  • knewstuff3
downloadwidget_p.h
Go to the documentation of this file.
1 /*
2  knewstuff3/ui/downloaddialog.cpp.
3  Copyright (C) 2005 by Enrico Ros <eros.kde@email.it>
4  Copyright (C) 2005 - 2007 Josef Spillner <spillner@kde.org>
5  Copyright (C) 2007 Dirk Mueller <mueller@kde.org>
6  Copyright (C) 2007-2009 Jeremy Whiting <jpwhiting@kde.org>
7  Copyright (C) 2009-2010 Frederik Gladhorn <gladhorn@kde.org>
8  Copyright (C) 2010 Reza Fatahilah Shah <rshah0385@kireihana.com>
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library. If not, see <http://www.gnu.org/licenses/>.
22 */
23 
24 #ifndef KNEWSTUFF3_UI_DOWNLOADWIDGET_P_H
25 #define KNEWSTUFF3_UI_DOWNLOADWIDGET_P_H
26 
27 #include <QtGui/QSortFilterProxyModel>
28 #include <QtCore/QTimer>
29 #include <QtGui/QScrollBar>
30 #include <QListView>
31 #include <kmessagebox.h>
32 #include <kcomponentdata.h>
33 #include <kaboutdata.h>
34 
35 #include "ui/itemsmodel.h"
36 #include "ui/itemsviewbasedelegate.h"
37 #include "ui/entrydetailsdialog.h"
38 
39 #include "ui_downloadwidget.h"
40 
41 namespace KNS3 {
42 class DownloadWidget;
43 
44 class DownloadWidgetPrivate
45 {
46 public:
47  DownloadWidget* q;
48  EntryDetails* details;
49 
50  // The engine that does all the work
51  Engine *engine;
52  Ui::DownloadWidget ui;
53  // Model to show the entries
54  ItemsModel* model;
55  // Timeout for messge display
56  QTimer* messageTimer;
57 
58  ItemsViewBaseDelegate * delegate;
59 
60  QString searchTerm;
61  QSet<EntryInternal> changedEntries;
62 
63  QSet<QString> categories;
64  QSet<QString> providers;
65 
66  QString titleText;
67  QString m_configFile;
68  bool dialogMode;
69 
70  DownloadWidgetPrivate(DownloadWidget* q);
71  ~DownloadWidgetPrivate();
72 
73  void init(const QString& configFile);
74  void displayMessage(const QString & msg, KTitleWidget::MessageType type, int timeOutMs = 0);
75 
76  void slotProvidersLoaded();
77  void slotEntriesLoaded(const KNS3::EntryInternal::List& entries);
78  void slotEntryChanged(const KNS3::EntryInternal& entry);
79 
80  void slotShowDetails(const KNS3::EntryInternal& entry);
81  void slotShowOverview();
82 
83  void slotPayloadFailed(const EntryInternal& entry);
84  void slotPayloadLoaded(KUrl url);
85 
86  void slotResetMessage();
87  void slotNetworkTimeout();
88  void sortingChanged();
89  void slotSearchTextChanged();
90  void slotUpdateSearch();
91  void slotCategoryChanged(int);
92 
93  void slotInfo(QString provider, QString server, QString version);
94  void slotError(const QString& message);
95  void scrollbarValueChanged(int value);
96 
97  void slotUpload();
98  void slotListViewListMode();
99  void slotListViewIconMode();
100  void setListViewMode(QListView::ViewMode mode);
101 };
102 
103 }
104 
105 #endif
KNS3::DownloadWidgetPrivate::~DownloadWidgetPrivate
~DownloadWidgetPrivate()
Definition: downloadwidget.cpp:98
KNS3::DownloadWidgetPrivate::searchTerm
QString searchTerm
Definition: downloadwidget_p.h:60
KNS3::DownloadWidgetPrivate::q
DownloadWidget * q
Definition: downloadwidget_p.h:47
KNS3::DownloadWidgetPrivate::slotError
void slotError(const QString &message)
Definition: downloadwidget.cpp:197
KNS3::DownloadWidgetPrivate::slotUpload
void slotUpload()
KNS3::DownloadWidgetPrivate::slotEntriesLoaded
void slotEntriesLoaded(const KNS3::EntryInternal::List &entries)
Definition: downloadwidget.cpp:331
itemsviewbasedelegate.h
KNS3::EntryInternal
KNewStuff data entry container.
Definition: entryinternal.h:54
KNS3::Engine
KNewStuff engine.
Definition: knewstuff3/core/engine.h:52
KNS3::DownloadWidgetPrivate::m_configFile
QString m_configFile
Definition: downloadwidget_p.h:67
KNS3::DownloadWidgetPrivate::slotShowDetails
void slotShowDetails(const KNS3::EntryInternal &entry)
Definition: downloadwidget.cpp:362
KNS3::DownloadWidgetPrivate::slotListViewListMode
void slotListViewListMode()
Definition: downloadwidget.cpp:288
KNS3::DownloadWidgetPrivate::slotProvidersLoaded
void slotProvidersLoaded()
Definition: downloadwidget.cpp:325
KNS3::DownloadWidgetPrivate::slotPayloadLoaded
void slotPayloadLoaded(KUrl url)
Definition: downloadwidget.cpp:192
KNS3::DownloadWidgetPrivate::slotListViewIconMode
void slotListViewIconMode()
Definition: downloadwidget.cpp:295
KNS3::DownloadWidgetPrivate::slotSearchTextChanged
void slotSearchTextChanged()
Definition: downloadwidget.cpp:144
KNS3::DownloadWidgetPrivate::messageTimer
QTimer * messageTimer
Definition: downloadwidget_p.h:56
KNS3::DownloadWidgetPrivate::displayMessage
void displayMessage(const QString &msg, KTitleWidget::MessageType type, int timeOutMs=0)
Definition: downloadwidget.cpp:342
KNS3::DownloadWidgetPrivate::changedEntries
QSet< EntryInternal > changedEntries
Definition: downloadwidget_p.h:61
QString
KNS3::DownloadWidgetPrivate::slotResetMessage
void slotResetMessage()
Definition: downloadwidget.cpp:106
KUrl
KTitleWidget::MessageType
MessageType
KNS3::DownloadWidget
KNewStuff download widget.
Definition: downloadwidget.h:72
entrydetailsdialog.h
KNS3::DownloadWidgetPrivate::providers
QSet< QString > providers
Definition: downloadwidget_p.h:64
KNS3::ItemsModel
Definition: knewstuff3/ui/itemsmodel.h:33
KNS3::EntryDetails
Definition: entrydetailsdialog.h:32
KNS3::DownloadWidgetPrivate::scrollbarValueChanged
void scrollbarValueChanged(int value)
Definition: downloadwidget.cpp:202
KNS3::DownloadWidgetPrivate::delegate
ItemsViewBaseDelegate * delegate
Definition: downloadwidget_p.h:58
KNS3::DownloadWidgetPrivate::slotCategoryChanged
void slotCategoryChanged(int)
Definition: downloadwidget.cpp:153
KNS3::DownloadWidgetPrivate::sortingChanged
void sortingChanged()
Definition: downloadwidget.cpp:116
KNS3::DownloadWidgetPrivate::slotUpdateSearch
void slotUpdateSearch()
Definition: downloadwidget.cpp:136
KNS3::DownloadWidgetPrivate::titleText
QString titleText
Definition: downloadwidget_p.h:66
QSet
KNS3::DownloadWidgetPrivate
Definition: downloadwidget_p.h:44
KNS3::DownloadWidgetPrivate::slotPayloadFailed
void slotPayloadFailed(const EntryInternal &entry)
Definition: downloadwidget.cpp:186
KNS3::ItemsViewBaseDelegate
Definition: itemsviewbasedelegate.h:40
KNS3::DownloadWidgetPrivate::slotNetworkTimeout
void slotNetworkTimeout()
Definition: downloadwidget.cpp:111
KNS3::DownloadWidgetPrivate::model
ItemsModel * model
Definition: downloadwidget_p.h:54
KNS3::DownloadWidgetPrivate::slotShowOverview
void slotShowOverview()
Definition: downloadwidget.cpp:380
KNS3::DownloadWidgetPrivate::slotInfo
void slotInfo(QString provider, QString server, QString version)
Definition: downloadwidget.cpp:168
KNS3::DownloadWidgetPrivate::init
void init(const QString &configFile)
Definition: downloadwidget.cpp:209
KNS3::DownloadWidgetPrivate::dialogMode
bool dialogMode
Definition: downloadwidget_p.h:68
KNS3::DownloadWidgetPrivate::DownloadWidgetPrivate
DownloadWidgetPrivate(DownloadWidget *q)
Definition: downloadwidget.cpp:89
KNS3::DownloadWidgetPrivate::setListViewMode
void setListViewMode(QListView::ViewMode mode)
Definition: downloadwidget.cpp:302
kaboutdata.h
kcomponentdata.h
kmessagebox.h
KNS3::DownloadWidgetPrivate::ui
Ui::DownloadWidget ui
Definition: downloadwidget_p.h:52
KNS3::DownloadWidgetPrivate::details
EntryDetails * details
Definition: downloadwidget_p.h:48
KNS3::DownloadWidgetPrivate::engine
Engine * engine
Definition: downloadwidget_p.h:51
QList< EntryInternal >
KNS3::DownloadWidgetPrivate::slotEntryChanged
void slotEntryChanged(const KNS3::EntryInternal &entry)
Definition: downloadwidget.cpp:180
KNS3::DownloadWidgetPrivate::categories
QSet< QString > categories
Definition: downloadwidget_p.h:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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