You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kipi-plugins/kipi-plugins/galleryexport/gallerympform.h

58 lines
1.4 KiB

/* ============================================================
* File : gallerympform.h
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
* Date : 2004-12-02
* Copyright 2004 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* ============================================================ */
#ifndef GALLERYMPFORM_H
#define GALLERYMPFORM_H
#include <tqcstring.h>
#include <tqstring.h>
class KURL;
namespace KIPIGalleryExportPlugin
{
class GalleryMPForm
{
public:
GalleryMPForm();
~GalleryMPForm();
void finish();
void reset();
bool addPair(const TQString& name, const TQString& value);
bool addFile(const TQString& path, const TQString& displayFilename);
TQString contentType() const;
TQByteArray formData() const;
TQString boundary() const;
private:
bool addPairRaw(const TQString& name, const TQString& value);
TQByteArray m_buffer;
TQCString m_boundary;
};
}
#endif /* GALLERYMPFORM_H */