Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/NativeModules/CommCoreModule.h
#pragma once | #pragma once | ||||
#include "../CryptoTools/CryptoModule.h" | #include "../CryptoTools/CryptoModule.h" | ||||
#include "../Tools/CommMMKV.h" | #include "../Tools/CommMMKV.h" | ||||
#include "../Tools/CommSecureStore.h" | #include "../Tools/CommSecureStore.h" | ||||
#include "../Tools/WorkerThread.h" | #include "../Tools/WorkerThread.h" | ||||
#include "../_generated/commJSI.h" | #include "../_generated/commJSI.h" | ||||
#include "PersistentStorageUtilities/DataStores/CommunityStore.h" | #include "PersistentStorageUtilities/DataStores/CommunityStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/DraftStore.h" | #include "PersistentStorageUtilities/DataStores/DraftStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/IntegrityStore.h" | #include "PersistentStorageUtilities/DataStores/IntegrityStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/KeyserverStore.h" | #include "PersistentStorageUtilities/DataStores/KeyserverStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/MessageStore.h" | #include "PersistentStorageUtilities/DataStores/MessageStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/ReportStore.h" | #include "PersistentStorageUtilities/DataStores/ReportStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/SyncedMetadataStore.h" | |||||
#include "PersistentStorageUtilities/DataStores/ThreadStore.h" | #include "PersistentStorageUtilities/DataStores/ThreadStore.h" | ||||
#include "PersistentStorageUtilities/DataStores/UserStore.h" | #include "PersistentStorageUtilities/DataStores/UserStore.h" | ||||
#include <ReactCommon/TurboModuleUtils.h> | #include <ReactCommon/TurboModuleUtils.h> | ||||
#include <jsi/jsi.h> | #include <jsi/jsi.h> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
namespace comm { | namespace comm { | ||||
Show All 12 Lines | class CommCoreModule : public facebook::react::CommCoreModuleSchemaCxxSpecJSI { | ||||
DraftStore draftStore; | DraftStore draftStore; | ||||
ThreadStore threadStore; | ThreadStore threadStore; | ||||
MessageStore messageStore; | MessageStore messageStore; | ||||
ReportStore reportStore; | ReportStore reportStore; | ||||
UserStore userStore; | UserStore userStore; | ||||
KeyserverStore keyserverStore; | KeyserverStore keyserverStore; | ||||
CommunityStore communityStore; | CommunityStore communityStore; | ||||
IntegrityStore integrityStore; | IntegrityStore integrityStore; | ||||
SyncedMetadataStore syncedMetadataStore; | |||||
void | void | ||||
persistCryptoModules(bool persistContentModule, bool persistNotifsModule); | persistCryptoModules(bool persistContentModule, bool persistNotifsModule); | ||||
virtual jsi::Value getDraft(jsi::Runtime &rt, jsi::String key) override; | virtual jsi::Value getDraft(jsi::Runtime &rt, jsi::String key) override; | ||||
virtual jsi::Value | virtual jsi::Value | ||||
updateDraft(jsi::Runtime &rt, jsi::String key, jsi::String text) override; | updateDraft(jsi::Runtime &rt, jsi::String key, jsi::String text) override; | ||||
virtual jsi::Value | virtual jsi::Value | ||||
Show All 28 Lines | virtual jsi::Value processKeyserverStoreOperations( | ||||
jsi::Runtime &rt, | jsi::Runtime &rt, | ||||
jsi::Array operations) override; | jsi::Array operations) override; | ||||
virtual jsi::Value processCommunityStoreOperations( | virtual jsi::Value processCommunityStoreOperations( | ||||
jsi::Runtime &rt, | jsi::Runtime &rt, | ||||
jsi::Array operations) override; | jsi::Array operations) override; | ||||
virtual jsi::Value processIntegrityStoreOperations( | virtual jsi::Value processIntegrityStoreOperations( | ||||
jsi::Runtime &rt, | jsi::Runtime &rt, | ||||
jsi::Array operations) override; | jsi::Array operations) override; | ||||
virtual jsi::Value processSyncedMetadataStoreOperations( | |||||
jsi::Runtime &rt, | |||||
jsi::Array operations) override; | |||||
virtual jsi::Value initializeCryptoAccount(jsi::Runtime &rt) override; | virtual jsi::Value initializeCryptoAccount(jsi::Runtime &rt) override; | ||||
virtual jsi::Value getUserPublicKey(jsi::Runtime &rt) override; | virtual jsi::Value getUserPublicKey(jsi::Runtime &rt) override; | ||||
virtual jsi::Value | virtual jsi::Value | ||||
getOneTimeKeys(jsi::Runtime &rt, double oneTimeKeysAmount) override; | getOneTimeKeys(jsi::Runtime &rt, double oneTimeKeysAmount) override; | ||||
virtual jsi::Value validateAndUploadPrekeys( | virtual jsi::Value validateAndUploadPrekeys( | ||||
jsi::Runtime &rt, | jsi::Runtime &rt, | ||||
jsi::String authUserID, | jsi::String authUserID, | ||||
jsi::String authDeviceID, | jsi::String authDeviceID, | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |