共用方式為


類別 ProtectionProfile

ProtectionProfile 是執行保護作業的根類別。 應用程式在執行任何保護作業之前,必須先建立 ProtectionProfile

摘要

成員 Description
public const 設定& Get 設定() const 取得 ProtectionProfile 在其初始化期間及其存留期間所使用的設定。
public std::shared_ptr<AsyncControl> ListEnginesAsync(const std::shared_ptr<void>& context) 啟動清單引擎作業。
public std::vector<std::string> ListEngines() 列出引擎。
public std::shared_ptr<AsyncControl> AddEngineAsync(const ProtectionEngine::設定& settings, const std::shared_ptr<void>& context) 開始將新的保護引擎新增至配置檔。
public std::shared_ptr<ProtectionEngine AddEngine>(const ProtectionEngine::設定& settings) 將新的保護引擎新增至配置檔。
public std::shared_ptr<AsyncControl> DeleteEngineAsync(const std::string& engineId, const std::shared_ptr<void>& context) 開始刪除具有指定識別碼的保護引擎。 將會刪除指定引擎的所有數據。
public void DeleteEngine(const std::string& engineId) 刪除具有指定標識碼的保護引擎。 將會刪除指定引擎的所有數據。

成員

Get 設定 函式

取得 ProtectionProfile 在其初始化期間及其存留期間所使用的設定。

回:設定 ProtectionProfile 在其初始化期間和整個存留期使用

ListEnginesAsync 函式

啟動清單引擎作業。

參數:

  • context:將不透明的用戶端內容傳回觀察者

回:異步控件物件。 ProtectionProfile::Observer 會在成功或失敗時呼叫。

ListEngines 函式

列出引擎。

回:快取的引擎標識符

AddEngineAsync 函式

開始將新的保護引擎新增至配置檔。

參數:

  • settings:指定引擎設定的 mip::P rotectionEngine::設定 物件。

  • context:將不透明的用戶端內容傳回觀察者

回:異步控件物件。 ProtectionProfile::Observer 會在成功或失敗時呼叫。

AddEngine 函式

將新的保護引擎新增至配置檔。

參數:

  • settings:指定引擎設定的 mip::P rotectionEngine::設定 物件。

回:新建立的 ProtectionEngine

DeleteEngineAsync 函式

開始刪除具有指定識別碼的保護引擎。 將會刪除指定引擎的所有數據。

參數:

  • id:唯一的引擎標識符。

  • context:將不透明的用戶端內容傳回觀察者

回:異步控件物件。 ProtectionProfile::Observer 會在成功或失敗時呼叫。

DeleteEngine 函式

刪除具有指定標識碼的保護引擎。 將會刪除指定引擎的所有數據。

參數:

  • id:唯一的引擎標識符。