digiKam
|
The BalooWrap class is a singleton class which offer functionality for reading and writing image comment, tags and rating from Baloo to digiKam and from digiKam to Baloo. More...
Public Member Functions | |
BalooWrap () | |
BalooInfo | getSemanticInfo (const QUrl &url) const |
getSemanticInfo - used by ItemScanner to retrieve all information tags, comment, rating More... | |
bool | getSyncToBaloo () const |
bool | getSyncToDigikam () const |
void | setSemanticInfo (const QUrl &url, const BalooInfo &bInfo) |
setSemanticInfo - generic method to set all data from digiKam to Baloo More... | |
void | setSyncToBaloo (bool value) |
void | setSyncToDigikam (bool value) |
~BalooWrap () override | |
Static Public Member Functions | |
static BalooWrap * | instance () |
static bool | isCreated () |
Static Public Attributes | |
static QPointer< BalooWrap > | internalPtr = QPointer<BalooWrap>() |
internalPtr - singleton implementation More... | |
The BalooWrap class is a singleton class which offer functionality for reading and writing image comment, tags and rating from Baloo to digiKam and from digiKam to Baloo.
The singleton functionality is required because it also watches for changes in Baloo and notify digiKam, so it could trigger a scan
Digikam::BalooWrap::BalooWrap | ( | ) |
Referenced by instance().
|
override |
BalooInfo Digikam::BalooWrap::getSemanticInfo | ( | const QUrl & | url | ) | const |
getSemanticInfo - used by ItemScanner to retrieve all information tags, comment, rating
url | - image url |
References Digikam::BalooInfo::comment, Digikam::BalooInfo::rating, and Digikam::BalooInfo::tags.
Referenced by Digikam::ItemScanner::scanBalooInfo().
bool Digikam::BalooWrap::getSyncToBaloo | ( | ) | const |
Referenced by Digikam::MetadataHub::writeToBaloo().
bool Digikam::BalooWrap::getSyncToDigikam | ( | ) | const |
Referenced by Digikam::ItemScanner::scanBalooInfo().
|
static |
References BalooWrap(), and internalPtr.
Referenced by Digikam::DigikamApp::DigikamApp(), Digikam::ItemScanner::scanBalooInfo(), and Digikam::MetadataHub::writeToBaloo().
|
static |
References internalPtr.
Referenced by Digikam::DigikamApp::~DigikamApp().
void Digikam::BalooWrap::setSemanticInfo | ( | const QUrl & | url, |
const BalooInfo & | bInfo | ||
) |
setSemanticInfo - generic method to set all data from digiKam to Baloo
url | - image url |
bInfo | - container class for tags, comment, rating |
References Digikam::BalooInfo::comment, Digikam::BalooInfo::rating, and Digikam::BalooInfo::tags.
Referenced by Digikam::MetadataHub::writeToBaloo().
void Digikam::BalooWrap::setSyncToBaloo | ( | bool | value | ) |
References value.
void Digikam::BalooWrap::setSyncToDigikam | ( | bool | value | ) |
References value.
internalPtr - singleton implementation
Referenced by instance(), isCreated(), and Digikam::DigikamApp::~DigikamApp().