digiKam
Digikam::BalooWrap Class Reference

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

+ Inheritance diagram for Digikam::BalooWrap:

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 BalooWrapinstance ()
 
static bool isCreated ()
 

Static Public Attributes

static QPointer< BalooWrapinternalPtr = QPointer<BalooWrap>()
 internalPtr - singleton implementation More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BalooWrap()

Digikam::BalooWrap::BalooWrap ( )

Referenced by instance().

◆ ~BalooWrap()

Digikam::BalooWrap::~BalooWrap ( )
override

Member Function Documentation

◆ getSemanticInfo()

BalooInfo Digikam::BalooWrap::getSemanticInfo ( const QUrl &  url) const

getSemanticInfo - used by ItemScanner to retrieve all information tags, comment, rating

Parameters
url- image url
Returns
- container class for tags, comment, rating

References Digikam::BalooInfo::comment, Digikam::BalooInfo::rating, and Digikam::BalooInfo::tags.

Referenced by Digikam::ItemScanner::scanBalooInfo().

◆ getSyncToBaloo()

bool Digikam::BalooWrap::getSyncToBaloo ( ) const

◆ getSyncToDigikam()

bool Digikam::BalooWrap::getSyncToDigikam ( ) const

◆ instance()

◆ isCreated()

bool Digikam::BalooWrap::isCreated ( )
static

References internalPtr.

Referenced by Digikam::DigikamApp::~DigikamApp().

◆ setSemanticInfo()

void Digikam::BalooWrap::setSemanticInfo ( const QUrl &  url,
const BalooInfo bInfo 
)

setSemanticInfo - generic method to set all data from digiKam to Baloo

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

◆ setSyncToBaloo()

void Digikam::BalooWrap::setSyncToBaloo ( bool  value)

References value.

◆ setSyncToDigikam()

void Digikam::BalooWrap::setSyncToDigikam ( bool  value)

References value.

Member Data Documentation

◆ internalPtr

QPointer< BalooWrap > Digikam::BalooWrap::internalPtr = QPointer<BalooWrap>()
static

internalPtr - singleton implementation

Referenced by instance(), isCreated(), and Digikam::DigikamApp::~DigikamApp().


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