KABC::Picture Class Reference
Collaboration diagram for KABC::Picture:
Public Member Functions | |
Picture () | |
Picture (const QString &url) | |
Picture (const QImage &data) | |
~Picture () | |
bool | operator== (const Picture &) const |
bool | operator!= (const Picture &) const |
void | setUrl (const QString &url) |
void | setData (const QImage &data) |
void | setType (const QString &type) |
bool | isIntern () const |
QString | url () const |
QImage | data () const |
QString | type () const |
QString | asString () const |
Friends | |
KABC_EXPORT QDataStream & | operator<< (QDataStream &, const Picture &) |
KABC_EXPORT QDataStream & | operator>> (QDataStream &, Picture &) |
Detailed Description
Definition at line 30 of file picture.h.
Constructor & Destructor Documentation
|
Consturctor. Creates an empty object. Definition at line 25 of file picture.cpp. |
|
Consturctor.
Definition at line 30 of file picture.cpp. |
|
Consturctor.
Definition at line 35 of file picture.cpp. |
|
Destructor.
Definition at line 40 of file picture.cpp. |
Member Function Documentation
|
Sets a URL for the location of the picture file. When using this function, isIntern() will return 'false' until you use setData().
Definition at line 64 of file picture.cpp. Referenced by KABC::VCardFormatImpl::readPictureValue(). |
|
Sets the raw data of the picture. When using this function, isIntern() will return 'true' until you use setUrl().
Definition at line 70 of file picture.cpp. Referenced by KABC::VCardFormatImpl::readPictureValue(). |
|
Sets the type of the picture.
Definition at line 76 of file picture.cpp. Referenced by KABC::VCardFormatImpl::readPictureValue(). |
|
Returns whether the picture is described by a URL (extern) or by the raw data (intern). When this method returns 'true' you can use data() to get the raw data. Otherwise you can request the URL of this picture by url() and load the raw data from that location. Definition at line 81 of file picture.cpp. Referenced by KABC::VCardFormatImpl::addPictureValue(). |
|
Returns the location URL of this picture.
Definition at line 86 of file picture.cpp. Referenced by KABC::VCardFormatImpl::addPictureValue(). |
|
Returns the raw data of this picture.
Definition at line 91 of file picture.cpp. Referenced by KABC::VCardFormatImpl::addPictureValue(). |
|
Returns the type of this picture.
Definition at line 96 of file picture.cpp. Referenced by KABC::VCardFormatImpl::addPictureValue(). |
|
Returns string representation of the picture.
Definition at line 101 of file picture.cpp. |
The documentation for this class was generated from the following files: