Esempio n. 1
0
void deal_chioce()
{
    char chioce = 0;
    scanf("%c",&chioce);
    getchar();

    switch(chioce)
    {
        case '1':
            save_pass_word();
            break;
        case '2':
            get_pass_word();
            break;
        case '3':
            update_pass_word();
            break;
        case '4':
            remove_account();
            break;
        case '0':
            exit(0);
        default:
            system("cls");
            user_face();
            break;
    }
}
Esempio n. 2
0
/**
 * @brief Login::process_logout
 *      Deletes cookies, restores the class and UI to the initial state.
 * @remarks
 *      DEPRECATED: Delete cookies if 'remember_login' is true, because they are cleaned in complete_login if not.
 *      UPDATE:     Cookies will always be cleared because with multiple logins we dont know the option chosen at login.
 * @param reply
 *      The reply from the logout request.
 * @date
 *      Created:  Filipe, 7 Mar 2014
 *      Modified: Filipe, 7 Jun 2014
 */
void Login::process_logout(QNetworkReply *reply)
{
    if(reply->error() == QNetworkReply::NoError)
    {
        if(network_manager->cookiejar()->load(username, true) > 0)
        {
            network_manager->cookiejar()->clear(QStringList("steamMachineAuth"));
            network_manager->cookiejar()->save();
        }
        else
        {
            output("Could not load the cookies from this account.", 1);
        }

        output("Logged out of " + username + ".", 1);

        state = persistent;
        emit remove_account(username);
    }
    else
    {
        output("Network Error: " + reply->errorString(), 1);
        emit unlock_login();
    }

    reply->deleteLater();
}
static void
on_account_removed (GoaClient   *client,
                    GoaObject   *object,
                    gpointer     user_data)
{
  GoaPanelAccountsModel *model = GOA_PANEL_ACCOUNTS_MODEL (user_data);
  remove_account (model, object);
}
Esempio n. 4
0
bool SB_Timer_Comp_Queue::remove_list(SB_DQL_Type *pp_item) {
    bool lv_ret;

    lv_ret = SB_Ts_D_Queue::remove_list(pp_item);
    if (lv_ret) {
        if (gv_ms_trace_params)
            remove_account(pp_item);
    }
    return lv_ret;
}
Esempio n. 5
0
void *SB_Timer_Comp_Queue::remove() {
    void *lp_ret;

    lp_ret = SB_Ts_D_Queue::remove();
    if (lp_ret != NULL) {
        if (gv_ms_trace_params)
            remove_account(lp_ret);
    }
    return lp_ret;
}