digiKam
vkontakte_getvariablejob.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2011-02-19
7  * Description : a tool to export images to VKontakte web service
8  *
9  * Copyright (C) 2011-2015 by Alexander Potashev <aspotashev at gmail dot com>
10  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_VKONTAKTE_GETVARIABLEJOB_H
25 #define DIGIKAM_VKONTAKTE_GETVARIABLEJOB_H
26 
27 // Qt includes
28 
29 #include <QVariant>
30 
31 // Local includes
32 
33 #include "vkontakte_jobs.h"
34 
35 namespace Vkontakte
36 {
37 
38 // For the info about specific variables see:
39 // https://vk.com/dev
40 class GetVariableJob : public VkontakteJob
41 {
42 
43 public:
44 
45  // "getVariable" is deprecated, please use "users.get" with empty user_ids
46  Q_DECL_DEPRECATED GetVariableJob(const QString& accessToken, int index);
47  ~GetVariableJob();
48 
49  QVariant variable() const;
50 
51 protected:
52 
53  void handleData(const QVariant& data) override;
54 
55 private:
56 
57  class Private;
58  Private* const d;
59 };
60 
61 } // namespace Vkontakte
62 
63 #endif // DIGIKAM_VKONTAKTE_GETVARIABLEJOB_H