Exemple #1
0
bool CWizApiBase::callClientKeepAlive()
{
    CWizApiParamBase param;
    param.AddString("token", WizGlobal()->token());

    return callXmlRpc(SyncMethod_ClientKeepAlive, &param);
}
Exemple #2
0
bool CWizApiBase::callGetUserCert(const QString& strUserId, const QString& strPassword)
{
    CWizApiParamBase param;
    param.AddString("user_id", MakeXmlRpcUserId(strUserId));
    param.AddString("password", MakeXmlRpcPassword(strPassword));

    return callXmlRpc(SyncMethod_GetUserCert, &param);
}
Exemple #3
0
bool CWizApiBase::callClientLogin(const QString& strUserId, const QString& strPassword)
{
    m_user = WIZUSERINFO();

    CWizApiParamBase param;
    param.AddString("user_id", MakeXmlRpcUserId(strUserId));
    param.AddString("password", MakeXmlRpcPassword(strPassword));

    return callXmlRpc(SyncMethod_ClientLogin, &param);
}
Exemple #4
0
bool CWizApiBase::callClientLogin(const QString& strUserId, const QString& strPassword)
{
    if (WizGlobal()->token().isEmpty()) {
        CWizApiParamBase param;
        param.AddString("user_id", MakeXmlRpcUserId(strUserId));
        param.AddString("password", MakeXmlRpcPassword(strPassword));

        return callXmlRpc(SyncMethod_ClientLogin, &param);
    } else {
        m_strUserId = strUserId;
        m_strPasswd = strPassword;

        return callClientKeepAlive();
    }
}
Exemple #5
0
bool CWizApiBase::callCreateAccount(const CString& strUserId, const CString& strPassword)
{
    CWizApiParamBase param;
    param.AddString("user_id", MakeXmlRpcUserId(strUserId));
    param.AddString("password", MakeXmlRpcPassword(strPassword));

#if defined Q_OS_MAC
    param.AddString("invite_code", "129ce11c");
    param.AddString("product_name", "qtMac");
#elif defined Q_OS_LINUX
    param.AddString("invite_code", "7abd8f4a");
    param.AddString("product_name", "qtLinux");
#else
    param.AddString("invite_code", "8480c6d7");
    param.AddString("product_name", "qtWindows");
#endif

    return callXmlRpc(SyncMethod_CreateAccount, &param);
}