digiKam
ShowFoto::ShowfotoStackViewFavoriteItem Class Reference
+ Inheritance diagram for ShowFoto::ShowfotoStackViewFavoriteItem:

Public Types

enum  FavoriteType { FavoriteRoot = -1 , FavoriteFolder , FavoriteItem }
 

Public Member Functions

QUrl currentUrl () const
 
QDate date () const
 
QString description () const
 
int favoriteType () const
 
QString hierarchy () const
 
QString name () const
 
void setCurrentUrl (const QUrl &url)
 
void setDate (const QDate &date)
 
void setDescription (const QString &desc)
 
void setFavoriteType (int favoriteType)
 
void setHierarchy (const QString &desc)
 
void setName (const QString &name)
 
void setUrls (const QList< QUrl > &)
 
 ShowfotoStackViewFavoriteItem (QTreeWidget *const parent)
 
 ShowfotoStackViewFavoriteItem (QTreeWidgetItem *const parent, int favType)
 
QList< QUrl > urls () const
 
QStringList urlsToPaths () const
 
 ~ShowfotoStackViewFavoriteItem () override
 

Static Public Member Functions

static QString hierarchyFromParent (const QString &name, ShowfotoStackViewFavoriteItem *const pitem)
 

Member Enumeration Documentation

◆ FavoriteType

Enumerator
FavoriteRoot 

Favorite is root item from hierarchy.

FavoriteFolder 

Favorite is a simple folder in hierarchy.

FavoriteItem 

Favorite is a hierarchy item including all properties.

Constructor & Destructor Documentation

◆ ShowfotoStackViewFavoriteItem() [1/2]

ShowFoto::ShowfotoStackViewFavoriteItem::ShowfotoStackViewFavoriteItem ( QTreeWidget *const  parent)
explicit

References FavoriteRoot, and setFavoriteType().

◆ ShowfotoStackViewFavoriteItem() [2/2]

ShowFoto::ShowfotoStackViewFavoriteItem::ShowfotoStackViewFavoriteItem ( QTreeWidgetItem *const  parent,
int  favType 
)

References setFavoriteType().

◆ ~ShowfotoStackViewFavoriteItem()

ShowFoto::ShowfotoStackViewFavoriteItem::~ShowfotoStackViewFavoriteItem ( )
override

Member Function Documentation

◆ currentUrl()

QUrl ShowFoto::ShowfotoStackViewFavoriteItem::currentUrl ( ) const

◆ date()

QDate ShowFoto::ShowfotoStackViewFavoriteItem::date ( ) const

◆ description()

QString ShowFoto::ShowfotoStackViewFavoriteItem::description ( ) const

◆ favoriteType()

int ShowFoto::ShowfotoStackViewFavoriteItem::favoriteType ( ) const

◆ hierarchy()

◆ hierarchyFromParent()

QString ShowFoto::ShowfotoStackViewFavoriteItem::hierarchyFromParent ( const QString &  name,
ShowfotoStackViewFavoriteItem *const  pitem 
)
static

Helper static method to get hierarchy path from item. 'name' is the title and 'pitem" the parent instance.

References hierarchy(), and name().

Referenced by setName().

◆ name()

QString ShowFoto::ShowfotoStackViewFavoriteItem::name ( ) const

◆ setCurrentUrl()

void ShowFoto::ShowfotoStackViewFavoriteItem::setCurrentUrl ( const QUrl &  url)

◆ setDate()

void ShowFoto::ShowfotoStackViewFavoriteItem::setDate ( const QDate &  date)

◆ setDescription()

void ShowFoto::ShowfotoStackViewFavoriteItem::setDescription ( const QString &  desc)

◆ setFavoriteType()

void ShowFoto::ShowfotoStackViewFavoriteItem::setFavoriteType ( int  favoriteType)

◆ setHierarchy()

void ShowFoto::ShowfotoStackViewFavoriteItem::setHierarchy ( const QString &  desc)

◆ setName()

void ShowFoto::ShowfotoStackViewFavoriteItem::setName ( const QString &  name)

◆ setUrls()

void ShowFoto::ShowfotoStackViewFavoriteItem::setUrls ( const QList< QUrl > &  urls)

◆ urls()

◆ urlsToPaths()

QStringList ShowFoto::ShowfotoStackViewFavoriteItem::urlsToPaths ( ) const

Helper method to get a list local paths from image urls included in favorite item.

References urls().

Referenced by ShowFoto::ShowfotoStackViewFavoriteList::slotLoadContents().


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