23#ifndef KBLOG_BLOGMEDIA_H
24#define KBLOG_BLOGMEDIA_H
26#include <kblog/kblog_export.h>
28#include <QtCore/QtAlgorithms>
34class BlogMediaPrivate;
124 QByteArray
data()
const;
153 Status status()
const;
162 void setStatus( Status status );
169 QString error()
const;
177 void setError(
const QString &error );
189 qSwap( this->d_ptr, other.d_ptr );
193 BlogMediaPrivate *d_ptr;
A class that represents a media object on the server.
void swap(BlogMedia &other)
The swap operator.
void setData(const QByteArray &data)
Set the data of the file.
Status
The different possible status.
@ Created
Status of a media object successfully created on the server.
@ Error
Status when an error on uploading has occurred.
@ New
Status of freshly constructed media object on the client side.
BlogMedia()
Default constructor.
QString name() const
Returns the wished name.
QByteArray data() const
Returns the data of the file.
KUrl url() const
Returns the server side url.
QString mimetype() const
Returns the mimetype.
void setName(const QString &name)
Sets the name.
void setMimetype(const QString &mimetype)
Set the mimtype.
void setUrl(const KUrl &url)
Sets the url of the server side object.
Namespace for blog related classes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.