<br><br><div class="gmail_quote">2009/10/16 Onur - Hayri Bakici <span dir="ltr">&lt;<a href="mailto:thehayro@gmail.com">thehayro@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
i started to plan the pictureprovider DataEngine class.<br>
since flickr has a complete different api-structure than picasa i had the idea<br>
to make two packages: PicturePackage and AlbumPackage.<br>
The reason: with picasa, every picture is in at least one album. so if we are<br>
searching for pictures in picasa, we also get information in which album they<br>
belong. In flickr it is not that way. pictures in flickr do not necessarily<br>
belong to an album. Also, in flickr, to get the whole information about a<br>
picture, we have to call another query. Nevertheless, i think the<br>
picturePackage-struct should have an albumId.<br>
my idea of the packages:<br>
<br>
<br>
typedef struct {<br>
    QString id;<br>
    QDate published;<br>
    QDate updated;<br>
    QString title;<br>
    QString link;<br>
    uint width;<br>
    uint height;<br>
    uint size; //necessary?<br>
    QString thumbnail;<br>
    QStringList tags;<br>
} PicturePackage;<br>
<br>
typedef struct {<br>
    QString id;<br>
    QString title;<br>
    QString author;<br>
    QList&lt;PicturePackage*&gt; photos;<br>
} AlbumPackage;<br>
<br>
<br>
In the picasa DataEngine (picasainterface.cpp) is a method listAllAlbums. in<br>
this case the AlbumPackage can be used? What do you think?<br>
<br>
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:<br>
* ImageShack has (at first sight) no fuction call to search for pictures, only to upload and manipulate images and albums.<br>
* FotoLog can (as far as i know) only be accessed as a facebook app<br>
* Crunchbase&#39;s response method is only in JSON<br>
<br>
Photobucket responses in xml, like flickr and picasa.<br>
So anyways, about the queries.<br>
sice some image Host sites also provide videos, i suggest to make the queries like in the videoProvider query.<br>
<br>
greetz<br>
<br>
greetz<br>
_______________________________________________<br>
Kde-silk mailing list<br>
<a href="mailto:Kde-silk@kde.org">Kde-silk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-silk" target="_blank">https://mail.kde.org/mailman/listinfo/kde-silk</a><br>
</blockquote></div><br><br clear="all">Sorry for my sporadic phantoms people... I just wanted to know what&#39;s the status of this dataengine. As sebas said the idea makes sense but has the dataengine been written right now?<br>
<br>Cheers<br>-- <br>Alessandro Diaferia<br>KDE Developer<br>KDE e.V. member<br><br>