KNSCore::SearchRequest

Search for usage in LXR

KNSCore::SearchRequest Class Reference

#include <searchrequest.h>

Public Member Functions

 SearchRequest (SortMode sortMode_=KNSCore::SortMode::Downloads, Filter filter_=KNSCore::Filter::None, const QString &searchTerm_={}, const QStringList &categories_={}, int page_=-1, int pageSize_=20)
 
QStringList categories () const
 
Filter filter () const
 
SearchRequest nextPage () const
 
int page () const
 
int pageSize () const
 
QString searchTerm () const
 
SortMode sortMode () const
 

Detailed Description

A search request.

Since
6.9

Definition at line 44 of file searchrequest.h.

Constructor & Destructor Documentation

◆ SearchRequest()

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

Definition at line 11 of file searchrequest.cpp.

Member Function Documentation

◆ categories()

QStringList SearchRequest::categories ( ) const
nodiscard

Definition at line 37 of file searchrequest.cpp.

◆ filter()

Filter SearchRequest::filter ( ) const
nodiscard

Definition at line 27 of file searchrequest.cpp.

◆ nextPage()

SearchRequest SearchRequest::nextPage ( ) const
nodiscard

Definition at line 52 of file searchrequest.cpp.

◆ page()

int SearchRequest::page ( ) const
nodiscard

Definition at line 42 of file searchrequest.cpp.

◆ pageSize()

int SearchRequest::pageSize ( ) const
nodiscard

Definition at line 47 of file searchrequest.cpp.

◆ searchTerm()

QString SearchRequest::searchTerm ( ) const
nodiscard

Definition at line 32 of file searchrequest.cpp.

◆ sortMode()

SortMode SearchRequest::sortMode ( ) const
nodiscard

Definition at line 22 of file searchrequest.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.