KoPictureKey Class Reference
KoPictureKey is the structure describing an image in a unique way. Structure describing an image on disk. More...
#include <koPictureKey.h>
Public Member Functions | |
KoPictureKey () | |
KoPictureKey (const QString &fn, const QDateTime &mod) | |
KoPictureKey (const QString &fn) | |
KoPictureKey (const KoPictureKey &key) | |
KoPictureKey & | operator= (const KoPictureKey &key) |
bool | operator== (const KoPictureKey &key) const |
bool | operator< (const KoPictureKey &key) const |
QString | toString () const |
void | saveAttributes (QDomElement &elem) const |
void | loadAttributes (const QDomElement &elem) |
QString | filename () const |
QDateTime | lastModified () const |
void | setKeyFromFile (const QString &filename) |
Protected Attributes | |
QString | m_filename |
QDateTime | m_lastModified |
Detailed Description
KoPictureKey is the structure describing an image in a unique way. Structure describing an image on disk.It currently includes the original path to the image and the modification date.
Definition at line 55 of file koPictureKey.h.
Constructor & Destructor Documentation
|
Default constructor. Creates a null key Definition at line 49 of file koPictureKey.cc. |
|
Constructs a key, from a filename and a modification date Storing the modification date as part of the key allows the user to update the file and import it into the application again, without the application reusing the old copy from the collection.
Definition at line 54 of file koPictureKey.cc. |
|
Constructs a key, from a filename (without modification date).
Definition at line 64 of file koPictureKey.cc. |
|
Copy constructor.
Definition at line 70 of file koPictureKey.cc. |
Member Function Documentation
|
Assignment operator.
Definition at line 75 of file koPictureKey.cc. References m_filename, and m_lastModified. |
|
Comparison operator.
Definition at line 82 of file koPictureKey.cc. References m_filename, and m_lastModified. |
|
Comparison operator - used for sorting in the collection's map.
Definition at line 88 of file koPictureKey.cc. References toString(). |
|
Convert this key into a string representation of it.
Definition at line 150 of file koPictureKey.cc. Referenced by KoPictureCollection::findPicture(), KoPictureCollection::insertPicture(), loadAttributes(), and operator<(). |
|
Save this key in XML.
Definition at line 93 of file koPictureKey.cc. |
|
Load this key from XML.
Definition at line 107 of file koPictureKey.cc. References toString(). Referenced by KoPictureCollection::readXML(). |
|
First part of the key: the filename.
Definition at line 114 of file koPictureKey.h. |
|
Second part of the key: the modification date.
Definition at line 119 of file koPictureKey.h. |
|
Sets the key according to
Definition at line 158 of file koPictureKey.cc. Referenced by KoPictureCollection::loadPicture(), and KoPicture::setKeyAndDownloadPicture(). |
The documentation for this class was generated from the following files: