nx_server_plugin_sdk 1.0 Server Plugin SDK

integration.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <mutex>
6
7 #include <nx/sdk/cloud_storage/i_integration.h>
8 #include <nx/sdk/helpers/ref_countable.h>
9
10 #include "data_manager.h"
11
12 namespace nx::vms_server_plugins::cloud_storage::stub {
13
14 class Integration: public nx::sdk::RefCountable<nx::sdk::cloud_storage::IIntegration>
15 {
16 public:
17 virtual ~Integration() override;
18 virtual void setUtilityProvider(nx::sdk::IUtilityProvider* utilityProvider) override;
19
20 protected:
21 virtual void doObtainEngine(
22 const char* url,
23 const nx::sdk::cloud_storage::IAsyncOperationHandler* asyncOperationHandler,
24 nx::sdk::Result<nx::sdk::cloud_storage::IEngine*>* outResult) override;
25
26 virtual void getManifest(nx::sdk::Result<const nx::sdk::IString*>* outResult) const override;
27
28 private:
29 nx::sdk::Ptr<nx::sdk::IUtilityProvider> m_utilityProvider;
30 nx::sdk::Ptr<nx::sdk::cloud_storage::IEngine> m_engine;
31 std::mutex m_mutex;
32 std::shared_ptr<DataManager> m_dataManager;
33 };
34
35 } // nx::vms_server_plugins::cloud_storage::stub
nx::vms_server_plugins::cloud_storage::stub::Integration::setUtilityProvider
virtual void setUtilityProvider(nx::sdk::IUtilityProvider *utilityProvider) override
Definition: integration.cpp:71
nx::vms_server_plugins::cloud_storage::stub::Integration
Definition: integration.h:14
nx::vms_server_plugins::cloud_storage::stub
Definition: data_manager.cpp:36
nx::sdk::Ptr< nx::sdk::IUtilityProvider >
nx::sdk::cloud_storage::IAsyncOperationHandler
Definition: i_async_operation_handler.h:62
nx::sdk::Result
Definition: result.h:52
nx::sdk::IUtilityProvider
Definition: i_utility_provider.h:172
nx::sdk::RefCountable
Definition: ref_countable.h:83