Ejemplo n.º 1
0
static Eina_Bool _progress_cb(void *data, int type, void *event)
{
        Ecore_Con_Event_Url_Progress *ev = reinterpret_cast<Ecore_Con_Event_Url_Progress *>(event);
        FileDownloader *fd = reinterpret_cast<FileDownloader *>(data);

        if (data == ecore_con_url_data_get(ev->url_con))
        {
                fd->progressCb(ev->down.now, ev->down.total);
        }

        return ECORE_CALLBACK_RENEW;
}