digiKam
rajcempform.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 : 2005-07-07
7  * Description : A tool to export items to Rajce web service
8  *
9  * Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
10  * Copyright (C) 2008-2018 by Caulier Gilles <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_RAJCE_MPFORM_H
25 #define DIGIKAM_RAJCE_MPFORM_H
26 
27 // Qt includes
28 
29 #include <QByteArray>
30 #include <QString>
31 
33 {
34 
36 {
37 public:
38 
39  explicit RajceMPForm();
40  ~RajceMPForm();
41 
42 public:
43 
44  void finish();
45  void reset();
46 
47  bool addPair(const QString& name, const QString& value, const QString& contentType = QString());
48  bool addFile(const QString& name, const QString& path);
49 
50  QString contentType() const;
51  QByteArray formData() const;
52  QString boundary() const;
53 
54 private:
55 
56  QByteArray m_buffer;
57  QByteArray m_boundary;
58 };
59 
60 } // namespace DigikamGenericRajcePlugin
61 
62 #endif // DIGIKAM_RAJCE_MPFORM_H
Definition: rajcempform.h:36
bool addPair(const QString &name, const QString &value, const QString &contentType=QString())
Definition: rajcempform.cpp:70
bool addFile(const QString &name, const QString &path)
Definition: rajcempform.cpp:104
void reset()
Definition: rajcempform.cpp:55
QByteArray formData() const
Definition: rajcempform.cpp:165
void finish()
Definition: rajcempform.cpp:60
~RajceMPForm()
Definition: rajcempform.cpp:51
RajceMPForm()
Definition: rajcempform.cpp:45
QString boundary() const
Definition: rajcempform.cpp:160
QString contentType() const
Definition: rajcempform.cpp:155
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: rajcealbum.h:35