KBlog Client Library
23 #include "blogmedia.h"
31 class BlogMediaPrivate
49 : d_ptr( new BlogMediaPrivate )
52 d_ptr->mName = m.
name();
53 d_ptr->mUrl = m.
url();
55 d_ptr->mData = m.
data();
56 d_ptr->mStatus = m.
status();
57 d_ptr->mError = m.
error();
87 return d_ptr->mMimetype;
107 return d_ptr->mStatus;
117 return d_ptr->mError;
122 d_ptr->mError =
error;
A class that represents a media object on the server.
void setStatus(Status status)
Set the status.
QString error() const
Returns the error string.
Status
The different possible status.
QString mimetype() const
Returns the mimetype.
void setError(const QString &error)
Set the error of the object.
void setUrl(const KUrl &url)
Sets the url of the server side object.
void setData(const QByteArray &data)
Set the data of the file.
KUrl url() const
Returns the server side url.
void setName(const QString &name)
Sets the name.
BlogMedia()
Default constructor.
QString name() const
Returns the wished name.
virtual ~BlogMedia()
Virtual default destructor.
BlogMedia & operator=(const BlogMedia &media)
Overloaded for QList handling.
Status status() const
Returns the status.
void setMimetype(const QString &mimetype)
Set the mimtype.
QByteArray data() const
Returns the data of the file.
void swap(BlogMedia &other)
The swap operator.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:55 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.