MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / setMessageDeleteStatus_impl

Method setMessageDeleteStatus_impl

src/sync/WizAsyncApi.cpp:89–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void WizAsyncApi::setMessageDeleteStatus_impl(const QString& ids, bool bDelete)
90{
91 QString strToken = WizToken::token();
92 if (strToken.isEmpty()) {
93 return;
94 }
95
96 WizKMAccountsServer aServer;
97
98 WIZUSERINFO info = WizToken::userInfo();
99 info.strToken = strToken;
100 aServer.setUserInfo(info);
101
102 bool ret = aServer.setMessageDeleteStatus(ids, bDelete);
103 if (ret)
104 {
105 qDebug() << "[MessageStatus]Upload message delete status OK";
106 emit uploadMessageDeleteStatusFinished(ids);
107 }
108 else
109 {
110 m_nErrorCode = aServer.getLastErrorCode();
111 m_strErrorMessage = aServer.getLastErrorMessage();
112 qDebug() << "[MessageStatus]Upload message delete status error : " << m_nErrorCode << m_strErrorMessage;
113 }
114 //
115}

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.80
setUserInfoMethod · 0.45
getLastErrorCodeMethod · 0.45
getLastErrorMessageMethod · 0.45

Tested by

no test coverage detected