Kgapi

teamdrivesearchquery.h
1/*
2 * SPDX-FileCopyrightText: 2019 David Barchiesi <david@barchie.si>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#pragma once
8
9#include "kgapidrive_export.h"
10
11#include "searchquery.h"
12
13#include <QSharedDataPointer>
14#include <QVariant>
15
16namespace KGAPI2
17{
18namespace Drive
19{
20
21/**
22 * TeamdriveSearchQuery class allows simply building even complex team drive search queries
23 * for TeamdriveFetchJob.
24 *
25 * See https://developers.google.com/drive/web/search-parameters for allowed
26 * combinations of fields, compare operators, and value types.
27 *
28 * @since 2.3
29 */
30class KGAPIDRIVE_EXPORT TeamdriveSearchQuery : public SearchQuery
31{
32public:
33 enum Field { Name, CreatedTime, MemberCount, OrganizerCount };
34
35 using SearchQuery::SearchQuery;
36
37 using SearchQuery::addQuery;
38 void addQuery(Field field, CompareOperator op, const QVariant &value);
39
40private:
41 QString fieldToString(Field field);
42 QString valueToString(TeamdriveSearchQuery::Field field, const QVariant &var);
43};
44}
45}
SearchQuery class should be used as a base class for building file/team search queries.
Definition searchquery.h:24
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.