[Kde-silk] [Draft]PictureProvider DataEngine

Alessandro Diaferia alediaferia at gmail.com
Thu Oct 29 17:54:40 CET 2009


2009/10/29 Hayri Bakici <thehayro at gmail.com>

No, because i didn't get an "OK". I started to write it, but it needed
> to be discussed.
>
> greetz
>
> On Thu, Oct 29, 2009 at 8:46 AM, Alessandro Diaferia
> <alediaferia at gmail.com> wrote:
> >
> >
> > 2009/10/16 Onur - Hayri Bakici <thehayro at gmail.com>
> >>
> >> Hi,
> >>
> >> i started to plan the pictureprovider DataEngine class.
> >> since flickr has a complete different api-structure than picasa i had
> the
> >> idea
> >> to make two packages: PicturePackage and AlbumPackage.
> >> The reason: with picasa, every picture is in at least one album. so if
> we
> >> are
> >> searching for pictures in picasa, we also get information in which album
> >> they
> >> belong. In flickr it is not that way. pictures in flickr do not
> >> necessarily
> >> belong to an album. Also, in flickr, to get the whole information about
> a
> >> picture, we have to call another query. Nevertheless, i think the
> >> picturePackage-struct should have an albumId.
> >> my idea of the packages:
> >>
> >>
> >> typedef struct {
> >>    QString id;
> >>    QDate published;
> >>    QDate updated;
> >>    QString title;
> >>    QString link;
> >>    uint width;
> >>    uint height;
> >>    uint size; //necessary?
> >>    QString thumbnail;
> >>    QStringList tags;
> >> } PicturePackage;
> >>
> >> typedef struct {
> >>    QString id;
> >>    QString title;
> >>    QString author;
> >>    QList<PicturePackage*> photos;
> >> } AlbumPackage;
> >>
> >>
> >> In the picasa DataEngine (picasainterface.cpp) is a method
> listAllAlbums.
> >> in
> >> this case the AlbumPackage can be used? What do you think?
> >>
> >> I did some research and i found some other Image Host sites such as
> >> imageShack, Fotolog, CrunchBase and photoBucket. Of course i bumped into
> >> some limits:
> >> * ImageShack has (at first sight) no fuction call to search for
> pictures,
> >> only to upload and manipulate images and albums.
> >> * FotoLog can (as far as i know) only be accessed as a facebook app
> >> * Crunchbase's response method is only in JSON
> >>
> >> Photobucket responses in xml, like flickr and picasa.
> >> So anyways, about the queries.
> >> sice some image Host sites also provide videos, i suggest to make the
> >> queries like in the videoProvider query.
> >>
> >> greetz
> >>
> >> greetz
> >> _______________________________________________
> >> Kde-silk mailing list
> >> Kde-silk at kde.org
> >> https://mail.kde.org/mailman/listinfo/kde-silk
> >
> >
> > Sorry for my sporadic phantoms people... I just wanted to know what's the
> > status of this dataengine. As sebas said the idea makes sense but has the
> > dataengine been written right now?
> >
> > Cheers
> > --
> > Alessandro Diaferia
> > KDE Developer
> > KDE e.V. member
> >
> >
> > _______________________________________________
> > Kde-silk mailing list
> > Kde-silk at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-silk
> >
> >
> _______________________________________________
> Kde-silk mailing list
> Kde-silk at kde.org
> https://mail.kde.org/mailman/listinfo/kde-silk
>

You got a "That makes sense" from sebas, and got some guidelines by me at
the beginning :)
Anyway it's an OK from me, keep up the work!


Cheers

-- 
Alessandro Diaferia
KDE Developer
KDE e.V. member
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-silk/attachments/20091029/a663b864/attachment.htm 


More information about the Kde-silk mailing list