Kgapi

teamdrivesearchquery.h
1 /*
2  * SPDX-FileCopyrightText: 2019 David Barchiesi <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5  */
6 
7 #ifndef KGAPI2_DRIVE_TEAMDRIVESEARCHQUERY_H
8 #define KGAPI2_DRIVE_TEAMDRIVESEARCHQUERY_H
9 
10 #include "kgapidrive_export.h"
11 
12 #include "searchquery.h"
13 
14 #include <QVariant>
15 #include <QSharedDataPointer>
16 
17 namespace KGAPI2
18 {
19 namespace Drive
20 {
21 
31 class KGAPIDRIVE_EXPORT TeamdriveSearchQuery : public SearchQuery
32 {
33 public:
34  enum Field {
35  Name,
36  CreatedTime,
37  MemberCount,
38  OrganizerCount
39  };
40 
41  using SearchQuery::SearchQuery;
42 
43  using SearchQuery::addQuery;
44  void addQuery(Field field, CompareOperator op, const QVariant &value);
45 
46 private:
47  QString fieldToString(Field field);
48  QString valueToString(TeamdriveSearchQuery::Field field, const QVariant &var);
49 };
50 }
51 }
52 
53 #endif // KGAPI2_DRIVE_TEAMDRIVESEARCHQUERY_H
TeamdriveSearchQuery class allows simply building even complex team drive search queries for Teamdriv...
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
SearchQuery class should be used as a base class for building file/team search queries.
Definition: searchquery.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:09:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.