[Digikam-devel] Signal, when item count of album changed

Mathias junglefieber at gmx.de
Mon Oct 23 12:07:18 BST 2006


On Thursday 19 October 2006 20:12, Marcel Wiesweg wrote:
> > Hello,
> >
> > I am trying to "fix" [Bug 96388]. I have to know which signal I have to
> > use to verify that I am informed about changes in item count in an album.
> >
> > Am I right, when I am fetching the signals from Digikam::AlbumLister
> > o void signalNewItems(const ImageInfoList& items);
> > o void signalDeleteItem(ImageInfo* item);
> > o void signalNewFilteredItems(const ImageInfoList& items);
> > o void signalDeleteFilteredItem(ImageInfo* item);
> > o void signalClear();
> >
> > or have I to consider something else?
>
> It seems to me these are the signals to be watched, but that's only from
> looking at the code, so you will have to try and test.

I have implemented a new signal, which collects all affected albums during a 
KIO job and which is emitted when the job is finished.

New items are recognized and the count of items is updated but this effect is 
not reached when deleting images.

I send my current patch (it is not yet complete) but I have no clue and cannot 
continue. Perhaps somebody can have a look at the code and give me a hint 
where the problem is.

Is there an other way to get the item count of an album?

Mathias

>
> Marcel
>
> > Mathias
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug96388-1.diff
Type: text/x-diff
Size: 7917 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20061023/d0ed0da7/attachment.diff>


More information about the Digikam-devel mailing list