digiKam
flickrmpform.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 images to Flickr web service
8  *
9  * Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
10  * Copyright (C) 2008-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_FLICKR_MPFORM_H
25 #define DIGIKAM_FLICKR_MPFORM_H
26 
27 // Qt includes
28 
29 #include <QByteArray>
30 #include <QString>
31 
33 {
34 
36 {
37 
38 public:
39 
40  explicit FlickrMPForm();
41  ~FlickrMPForm();
42 
43  void finish();
44  void reset();
45 
46  bool addPair(const QString& name, const QString& value, const QString& type);
47  bool addFile(const QString& name, const QString& path);
48 
49  QString contentType() const;
50  QByteArray formData() const;
51  QString boundary() const;
52 
53 private:
54 
55  QByteArray m_buffer;
56  QByteArray m_boundary;
57 };
58 
59 } // namespace DigikamGenericFlickrPlugin
60 
61 #endif // DIGIKAM_FLICKR_MPFORM_H
Definition: flickrmpform.h:36
QString boundary() const
Definition: flickrmpform.cpp:157
bool addFile(const QString &name, const QString &path)
Definition: flickrmpform.cpp:103
void finish()
Definition: flickrmpform.cpp:60
QByteArray formData() const
Definition: flickrmpform.cpp:162
QString contentType() const
Definition: flickrmpform.cpp:152
void reset()
Definition: flickrmpform.cpp:55
~FlickrMPForm()
Definition: flickrmpform.cpp:51
FlickrMPForm()
Definition: flickrmpform.cpp:46
bool addPair(const QString &name, const QString &value, const QString &type)
Definition: flickrmpform.cpp:69
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: flickritem.h:37