[Kde-imaging] Reg Libkipi attributes() function

Tom Albers tomalbers at kde.nl
Tue Jul 18 20:08:32 CEST 2006


Maybe it's prettier to move the call to the if statement...
I'll do the same for sendimages.

Toma

Op dinsdag 18 juli 2006 19:56, schreef Vardhman Jain:
> Hi,
>      I am little confused whether I should now change the code of
> flickrexport plugin to check the hasFeature(HostSupportsTags) before using
> the attributes function or not. The code can very well just call the
> attributes() function without checking the feature as it would
> automatically get an empty string list in case application doesn't support
> the "tags" key.
>
> Let me know ur opinion.
>
> Vardhman
>
> On 7/18/06, Tom Albers <tomalbers at kde.nl> wrote:
> > Op dinsdag 18 juli 2006 19:06, schreef u:
> > > Op maandag 17 juli 2006 22:18, schreef Vardhman Jain:
> > > >        I have started breaking libkipi binary compatibility (:)).
> > > > Just added the HostSupportsTags feature in the enum list of features.
> > > > Now Applications can support this feature.
> > >
> > > Do any app do that already? I tried digikam trunk, but your code from
> > > flickr applied to sendimages:
> > >
> > >             //Tags from the database
> > >             QMap <QString, QVariant> attribs=info.attributes();
> > >             QStringList tagsFromDatabase;
> > >
> > >             if (m_interface->hasFeature(KIPI::HostSupportsTags))
> > >                 tagsFromDatabase=attribs["tags"].asStringList();
> > >
> > >             kdDebug() << "Tags: " << tagsFromDatabase << endl;
> > >
> > > Stays empty for me....
> > >
> > > Toma
> >
> > Ignore that, I found the comment in digiKam. I think the comment should
> > be removed by the way.
> >
> > Toma
> > _______________________________________________
> > Kde-imaging mailing list
> > Kde-imaging at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-imaging


More information about the Kde-imaging mailing list