https://bugs.kde.org/show_bug.cgi?id=426859

--- Comment #6 from caulier.gil...@gmail.com ---
Hi Le,

Unfortunately, the new patch do not the problem. The plugin still depend of
digiKam database with DIO/DItemInfo class.

You cannot use these classes in the plugin which is also available in Showfoto
and it do not have the database, as explained in comment #4.

In other word, the plugin must depend on digiKam core shared lib at linking
time, not digiKam database shared lib.

To wrap around this problem, DMetaInfoIface (showfoto) and DBInfoIface
(digiKam) interface have been created and based on DInfoInterface abstract
class.

A DInfoInterface instance is always available in the plugin instance and must
be used to preform the item operation. Depending of the host application
running the plugin,  DInfoInterface instance == DMetaInfoIface | DBInfoIface.

>From your patch, your customized digiKam code must be moved on a re-implemented
method to DBInfoIface, and your Showfoto code must be moved on a re-implemented
method from DMetaInfoIface. Calling the generic method from the plugin
DInfoInterface instance at run time will delegate on the right host method
re-implemented.

This is a use case of abstract class with interface signatures in oriented
programming language :

https://en.wikipedia.org/wiki/Class_(computer_programming)#Abstract_and_concrete

Best

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to