Kgapi

drivessearchquery.h
1 /*
2  * Copyright (C) 2019 David Barchiesi <[email protected]>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) version 3, or any
8  * later version accepted by the membership of KDE e.V. (or its
9  * successor approved by the membership of KDE e.V.), which shall
10  * act as a proxy defined in Section 6 of version 3 of the license.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef KGAPI2_DRIVE_DRIVESSEARCHQUERY_H
22 #define KGAPI2_DRIVE_DRIVESSEARCHQUERY_H
23 
24 #include "kgapidrive_export.h"
25 
26 #include "searchquery.h"
27 
28 #include <QVariant>
29 #include <QSharedDataPointer>
30 
31 namespace KGAPI2
32 {
33 namespace Drive
34 {
35 
43 class KGAPIDRIVE_EXPORT DrivesSearchQuery : public SearchQuery
44 {
45 public:
46  enum Field {
47  Name,
48  Hidden,
49  CreatedDate,
50  MemberCount,
51  OrganizerCount
52  };
53 
54  using SearchQuery::SearchQuery;
55 
56  using SearchQuery::addQuery;
57  void addQuery(Field field, CompareOperator op, const QVariant &value);
58 
59 private:
60  QString fieldToString(Field field);
61  QString valueToString(DrivesSearchQuery::Field field, const QVariant &var);
62 };
63 }
64 }
65 
66 #endif // KGAPI2_DRIVE_DRIVESSEARCHQUERY_H
DrivesSearchQuery class allows simply building even complex shared drive search queries for DrivesFet...
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:30
SearchQuery class should be used as a base class for building file/team search queries.
Definition: searchquery.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jun 4 2020 23:00:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.