digiKam
vkontakte_allmessageslistjob.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_ALLMESSAGESLISTJOB_H
25 #define DIGIKAM_VKONTAKTE_ALLMESSAGESLISTJOB_H
26 
27 // Local includes
28 
30 
31 namespace Vkontakte
32 {
33 
34 class AllMessagesListJob : public KJobWithSubjobs
35 {
36  Q_OBJECT
37 
38 public:
39 
49  explicit AllMessagesListJob(const QString& accessToken,
50  int out = -1, int previewLength = 0,
51  int filters = 0, int timeOffset = 0);
52  ~AllMessagesListJob();
53 
54  void start() override;
55 
56  QList<MessageInfoPtr> list() const;
57  int count() const;
58 
59 protected:
60 
61  void startNewJob(int offset, int count, int out);
62 
63 private Q_SLOTS:
64 
65  void jobFinished(KJob* kjob);
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace Vkontakte
74 
75 #endif // DIGIKAM_VKONTAKTE_ALLMESSAGESLISTJOB_H
Definition: piwigotalker.h:48