Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
Settings used by PolicyProfile during its creation and throughout its lifetime. More...
#include <src/api/mip/upe/policy_profile.h>
Public Member Functions | |
CacheStorageType | GetCacheStorageType () const |
Get whether caches are stored in memory or on disk. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Get the custom settings, used for feature gating and testing. | |
std::shared_ptr< HttpDelegate > | GetHttpDelegate () const |
Get the HTTP delegate (if any) provided by the application. | |
const std::shared_ptr< void > & | GetLoggerContext () const |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile. | |
std::shared_ptr< MipContext > | GetMipContext () const |
Get MIP context which represents shared state across all profiles. | |
const std::shared_ptr< PolicyProfile::Observer > & | GetObserver () const |
Get the event observer. | |
const std::string & | GetSessionId () const |
std::shared_ptr< StorageDelegate > | GetStorageDelegate () const |
Get the StorageDelegate (if any) provided by the application. | |
std::shared_ptr< TaskDispatcherDelegate > | GetTaskDispatcherDelegate () const |
Get the TaskDispatcher delegate (if any) provided by the application. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
Set the custom settings, used for feature gating and testing. | |
void | SetHttpDelegate (const std::shared_ptr< HttpDelegate > &httpDelegate) |
Override default HTTP stack with client's own. | |
void | SetLoggerContext (const std::shared_ptr< void > &loggerContext) |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile. | |
void | SetSessionId (const std::string &sessionId) |
void | SetStorageDelegate (const std::shared_ptr< StorageDelegate > &storageDelegate) |
Override default storage cache with client's own implementation. | |
void | SetTaskDispatcherDelegate (const std::shared_ptr< TaskDispatcherDelegate > &taskDispatcherDelegate) |
Override default asynchronous task dispatching handling with client's own. | |
Settings (const std::shared_ptr< MipContext > &mipContext, CacheStorageType cacheStorageType, const std::shared_ptr< PolicyProfile::Observer > &observer) | |
Interface for configuring the profile. | |
~Settings () | |
Private Attributes | |
CacheStorageType | mCacheStorageType |
std::vector< std::pair< std::string, std::string > > | mCustomSettings |
std::shared_ptr< HttpDelegate > | mHttpDelegate |
std::shared_ptr< void > | mLoggerContext |
std::shared_ptr< MipContext > | mMipContext |
std::shared_ptr< PolicyProfile::Observer > | mObserver |
std::string | mSessionId |
std::shared_ptr< StorageDelegate > | mStorageDelegate |
std::shared_ptr< TaskDispatcherDelegate > | mTaskDispatcherDelegate |
Settings used by PolicyProfile during its creation and throughout its lifetime.
Definition at line 192 of file policy_profile.h.
|
inline |
Interface for configuring the profile.
mipContext | Global context settings |
cacheStorageType | Store any cached state in memory or on disk |
observer | A class implementing the PolicyProfile::Observer interface. Can be nullptr. |
Definition at line 201 of file policy_profile.h.
|
inline |
Definition at line 320 of file policy_profile.h.
|
inline |
Get whether caches are stored in memory or on disk.
Definition at line 214 of file policy_profile.h.
References mCacheStorageType.
|
inline |
Get the custom settings, used for feature gating and testing.
Definition at line 299 of file policy_profile.h.
References mCustomSettings.
|
inline |
Get the HTTP delegate (if any) provided by the application.
Definition at line 235 of file policy_profile.h.
References mHttpDelegate.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
Definition at line 308 of file policy_profile.h.
References mLoggerContext.
|
inline |
Get MIP context which represents shared state across all profiles.
Definition at line 228 of file policy_profile.h.
References mMipContext.
|
inline |
Get the event observer.
Definition at line 221 of file policy_profile.h.
References mObserver.
|
inline |
|
inline |
Get the StorageDelegate (if any) provided by the application.
Definition at line 249 of file policy_profile.h.
References mStorageDelegate.
|
inline |
Get the TaskDispatcher delegate (if any) provided by the application.
Definition at line 263 of file policy_profile.h.
References mTaskDispatcherDelegate.
|
inline |
Set the custom settings, used for feature gating and testing.
customSettings | List of name/value pairs. |
Definition at line 290 of file policy_profile.h.
References mCustomSettings.
|
inline |
Override default HTTP stack with client's own.
httpDelegate | Http callback interface implemented by client application |
Definition at line 242 of file policy_profile.h.
References mHttpDelegate.
|
inline |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
loggerContext | The logger context |
Definition at line 316 of file policy_profile.h.
References mLoggerContext.
|
inline |
Definition at line 277 of file policy_profile.h.
References mSessionId.
|
inline |
Override default storage cache with client's own implementation.
storageDelegate | StorageDelegate implemented by client application |
Definition at line 256 of file policy_profile.h.
References mStorageDelegate.
|
inline |
Override default asynchronous task dispatching handling with client's own.
taskDispatcherDelegate | Task dispatching callback interface implemented by client application |
Definition at line 273 of file policy_profile.h.
References mTaskDispatcherDelegate.
|
private |
Definition at line 323 of file policy_profile.h.
Referenced by GetCacheStorageType().
|
private |
Definition at line 328 of file policy_profile.h.
Referenced by GetCustomSettings(), and SetCustomSettings().
|
private |
Definition at line 325 of file policy_profile.h.
Referenced by GetHttpDelegate(), and SetHttpDelegate().
|
private |
Definition at line 329 of file policy_profile.h.
Referenced by GetLoggerContext(), and SetLoggerContext().
|
private |
Definition at line 322 of file policy_profile.h.
Referenced by GetMipContext().
|
private |
Definition at line 324 of file policy_profile.h.
Referenced by GetObserver().
|
private |
Definition at line 327 of file policy_profile.h.
Referenced by GetSessionId(), and SetSessionId().
|
private |
Definition at line 330 of file policy_profile.h.
Referenced by GetStorageDelegate(), and SetStorageDelegate().
|
private |
Definition at line 326 of file policy_profile.h.
Referenced by GetTaskDispatcherDelegate(), and SetTaskDispatcherDelegate().