KNSCore::Provider::SearchRequest Struct Reference

#include <provider.h>

Public Member Functions

 SearchRequest (SortMode sortMode_=Downloads, Filter filter_=None, const QString &searchTerm_=QString(), const QStringList &categories_=QStringList(), int page_=-1, int pageSize_=20)
QString hashForRequest () const
bool operator== (const SearchRequest &other) const

Public Attributes

QStringList categories
Filter filter
int page
int pageSize
QString searchTerm
SortMode sortMode

Detailed Description

used to keep track of a search

Definition at line 70 of file provider.h.

Constructor & Destructor Documentation

◆ SearchRequest()

KNSCore::Provider::SearchRequest::SearchRequest ( SortMode sortMode_ = Downloads,
Filter filter_ = None,
const QString & searchTerm_ = QString(),
const QStringList & categories_ = QStringList(),
int page_ = -1,
int pageSize_ = 20 )

Definition at line 78 of file provider.h.

Member Function Documentation

◆ hashForRequest()

QString KNSCore::Provider::SearchRequest::hashForRequest ( ) const

Definition at line 61 of file provider.cpp.

◆ operator==()

bool KNSCore::Provider::SearchRequest::operator== ( const SearchRequest & other) const

Definition at line 94 of file provider.h.

Member Data Documentation

◆ categories

QStringList KNSCore::Provider::SearchRequest::categories

Definition at line 74 of file provider.h.

◆ filter

Filter KNSCore::Provider::SearchRequest::filter

Definition at line 72 of file provider.h.

◆ page

int KNSCore::Provider::SearchRequest::page

Definition at line 75 of file provider.h.

◆ pageSize

int KNSCore::Provider::SearchRequest::pageSize

Definition at line 76 of file provider.h.

◆ searchTerm

QString KNSCore::Provider::SearchRequest::searchTerm

Definition at line 73 of file provider.h.

◆ sortMode

SortMode KNSCore::Provider::SearchRequest::sortMode

Definition at line 71 of file provider.h.

The documentation for this struct was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.