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

Method setMessageReadStatus_impl

src/sync/WizAsyncApi.cpp:61–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void WizAsyncApi::setMessageReadStatus_impl(const QString& ids, bool bRead)
62{
63 QString strToken = WizToken::token();
64 qDebug() << "set message read status, strken:" << strToken;
65
66 if (strToken.isEmpty()) {
67 return;
68 }
69
70 WizKMAccountsServer aServer;
71
72 WIZUSERINFO info = WizToken::userInfo();
73 info.strToken = strToken;
74 aServer.setUserInfo(info);
75
76 bool ret = aServer.setMessageReadStatus(ids, bRead);
77 qDebug() << "set message read status : " << ret;
78 if (!ret)
79 {
80 m_nErrorCode = aServer.getLastErrorCode();
81 m_strErrorMessage = aServer.getLastErrorMessage();
82 }
83 else
84 {
85 emit uploadMessageReadStatusFinished(ids);
86 }
87}
88
89void WizAsyncApi::setMessageDeleteStatus_impl(const QString& ids, bool bDelete)
90{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected