bool CWizApiBase::callClientKeepAlive() { CWizApiParamBase param; param.AddString("token", WizGlobal()->token()); return callXmlRpc(SyncMethod_ClientKeepAlive, ¶m); }
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, ¶m); }
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, ¶m); }
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, ¶m); } else { m_strUserId = strUserId; m_strPasswd = strPassword; return callClientKeepAlive(); } }
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, ¶m); }