1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* ============================================================
 *
 * This file is a part of digiKam project
 * https://www.digikam.org
 *
 * Date        : 2018-05-20
 * Description : a tool to export images to Onedrive web service
 *
 * SPDX-FileCopyrightText: 2018      by Tarek Talaat <tarektalaat93 at gmail dot com>
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * ============================================================ */

#pragma once

// Qt includes

#include <QByteArray>

namespace DigikamGenericOneDrivePlugin
{

class ODMPForm
{

public:

    ODMPForm()  = default;
    ~ODMPForm() = default;

    bool addFile(const QString& imgPath);
    QByteArray formData() const;<--- Function 'formData()' should return member 'm_buffer' by const reference.

private:

    QByteArray m_buffer;
};

} // namespace DigikamGenericOneDrivePlugin