Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

KIPI::ImageCollection Class Reference

#include <imagecollection.h>

Collaboration diagram for KIPI::ImageCollection:

Collaboration graph
[legend]
List of all members.

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 ()
ImageCollectionoperator= (const ImageCollection &)
bool operator== (const ImageCollection &) const

Constructor & Destructor Documentation

KIPI::ImageCollection::ImageCollection ImageCollectionShared  ) 
 

KIPI::ImageCollection::ImageCollection const ImageCollection other  ) 
 

KIPI::ImageCollection::~ImageCollection  ) 
 

KIPI::ImageCollection::ImageCollection  ) 
 


Member Function Documentation

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.

QString KIPI::ImageCollection::comment  )  const
 

returns the comment for the collection of images or QString::null if that doesn't make any sense. A comment makes sense for an album, but not for a KIPI::Interface::currentSelection().

QDate KIPI::ImageCollection::date  )  const
 

Return the Creation date of the image collection. The default implementation return a null date.

KURL::List KIPI::ImageCollection::images  )  const
 

PENDING(blackie) document

bool KIPI::ImageCollection::isDirectory  )  const
 

bool KIPI::ImageCollection::isValid  )  const
 

QString KIPI::ImageCollection::name  )  const
 

PENDING(blackie) document

KIPI::ImageCollection & KIPI::ImageCollection::operator= const ImageCollection  ) 
 

bool KIPI::ImageCollection::operator== const ImageCollection  )  const
 

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.

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()

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.

  • If all images are stored rooted at some tree (which is the case for KimDaBa), then this function may return this directory unconditionally.
  • The root directory returned by uploadPath() (which is the default implementation for this method)
  • The directory returned by uploadPath().

IMPORTANT: uploadRoot() must be a subpath of uploadPath()

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).


The documentation for this class was generated from the following files:
Generated on Tue Sep 13 05:02:11 2005 for libKipi by  doxygen 1.4.4