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

KNewStuff

  • knewstuff
  • knewstuff3
downloadmanager.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2010 Frederik Gladhorn <gladhorn@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef KNEWSTUFF3_UI_DownloadManager_H
19#define KNEWSTUFF3_UI_DownloadManager_H
20
21#include "knewstuff_export.h"
22#include "entry.h"
23
24namespace KNS3
25{
26
34class KNEWSTUFF_EXPORT DownloadManager :public QObject
35{
36 Q_OBJECT
37
38public:
39 enum SortOrder {
40 Newest,
41 Alphabetical,
42 Rating,
43 Downloads
44 };
45
53 explicit DownloadManager(QObject * parent = 0);
54
61 explicit DownloadManager(const QString& configFile, QObject * parent = 0);
62
66 ~DownloadManager();
67
71 void search(int page = 0, int pageSize = 100);
72
77 void checkForUpdates();
78
83 void installEntry(const KNS3::Entry& entry);
84
90 void uninstallEntry(const KNS3::Entry& entry);
91
97 void setSearchTerm(const QString& searchTerm);
98
105 void setSearchOrder(SortOrder order);
106
107Q_SIGNALS:
113 void searchResult(const KNS3::Entry::List& entries);
114
120 void entryStatusChanged(const KNS3::Entry& entry);
121
122private:
123 Q_PRIVATE_SLOT( d, void _k_slotProvidersLoaded() )
124 Q_PRIVATE_SLOT( d, void _k_slotEntryStatusChanged(const KNS3::EntryInternal& entry) )
125 Q_PRIVATE_SLOT( d, void _k_slotEntriesLoaded(const KNS3::EntryInternal::List& entries) )
126 class Private;
127 Private *const d;
128 Q_DISABLE_COPY(DownloadManager)
129};
130
131}
132
133#endif
KNS3::DownloadManager
KNewStuff update checker.
Definition: downloadmanager.h:35
KNS3::DownloadManager::searchResult
void searchResult(const KNS3::Entry::List &entries)
Returns the search result.
KNS3::DownloadManager::SortOrder
SortOrder
Definition: downloadmanager.h:39
KNS3::DownloadManager::Rating
@ Rating
Definition: downloadmanager.h:42
KNS3::DownloadManager::Newest
@ Newest
Definition: downloadmanager.h:40
KNS3::DownloadManager::Alphabetical
@ Alphabetical
Definition: downloadmanager.h:41
KNS3::DownloadManager::entryStatusChanged
void entryStatusChanged(const KNS3::Entry &entry)
The entry status has changed: emitted when the entry has been installed, updated or removed.
KNS3::EntryInternal
KNewStuff data entry container.
Definition: entryinternal.h:55
KNS3::Entry
KNewStuff information about changed entries.
Definition: knewstuff3/entry.h:45
QList
QObject
entry.h
knewstuff_export.h
KNS3
Definition: atticaprovider.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

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