Changeset View
Changeset View
Standalone View
Standalone View
src/client/client.cpp
| Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Lines | #endif | ||||
| auto Client::loadEventsFromStorage(immer::map<std::string, EventList> timelineEvents, immer::map<std::string, EventList> relatedEvents) const -> PromiseT | auto Client::loadEventsFromStorage(immer::map<std::string, EventList> timelineEvents, immer::map<std::string, EventList> relatedEvents) const -> PromiseT | ||||
| { | { | ||||
| return m_ctx.dispatch(LoadEventsFromStorageAction{ | return m_ctx.dispatch(LoadEventsFromStorageAction{ | ||||
| std::move(timelineEvents), | std::move(timelineEvents), | ||||
| std::move(relatedEvents), | std::move(relatedEvents), | ||||
| }); | }); | ||||
| } | } | ||||
| auto Client::importFromKeyBackupFile(std::string fileContent, std::string password) const -> PromiseT | |||||
| { | |||||
| return m_ctx.dispatch(ImportFromKeyBackupFileAction{ | |||||
| std::move(fileContent), | |||||
| std::move(password), | |||||
| }); | |||||
| } | |||||
| } | } | ||||