mirror of
https://github.com/meganz/MEGAcmd
synced 2025-08-29 12:57:44 +00:00
stop using deprecated MegaApi::sendEvent version
This commit is contained in:
parent
a041c2e40c
commit
83c7edc512
@ -458,7 +458,7 @@ void MegaCmdMegaListener::onSyncAdded(MegaApi *api, MegaSync *sync)
|
||||
if (!ConfigurationManager::getConfigurationValue("firstSyncConfigured", false))
|
||||
{
|
||||
api->sendEvent(MCMD_EVENT_FIRST_CONFIGURED_SYNC_ID,
|
||||
MCMD_EVENT_FIRST_CONFIGURED_SYNC_MESSAGE);
|
||||
MCMD_EVENT_FIRST_CONFIGURED_SYNC_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/);
|
||||
ConfigurationManager::savePropertyValue("firstSyncConfigured", true);
|
||||
}
|
||||
}
|
||||
|
@ -3499,7 +3499,7 @@ bool executeUpdater(bool *restartRequired, bool doNotInstall = false)
|
||||
if (*restartRequired && api)
|
||||
{
|
||||
std::unique_ptr<MegaCmdListener> megaCmdListener{new MegaCmdListener(api, NULL)};
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_RESTART_ID,MCMD_EVENT_UPDATE_RESTART_MESSAGE, megaCmdListener.get());
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_RESTART_ID,MCMD_EVENT_UPDATE_RESTART_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/, megaCmdListener.get());
|
||||
megaCmdListener->wait();
|
||||
}
|
||||
|
||||
@ -4112,7 +4112,7 @@ void* checkForUpdates(void *param)
|
||||
if (stopcheckingforUpdaters) break;
|
||||
|
||||
std::unique_ptr<MegaCmdListener> megaCmdListener{new MegaCmdListener(api, NULL)};
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_START_ID,MCMD_EVENT_UPDATE_START_MESSAGE, megaCmdListener.get());
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_START_ID,MCMD_EVENT_UPDATE_START_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/, megaCmdListener.get());
|
||||
megaCmdListener->wait();
|
||||
|
||||
broadcastMessage(" Executing update !");
|
||||
@ -5191,7 +5191,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (ConfigurationManager::getHasBeenUpdated())
|
||||
{
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_ID,MCMD_EVENT_UPDATE_MESSAGE);
|
||||
api->sendEvent(MCMD_EVENT_UPDATE_ID,MCMD_EVENT_UPDATE_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/);
|
||||
stringstream ss;
|
||||
ss << "MEGAcmd has been updated to version " << MEGACMD_MAJOR_VERSION << "." << MEGACMD_MINOR_VERSION << "." << MEGACMD_MICRO_VERSION << "." << MEGACMD_BUILD_ID << " - code " << MEGACMD_CODE_VERSION << endl;
|
||||
broadcastMessage(ss.str(), true);
|
||||
|
@ -2514,7 +2514,7 @@ bool MegaCmdExecuter::actUponFetchNodes(MegaApi *api, SynchronousRequestListener
|
||||
LOG_err << "Getting up to date with last changes in your account is taking more than expected. MEGAcmd will continue. "
|
||||
"Caveat: you may be interacting with an out-dated version of your account.";
|
||||
api->sendEvent(MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT,
|
||||
MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT_MESSAGE);
|
||||
MCMD_EVENT_WAITED_TOO_LONG_FOR_NODES_CURRENT_MESSAGE, false/*JourneyId*/, nullptr/*viewId*/);
|
||||
|
||||
discardGet = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user