Ejemplo n.º 1
0
Eina_Bool _timeout_poll_idler_cb(void *data)
{
    PollObject *obj = reinterpret_cast<PollObject *>(data);
    if (!obj) return ECORE_CALLBACK_CANCEL;

    PollListenner::Instance().Unregister(obj->getUUID());

    //delete the ecore_idler
    return ECORE_CALLBACK_CANCEL;
}
Ejemplo n.º 2
0
bool PollListenner::GetEvents(string uuid, Params &events)
{
    if (pollobjects.find(uuid) == pollobjects.end())
    {
        cDebugDom("poll_listener") << "uuid:" << uuid << " not found ! ";
        return false;
    }

    PollObject *o = pollobjects[uuid];

    events = o->getEvents();

    o->getEvents().clear();
    o->ResetTimer();

    return true;
}
Ejemplo n.º 3
0
bool PollListenner::GetEvents(string uuid, Params &events)
{
        if (pollobjects.find(uuid) == pollobjects.end())
        {
                Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::GetEvents uuid:" << uuid << " not found ! " << log4cpp::eol;
                return false;
        }

        PollObject *o = pollobjects[uuid];

        events = o->getEvents();

        o->getEvents().clear();
        o->ResetTimer();

        return true;
}