Пример #1
0
void AutoOnline::Check() {
    bool running = IsPoeRunning();

    if (running || previous_status_) {
        SendOnlineUpdate(running);
    }
    previous_status_ = running;

    emit Update(running);
}
Пример #2
0
void AutoOnline::Check() {
    bool running = is_poe_running_locally();
    if (IsRemoteScriptSet()){
        running = is_poe_running_remotely(process_script_);
    } else {
        running = is_poe_running_locally();
    }

    if (running || previous_status_) {
        SendOnlineUpdate(running);
    }

    previous_status_ = running;

    emit Update(running);
}