libKipi
KIPI::ImageInfo Class Reference

#include <imageinfo.h>

Collaboration diagram for KIPI::ImageInfo:
Collaboration graph

Public Member Functions

QString title () const
 
void setTitle (const QString &name)
 
QString description () const
 
void setDescription (const QString &description)
 
QMap< QString, QVariant > attributes () const
 
void clearAttributes ()
 
void addAttributes (const QMap< QString, QVariant > &)
 
KURL path () const
 
QDateTime time (TimeSpec spec=FromInfo) const
 
void setTime (const QDateTime &time, TimeSpec spec=FromInfo)
 
bool isTimeExact () const
 
int size () const
 
int angle () const
 
void setAngle (int)
 
QString toString (const QVariant &) const
 
void cloneData (const ImageInfo &other)
 
 ImageInfo (ImageInfoShared *)
 
 ImageInfo (const ImageInfo &)
 
 ~ImageInfo ()
 

Detailed Description

Holds info about an image

Constructor & Destructor Documentation

◆ ImageInfo() [1/2]

KIPI::ImageInfo::ImageInfo ( ImageInfoShared * shared)

constructor Interface for host application + general stuff

References ImageInfo().

Referenced by cloneData(), ImageInfo(), and ImageInfo().

Here is the call graph for this function:

◆ ImageInfo() [2/2]

KIPI::ImageInfo::ImageInfo ( const ImageInfo & rhs)

References ImageInfo().

Here is the call graph for this function:

◆ ~ImageInfo()

KIPI::ImageInfo::~ImageInfo ( )

Member Function Documentation

◆ addAttributes()

void KIPI::ImageInfo::addAttributes ( const QMap< QString, QVariant > & attributes)

References attributes().

Here is the call graph for this function:

◆ angle()

int KIPI::ImageInfo::angle ( ) const

Returns the angle the application rotates the image with when displaying it. Certain host applications may choose to rotate the image on disk, and will always return 0, while other host application will rotate the image when displaying it, and will thus not rotate the image on disk.

Referenced by setAngle().

◆ attributes()

QMap< QString, QVariant > KIPI::ImageInfo::attributes ( ) const

Returns a Map of attributes of the image In case the host application supports some special attributes of the image this function can be used to return them. Tags are supported by this feature: "tags" key contains QStringList() encapsulated in a QVariant

Referenced by addAttributes().

◆ clearAttributes()

void KIPI::ImageInfo::clearAttributes ( )

◆ cloneData()

void KIPI::ImageInfo::cloneData ( const ImageInfo & other)

Copies all the attibutes, description etc from the other imageinfo

References ImageInfo().

Here is the call graph for this function:

◆ description()

QString KIPI::ImageInfo::description ( ) const

PENDING(blackie) document

Referenced by setDescription().

◆ isTimeExact()

bool KIPI::ImageInfo::isTimeExact ( ) const

In the case the application supports time ranges (like this image is from 1998-2000), this method will return true if the time is an exact specification, and thus not a range.

◆ path()

KURL KIPI::ImageInfo::path ( ) const

PENDING(blackie) document

◆ setAngle()

void KIPI::ImageInfo::setAngle ( int angle)

See angle

References angle().

Here is the call graph for this function:

◆ setDescription()

void KIPI::ImageInfo::setDescription ( const QString & description)

References description().

Here is the call graph for this function:

◆ setTime()

void KIPI::ImageInfo::setTime ( const QDateTime & time,
TimeSpec spec = FromInfo )

References time().

Here is the call graph for this function:

◆ setTitle()

void KIPI::ImageInfo::setTitle ( const QString & name)

◆ size()

int KIPI::ImageInfo::size ( ) const

PENDING(blackie) document

◆ time()

QDateTime KIPI::ImageInfo::time ( TimeSpec spec = FromInfo) const

Returns the time of the image. In case the host application supports time range, the spec argument specifies if it is the start or end time that should be returned.

Referenced by setTime().

◆ title()

QString KIPI::ImageInfo::title ( ) const

PENDING(blackie) document

◆ toString()

QString KIPI::ImageInfo::toString ( const QVariant & data) const

References flush().

Here is the call graph for this function:

The documentation for this class was generated from the following files: