Kgapi

locationdeletejob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#pragma once
10
11#include "deletejob.h"
12#include "kgapilatitude_export.h"
13
14namespace KGAPI2
15{
16
17/**
18 * @brief A job to delete one or more location from user's account on
19 * Google Latitude service
20 *
21 * Note that operation is irreversible.
22 *
23 * @author Daniel Vrátil <dvratil@redhat.com>
24 * @since 2.0
25 */
26class KGAPILATITUDE_DEPRECATED_EXPORT LocationDeleteJob : public KGAPI2::DeleteJob
27{
28 Q_OBJECT
29
30public:
31 /**
32 * @brief Constructs a job that will delete user's current location from
33 * his/her Google Latitude account.
34 *
35 * @param account Account to authenticate the request
36 * @param parent
37 */
38 explicit LocationDeleteJob(const AccountPtr &account, QObject *parent);
39
40 /**
41 * @brief Constructs a job that will delete given @p location from user's
42 * Google Latitude account.
43 *
44 * @param location Location to delete
45 * @param account Account to authenticate the request
46 * @param parent
47 */
48 explicit LocationDeleteJob(const LocationPtr &location, const AccountPtr &account, QObject *parent);
49
50 /**
51 * @brief Constructs a job that will delete given location with given
52 * @p timestamp from user'sGoogle Latitude account.
53 *
54 * @param timestamp Timestamp of location to delete
55 * @param account Account to authenticate the request
56 * @param parent
57 */
58 explicit LocationDeleteJob(qulonglong timestamp, const AccountPtr &account, QObject *parent);
59
60 /**
61 * @brief Destructor
62 */
63 ~LocationDeleteJob() override;
64
65protected:
66 /**
67 * @brief KGAPI2::Job::start implementation
68 */
69 void start() override;
70
71private:
72 class Private;
73 Private *const d;
74 friend class Private;
75};
76
77} // namespace KGAPI2
Abstract superclass for all jobs that delete resources from Google.
Definition deletejob.h:25
A job to delete one or more location from user's account on Google Latitude service.
Q_SCRIPTABLE Q_NOREPLY void start()
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 Fri Jul 19 2024 11:58:18 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.