#include <imagecollection.h>
Public Member Functions | |
| QString | name () const |
| QString | comment () const |
| QString | category () const |
| QDate | date () const |
| KURL::List | images () const |
| KURL | path () const |
| KURL | uploadPath () const |
| KURL | uploadRoot () const |
| QString | uploadRootName () const |
| bool | isDirectory () const |
| bool | isValid () const |
| ImageCollection (ImageCollectionShared *) | |
| ImageCollection (const ImageCollection &other) | |
| ~ImageCollection () | |
| ImageCollection () | |
| ImageCollection & | operator= (const ImageCollection &) |
| bool | operator== (const ImageCollection &) const |
Definition at line 46 of file imagecollection.h.
| KIPI::ImageCollection::ImageCollection | ( | ImageCollectionShared * | data | ) |
Definition at line 102 of file imagecollection.cpp.
| KIPI::ImageCollection::ImageCollection | ( | const ImageCollection & | other | ) |
Definition at line 113 of file imagecollection.cpp.
References _data, and KIPI::ImageCollectionShared::addRef().
| KIPI::ImageCollection::~ImageCollection | ( | ) |
Definition at line 107 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::removeRef().
| KIPI::ImageCollection::ImageCollection | ( | ) |
Definition at line 123 of file imagecollection.cpp.
| QString KIPI::ImageCollection::name | ( | ) | const |
PENDING(blackie) document
Definition at line 51 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::name().
| QString KIPI::ImageCollection::comment | ( | ) | const |
Definition at line 38 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::comment().
| QString KIPI::ImageCollection::category | ( | ) | const |
Return the category of the image collection. For example in Digikam, a category is a sorting class like 'travels', 'friends', 'monuments', etc.
Definition at line 65 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::category().
| QDate KIPI::ImageCollection::date | ( | ) | const |
Return the Creation date of the image collection. The default implementation return a null date.
Definition at line 79 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::date().
| KURL::List KIPI::ImageCollection::images | ( | ) | const |
PENDING(blackie) document
Definition at line 92 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::images().
| KURL KIPI::ImageCollection::path | ( | ) | const |
Returns the directory for the image collection. The host application may, however, return anything in case this imagecollection is not a directory (check isDirectory()), or may return the directory of the first image in the collection, the root of the image collection (in case all images has a common root), or even an empty URL.
Definition at line 154 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::path().
| KURL KIPI::ImageCollection::uploadPath | ( | ) | const |
Returns the directory to place images into. This function should only be called if KIPI::Features AcceptNewImages is available.
The function may choose to return the directory for the image collection or if images from the collection are not available in a common directory, then instead a common upload directory. In contrast to path, this function must return a valid url.
IMPORTANT: uploadRoot() must be a subpath of uploadPath()
Definition at line 176 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::uploadPath().
Referenced by KIPI::UploadWidget::UploadWidget().
| KURL KIPI::ImageCollection::uploadRoot | ( | ) | const |
When a plugin wants to upload images, it may choose to display an upload widget, which gives the user the possible to show a directory from a tree view.
This tree view widget needs to starts at some URL. This function specifies that location. Here are a couble of possible return value different host applications may choose.
IMPORTANT: uploadRoot() must be a subpath of uploadPath()
Definition at line 201 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::uploadRoot().
Referenced by KIPI::UploadWidget::UploadWidget().
| QString KIPI::ImageCollection::uploadRootName | ( | ) | const |
This fonction return the name of the upload root path used by the the KIPI::UploadWidget. This name can be different for each host app (like "Images" for Kimdaba or "My Albums" for Digikam).
Definition at line 216 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::uploadRootName().
Referenced by KIPI::UploadWidget::UploadWidget().
| bool KIPI::ImageCollection::isDirectory | ( | ) | const |
Definition at line 231 of file imagecollection.cpp.
References KIPI::ImageCollectionShared::isDirectory().
Referenced by KIPI::UploadWidget::UploadWidget().
| bool KIPI::ImageCollection::isValid | ( | ) | const |
Definition at line 241 of file imagecollection.cpp.
Referenced by KIPI::UploadWidget::UploadWidget().
| KIPI::ImageCollection & KIPI::ImageCollection::operator= | ( | const ImageCollection & | rhs | ) |
Definition at line 128 of file imagecollection.cpp.
References _data, KIPI::ImageCollectionShared::addRef(), and KIPI::ImageCollectionShared::removeRef().
| bool KIPI::ImageCollection::operator== | ( | const ImageCollection & | ic | ) | const |
1.5.3