Kgapi

locationcreatejob.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 "createjob.h"
12#include "kgapilatitude_export.h"
13
14namespace KGAPI2
15{
16
17/**
18 * @brief A job to stores one or more Locations in Google Latitude service
19 *
20 * @author Daniel Vrátil <dvratil@redhat.com>
21 * @since 2.0
22 */
23class KGAPILATITUDE_DEPRECATED_EXPORT LocationCreateJob : public KGAPI2::CreateJob
24{
25 Q_OBJECT
26
27public:
28 /**
29 * @brief Constructs a job that will store given @p location in user's
30 * Google Latitude account
31 *
32 * @param location Location to store
33 * @param isCurrent Whether the location is user's current location
34 * @param account Account to authenticate the request
35 * @param parent
36 */
37 explicit LocationCreateJob(const LocationPtr &location, bool isCurrent, const AccountPtr &account, QObject *parent = nullptr);
38
39 /**
40 * @brief Destructor
41 */
42 ~LocationCreateJob() override;
43
44protected:
45 /**
46 * @brief KGAPI2::Job::start implementation
47 */
48 void start() override;
49
50 /**
51 * @brief KGAPI2::CreateJob::handleReplyWithItems implementation
52 *
53 * @param reply
54 * @param rawData
55 */
56 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
57
58private:
59 class Private;
60 Private *const d;
61 friend class Private;
62};
63
64} // namespace KGAPI2
Abstract superclass for all jobs that create new objects on the server.
Definition createjob.h:26
A job to stores one or more Locations in 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.