KGAPI2::Drive::FileSearchQuery
KGAPI2::Drive::FileSearchQuery Class Reference
#include <filesearchquery.h>
Inheritance diagram for KGAPI2::Drive::FileSearchQuery:
Public Types | |
enum | Field { Title , FullText , MimeType , ModifiedDate , LastViewedByMeDate , Trashed , Starred , Parents , Owners , Writers , Readers , SharedWithMe } |
Public Types inherited from KGAPI2::Drive::SearchQuery | |
enum | CompareOperator { Contains , Equals , NotEquals , Less , LessOrEqual , Greater , GreaterOrEqual , In , Has } |
enum | LogicOperator { And , Or } |
Public Member Functions | |
void | addQuery (const QString &field, CompareOperator op, const QString &value) |
void | addQuery (const SearchQuery &query) |
void | addQuery (Field field, CompareOperator op, const QVariant &value) |
SearchQuery (const SearchQuery &other) | |
SearchQuery (LogicOperator op=And) | |
Public Member Functions inherited from KGAPI2::Drive::SearchQuery | |
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 |
SearchQuery & | operator= (const SearchQuery &other) |
QString | serialize () const |
Detailed Description
FileSearchQuery class allows simply building even complex file search queries for FileFetchJob.
See https://developers.google.com/drive/web/search-parameters for allowed combinations of fields, compare operators, and value types.
- Since
- 2.3
Definition at line 31 of file filesearchquery.h.
Member Enumeration Documentation
◆ Field
enum KGAPI2::Drive::FileSearchQuery::Field |
Definition at line 34 of file filesearchquery.h.
Member Function Documentation
◆ addQuery() [1/3]
void SearchQuery::addQuery | ( | const QString & | field, |
SearchQuery::CompareOperator | op, | ||
const QString & | value ) |
Definition at line 36 of file searchquery.cpp.
◆ addQuery() [2/3]
void SearchQuery::addQuery | ( | const SearchQuery & | query | ) |
Definition at line 37 of file searchquery.cpp.
◆ addQuery() [3/3]
void FileSearchQuery::addQuery | ( | FileSearchQuery::Field | field, |
FileSearchQuery::CompareOperator | op, | ||
const QVariant & | value ) |
Definition at line 74 of file filesearchquery.cpp.
◆ SearchQuery()
SearchQuery::SearchQuery | ( | SearchQuery::LogicOperator | op = And | ) |
Definition at line 30 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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.