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

KNewStuff

  • 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Thu Sep 25 2014 04:21:03 by doxygen 1.8.3.1 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-4.11.5 API Reference

Skip menu "kdelibs-4.11.5 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
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