Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
FileProfile::Observer Class Reference

Observer interface for clients to get notifications for profile related events. More...

#include <file_profile.h>

Public Member Functions

virtual ~Observer ()
 
virtual void OnLoadSuccess (const std::shared_ptr< mip::FileProfile > &profile, const std::shared_ptr< void > &context)
 Called when profile was loaded successfully.
 
virtual void OnLoadFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when loading a profile caused an error.
 
virtual void OnListEnginesSuccess (const std::vector< std::string > &engineIds, const std::shared_ptr< void > &context)
 Called when list of engines was generated successfully.
 
virtual void OnListEnginesFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when listing engines caused an error.
 
virtual void OnUnloadEngineSuccess (const std::shared_ptr< void > &context)
 Called when an engine was unloaded successfully.
 
virtual void OnUnloadEngineFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when unloading an engine caused an error.
 
virtual void OnAddEngineSuccess (const std::shared_ptr< mip::FileEngine > &engine, const std::shared_ptr< void > &context)
 Called when a new engine was added successfully.
 
virtual void OnAddEngineFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when adding a new engine caused an error.
 
virtual void OnDeleteEngineSuccess (const std::shared_ptr< void > &context)
 Called when an engine was deleted successfully.
 
virtual void OnDeleteEngineFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when deleting an engine caused an error.
 
virtual void OnPolicyChanged (const std::string &engineId)
 Called when the policy has changed for the engine with the given ID.
 
virtual void OnAddPolicyEngineStarting (bool requiresPolicyFetch)
 Called prior to engine creation to describe whether or not the policy engine's policy data must be fetched from the server or whether it can be created from locally cached data.
 

Protected Member Functions

 Observer ()
 

Detailed Description

Observer interface for clients to get notifications for profile related events.

Note
All errors inherit from mip::Error.
Client should not call the engine back on the thread that calls the observer.

Constructor & Destructor Documentation

◆ ~Observer()

virtual FileProfile::Observer::~Observer ( )
inlinevirtual

◆ Observer()

FileProfile::Observer::Observer ( )
inlineprotected

Member Function Documentation

◆ OnAddEngineFailure()

virtual void FileProfile::Observer::OnAddEngineFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when adding a new engine caused an error.

◆ OnAddEngineSuccess()

virtual void FileProfile::Observer::OnAddEngineSuccess ( const std::shared_ptr< mip::FileEngine > & engine,
const std::shared_ptr< void > & context )
inlinevirtual

Called when a new engine was added successfully.

◆ OnAddPolicyEngineStarting()

virtual void FileProfile::Observer::OnAddPolicyEngineStarting ( bool requiresPolicyFetch)
inlinevirtual

Called prior to engine creation to describe whether or not the policy engine's policy data must be fetched from the server or whether it can be created from locally cached data.

Parameters
requiresPolicyFetchDescribes whether engine data must be fetched via HTTP or if it will be loaded from cache
Note
This optional callback may be used by an application to be informed whether or not an AddEngineAsync operation will require an HTTP operation (with its associated delay) to complete.

◆ OnDeleteEngineFailure()

virtual void FileProfile::Observer::OnDeleteEngineFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when deleting an engine caused an error.

◆ OnDeleteEngineSuccess()

virtual void FileProfile::Observer::OnDeleteEngineSuccess ( const std::shared_ptr< void > & context)
inlinevirtual

Called when an engine was deleted successfully.

◆ OnListEnginesFailure()

virtual void FileProfile::Observer::OnListEnginesFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when listing engines caused an error.

◆ OnListEnginesSuccess()

virtual void FileProfile::Observer::OnListEnginesSuccess ( const std::vector< std::string > & engineIds,
const std::shared_ptr< void > & context )
inlinevirtual

Called when list of engines was generated successfully.

◆ OnLoadFailure()

virtual void FileProfile::Observer::OnLoadFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when loading a profile caused an error.

◆ OnLoadSuccess()

virtual void FileProfile::Observer::OnLoadSuccess ( const std::shared_ptr< mip::FileProfile > & profile,
const std::shared_ptr< void > & context )
inlinevirtual

Called when profile was loaded successfully.

◆ OnPolicyChanged()

virtual void FileProfile::Observer::OnPolicyChanged ( const std::string & engineId)
inlinevirtual

Called when the policy has changed for the engine with the given ID.

◆ OnUnloadEngineFailure()

virtual void FileProfile::Observer::OnUnloadEngineFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when unloading an engine caused an error.

◆ OnUnloadEngineSuccess()

virtual void FileProfile::Observer::OnUnloadEngineSuccess ( const std::shared_ptr< void > & context)
inlinevirtual

Called when an engine was unloaded successfully.


The documentation for this class was generated from the following file: