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;
void setName(const QString &name)
Sets the name.
QString mimetype() const
Returns the mimetype.
void setError(const QString &error)
Set the error of the object.
void swap(BlogMedia &other)
The swap operator.
void setStatus(Status status)
Set the status.
QString name() const
Returns the wished name.
A class that represents a media object on the server.
QByteArray data() const
Returns the data of the file.
void setData(const QByteArray &data)
Set the data of the file.
virtual ~BlogMedia()
Virtual default destructor.
void setUrl(const KUrl &url)
Sets the url of the server side object.
BlogMedia()
Default constructor.
void setMimetype(const QString &mimetype)
Set the mimtype.
Status
The different possible status.
Status status() const
Returns the status.
QString error() const
Returns the error string.
Namespace for blog related classes.
BlogMedia & operator=(const BlogMedia &media)
Overloaded for QList handling.
KUrl url() const
Returns the server side url.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.