[Kde-silk] [Draft]PictureProvider DataEngine

Hayri Bakici thehayro at gmail.com
Thu Oct 29 12:48:45 CET 2009


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


More information about the Kde-silk mailing list