digiKam
Digikam::IOJobData Class Reference

Public Types

enum  FileConflict { Continue = 0 , AutoRename , Overwrite }
 
enum  Operation {
  Unknown = 0 , CopyAlbum , CopyImage , CopyFiles ,
  CopyToExt , MoveAlbum , MoveImage , MoveFiles ,
  Restore , Rename , Delete , Trash ,
  Empty
}
 

Public Member Functions

PAlbumdestAlbum () const
 
QUrl destUrl (const QUrl &srcUrl=QUrl()) const
 
int fileConflict () const
 
ItemInfo findItemInfo (const QUrl &url) const
 
QUrl getNextUrl () const
 
QString getProgressId () const
 
 IOJobData (int operation, const DTrashItemInfoList &infos)
 
 IOJobData (int operation, const ItemInfo &info, const QString &newName, bool overwrite=false)
 
 IOJobData (int operation, const QList< ItemInfo > &infos, const QUrl &dest)
 
 IOJobData (int operation, const QList< ItemInfo > &infos, PAlbum *const dest=nullptr)
 
 IOJobData (int operation, const QList< QUrl > &urls, const QUrl &dest)
 
 IOJobData (int operation, const QList< QUrl > &urls, PAlbum *const dest=nullptr)
 
 IOJobData (int operation, PAlbum *const src, PAlbum *const dest=nullptr)
 
QList< ItemInfoitemInfos () const
 
QDateTime jobTime () const
 
int operation () const
 
void setDestUrl (const QUrl &srcUrl, const QUrl &destUrl)
 
void setFileConflict (int fc)
 
void setItemInfos (const QList< ItemInfo > &infos)
 
void setProgressId (const QString &id)
 
void setSourceUrls (const QList< QUrl > &urls)
 
QList< QUrl > sourceUrls () const
 
PAlbumsrcAlbum () const
 
DTrashItemInfoList trashItems () const
 
 ~IOJobData ()
 

Member Enumeration Documentation

◆ FileConflict

Enumerator
Continue 
AutoRename 
Overwrite 

◆ Operation

Enumerator
Unknown 
CopyAlbum 
CopyImage 
CopyFiles 
CopyToExt 
MoveAlbum 
MoveImage 
MoveFiles 
Restore 
Rename 
Delete 
Trash 
Empty 

Constructor & Destructor Documentation

◆ IOJobData() [1/7]

Digikam::IOJobData::IOJobData ( int  operation,
const QList< ItemInfo > &  infos,
PAlbum *const  dest = nullptr 
)
explicit

References operation(), and setItemInfos().

◆ IOJobData() [2/7]

Digikam::IOJobData::IOJobData ( int  operation,
const QList< ItemInfo > &  infos,
const QUrl &  dest 
)
explicit

References operation(), and setItemInfos().

◆ IOJobData() [3/7]

Digikam::IOJobData::IOJobData ( int  operation,
const QList< QUrl > &  urls,
PAlbum *const  dest = nullptr 
)
explicit

References operation().

◆ IOJobData() [4/7]

Digikam::IOJobData::IOJobData ( int  operation,
PAlbum *const  src,
PAlbum *const  dest = nullptr 
)
explicit

References operation().

◆ IOJobData() [5/7]

Digikam::IOJobData::IOJobData ( int  operation,
const QList< QUrl > &  urls,
const QUrl &  dest 
)
explicit

References operation().

◆ IOJobData() [6/7]

Digikam::IOJobData::IOJobData ( int  operation,
const ItemInfo info,
const QString &  newName,
bool  overwrite = false 
)
explicit

◆ IOJobData() [7/7]

Digikam::IOJobData::IOJobData ( int  operation,
const DTrashItemInfoList infos 
)
explicit

◆ ~IOJobData()

Digikam::IOJobData::~IOJobData ( )

Member Function Documentation

◆ destAlbum()

PAlbum * Digikam::IOJobData::destAlbum ( ) const

◆ destUrl()

QUrl Digikam::IOJobData::destUrl ( const QUrl &  srcUrl = QUrl()) const

◆ fileConflict()

int Digikam::IOJobData::fileConflict ( ) const

◆ findItemInfo()

ItemInfo Digikam::IOJobData::findItemInfo ( const QUrl &  url) const

◆ getNextUrl()

QUrl Digikam::IOJobData::getNextUrl ( ) const

◆ getProgressId()

QString Digikam::IOJobData::getProgressId ( ) const

◆ itemInfos()

QList< ItemInfo > Digikam::IOJobData::itemInfos ( ) const

◆ jobTime()

QDateTime Digikam::IOJobData::jobTime ( ) const

◆ operation()

int Digikam::IOJobData::operation ( ) const

◆ setDestUrl()

void Digikam::IOJobData::setDestUrl ( const QUrl &  srcUrl,
const QUrl &  destUrl 
)

References destUrl().

Referenced by Digikam::CopyOrMoveJob::run().

◆ setFileConflict()

void Digikam::IOJobData::setFileConflict ( int  fc)

◆ setItemInfos()

void Digikam::IOJobData::setItemInfos ( const QList< ItemInfo > &  infos)

References Digikam::ItemInfo::fileUrl().

Referenced by IOJobData().

◆ setProgressId()

void Digikam::IOJobData::setProgressId ( const QString &  id)

◆ setSourceUrls()

void Digikam::IOJobData::setSourceUrls ( const QList< QUrl > &  urls)

◆ sourceUrls()

QList< QUrl > Digikam::IOJobData::sourceUrls ( ) const

◆ srcAlbum()

PAlbum * Digikam::IOJobData::srcAlbum ( ) const

◆ trashItems()

DTrashItemInfoList Digikam::IOJobData::trashItems ( ) const

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