digiKam
gpmpform.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 Google web services
8
*
9
* Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
10
* Copyright (C) 2008-2020 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_GP_MPFORM_H
25
#define DIGIKAM_GP_MPFORM_H
26
27
// Qt includes
28
29
#include <QByteArray>
30
#include <QString>
31
32
namespace
DigikamGenericGoogleServicesPlugin
33
{
34
35
class
GPMPForm
36
{
37
38
public
:
39
40
explicit
GPMPForm
();
41
~GPMPForm
();
42
43
void
finish
();
44
void
reset
();
45
46
bool
addPair
(
const
QString& name,
47
const
QString&
value
,
48
const
QString&
contentType
= QString());
49
50
bool
addFile
(
const
QString& name,
51
const
QString& path);
52
53
QString
contentType
()
const
;
54
QByteArray
formData
()
const
;
55
QString
boundary
()
const
;
56
57
private
:
58
59
QByteArray m_buffer;
60
QByteArray m_boundary;
61
};
62
63
}
// namespace DigikamGenericGoogleServicesPlugin
64
65
#endif
// DIGIKAM_GP_MPFORM_H
DigikamGenericGoogleServicesPlugin::GPMPForm
Definition:
gpmpform.h:36
DigikamGenericGoogleServicesPlugin::GPMPForm::GPMPForm
GPMPForm()
Definition:
gpmpform.cpp:43
DigikamGenericGoogleServicesPlugin::GPMPForm::addFile
bool addFile(const QString &name, const QString &path)
Definition:
gpmpform.cpp:103
DigikamGenericGoogleServicesPlugin::GPMPForm::boundary
QString boundary() const
Definition:
gpmpform.cpp:154
DigikamGenericGoogleServicesPlugin::GPMPForm::reset
void reset()
Definition:
gpmpform.cpp:52
DigikamGenericGoogleServicesPlugin::GPMPForm::addPair
bool addPair(const QString &name, const QString &value, const QString &contentType=QString())
Definition:
gpmpform.cpp:67
DigikamGenericGoogleServicesPlugin::GPMPForm::formData
QByteArray formData() const
Definition:
gpmpform.cpp:159
DigikamGenericGoogleServicesPlugin::GPMPForm::~GPMPForm
~GPMPForm()
Definition:
gpmpform.cpp:48
DigikamGenericGoogleServicesPlugin::GPMPForm::finish
void finish()
Definition:
gpmpform.cpp:57
DigikamGenericGoogleServicesPlugin::GPMPForm::contentType
QString contentType() const
Definition:
gpmpform.cpp:148
value
qulonglong value
Definition:
itemviewutilities.cpp:592
DigikamGenericGoogleServicesPlugin
Definition:
gdmpform.cpp:46
core
dplugins
generic
webservices
google
gphoto
gpmpform.h
Generated by
1.9.1