KGAPI2::Drive::SearchQuery

Search for usage in LXR

KGAPI2::Drive::SearchQuery Class Reference

#include <searchquery.h>

Inheritance diagram for KGAPI2::Drive::SearchQuery:

Public Types

enum  CompareOperator {
  Contains , Equals , NotEquals , Less ,
  LessOrEqual , Greater , GreaterOrEqual , In ,
  Has
}
 
enum  LogicOperator { And , Or }
 

Public Member Functions

 SearchQuery (const SearchQuery &other)
 
 SearchQuery (LogicOperator op=And)
 
void addQuery (const QString &field, CompareOperator op, const QString &value)
 
void addQuery (const SearchQuery &query)
 
bool isEmpty () const
 
SearchQueryoperator= (const SearchQuery &other)
 
QString serialize () const
 

Detailed Description

SearchQuery class should be used as a base class for building file/team search queries.

Definition at line 23 of file searchquery.h.

Member Enumeration Documentation

◆ CompareOperator

enum KGAPI2::Drive::SearchQuery::CompareOperator

Definition at line 26 of file searchquery.h.

◆ LogicOperator

enum KGAPI2::Drive::SearchQuery::LogicOperator

Definition at line 28 of file searchquery.h.

Constructor & Destructor Documentation

◆ SearchQuery()

SearchQuery::SearchQuery ( SearchQuery::LogicOperator op = And)

Definition at line 73 of file searchquery.cpp.

Member Function Documentation

◆ addQuery() [1/2]

void SearchQuery::addQuery ( const QString & field,
SearchQuery::CompareOperator op,
const QString & value )

Definition at line 85 of file searchquery.cpp.

◆ addQuery() [2/2]

void SearchQuery::addQuery ( const SearchQuery & query)

Definition at line 94 of file searchquery.cpp.

◆ isEmpty()

bool SearchQuery::isEmpty ( ) const
nodiscard

Definition at line 99 of file searchquery.cpp.

◆ serialize()

QString SearchQuery::serialize ( ) const
nodiscard

Definition at line 104 of file searchquery.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 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.