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

KNewStuff

  • knewstuff
  • knewstuff3
  • core
knewstuff3/core/provider.cpp
Go to the documentation of this file.
1/*
2 knewstuff3/provider.cpp
3 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4 Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org>
5 Copyright (c) 2009 Jeremy Whiting <jpwhiting@kde.org>
6 Copyright (C) 2009 Frederik Gladhorn <gladhorn@kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include "provider.h"
23
24#include "xmlloader.h"
25
26#include <kdebug.h>
27#include <klocale.h>
28#include <kio/job.h>
29
30namespace KNS3
31{
32
33QString Provider::SearchRequest::hashForRequest() const
34{
35 return QString(QString::number((int)sortMode) + ','
36 + searchTerm + ','
37 + categories.join(QString('-')) + ','
38 + QString::number(page) + ','
39 + QString::number(pageSize));
40}
41
42Provider::Provider()
43{}
44
45Provider::~Provider()
46{}
47
48QString Provider::name() const
49{
50 return mName;
51}
52
53KUrl Provider::icon() const
54{
55 return mIcon;
56}
57
58}
59
60#include "provider.moc"
KNS3::Provider::mIcon
KUrl mIcon
Definition knewstuff3/core/provider.h:149
KNS3::Provider::~Provider
virtual ~Provider()
Destructor.
Definition knewstuff3/core/provider.cpp:45
KNS3::Provider::mName
QString mName
Definition knewstuff3/core/provider.h:148
KNS3::Provider::Provider
Provider()
Constructor.
Definition knewstuff3/core/provider.cpp:42
KNS3::Provider::icon
virtual KUrl icon() const
Retrieves the icon URL for this provider.
Definition knewstuff3/core/provider.cpp:53
KNS3::Provider::name
virtual QString name() const
Retrieves the common name of the provider.
Definition knewstuff3/core/provider.cpp:48
KUrl
job.h
kdebug.h
klocale.h
provider.h
KNS3
Definition atticaprovider.cpp:36
KNS3::Provider::SearchRequest::searchTerm
QString searchTerm
Definition knewstuff3/core/provider.h:66
KNS3::Provider::SearchRequest::page
int page
Definition knewstuff3/core/provider.h:68
KNS3::Provider::SearchRequest::pageSize
int pageSize
Definition knewstuff3/core/provider.h:69
KNS3::Provider::SearchRequest::sortMode
SortMode sortMode
Definition knewstuff3/core/provider.h:65
KNS3::Provider::SearchRequest::categories
QStringList categories
Definition knewstuff3/core/provider.h:67
KNS3::Provider::SearchRequest::hashForRequest
QString hashForRequest() const
Definition knewstuff3/core/provider.cpp:33
xmlloader.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 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