1 /* ============================================================ 2 * 3 * This file is a part of KDE project 4 * 5 * 6 * Date : 2015-09-09 7 * Description : Kipi-Plugins shared library. 8 * 9 * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * ============================================================ */ 22 23 #ifndef KPMULTIPART_H 24 #define KPMULTIPART_H 25 26 // Qt includes 27 28 #include <QHttpMultiPart> 29 #include <QString> 30 31 // Local includes 32 33 #include "kipiplugins_export.h" 34 35 namespace KIPIPlugins 36 { 37 38 class KIPIPLUGINS_EXPORT KPMultiPart 39 { 40 41 public: 42 43 KPMultiPart(); 44 ~KPMultiPart(); 45 46 QHttpMultiPart* multiPart() const; 47 48 bool appendFile(const QString &header, const QString& path); 49 bool appendPair(const QString& name, const QString& value, const QString& contentType); 50 51 private: 52 53 QHttpMultiPart* m_multiPart; 54 }; 55 56 } // namespace KIPIPlugins 57 58 #endif //KPMULTIPART_H 59