コード例 #1
0
ファイル: wizapi.cpp プロジェクト: liuyd07/WizQTClient
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);
}
コード例 #2
0
ファイル: wizapi.cpp プロジェクト: snjxiaojing/WizQTClient
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);
}
コード例 #3
0
ファイル: wizapi.cpp プロジェクト: liuyd07/WizQTClient
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();
    }
}
コード例 #4
0
ファイル: wizapi.cpp プロジェクト: liuyd07/WizQTClient
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);
}