Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
common_types.h File Reference

A file Containing the common types used by the upe, file and protection modules. More...

#include <cstring>
#include <exception>
#include <map>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "mip/mip_namespace.h"
+ Include dependency graph for common_types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ApplicationInfo
 A struct that includes application specific information. More...
 
class  AsyncControl
 Class used to cancel async operation. More...
 
class  AuthDelegate
 Delegate for auth related operations. More...
 
class  ConsentDelegate
 Delegate for consent related operations. More...
 
class  Identity
 Abstraction for identity. More...
 
class  AuthDelegate::OAuth2Challenge
 a class that contains all the information required from the calling application in order to generate an oauth2 token. More...
 
class  AuthDelegate::OAuth2Token
 A class containing access token info provided by an application. More...
 
struct  UniqueIdsAndContentFormats
 

Typedefs

typedef std::map< mip::Classifier, UniqueIdsAndContentFormatsClassifierUniqueIdsAndContentFormats
 
typedef LabelFilterType FunctionalityFilterType
 Name change within the cpp workspace to imply the filters has greater scope than just label behavior.
 

Enumerations

enum class  ActionSource : unsigned int {
  MANUAL ,
  AUTOMATIC ,
  RECOMMENDED ,
  DEFAULT
}
 defines what triggered the SetLabel event More...
 
enum class  AssignmentMethod : unsigned int {
  STANDARD = 0 ,
  PRIVILEGED = 1 ,
  AUTO = 2
}
 The assignment method of the label on the document. More...
 
enum class  CacheStorageType : unsigned int {
  InMemory = 0 ,
  OnDisk = 1 ,
  OnDiskEncrypted = 2
}
 Storage type for the caches. More...
 
enum class  Classifier : unsigned int {
  SensitiveInformation = 0 ,
  MachineLearning = 1 ,
  ExtendedSensitiveInformation = 2
}
 The type of classification the application should be running on the data to determine autolabeling status. More...
 
enum class  Cloud {
  Unknown = 0 ,
  Custom = 1 ,
  Test = 2 ,
  Commercial = 3 ,
  Germany = 4 ,
  US_DoD = 5 ,
  US_GCC = 6 ,
  US_GCC_High = 7 ,
  US_Sec = 8 ,
  US_Nat = 9 ,
  China_01 = 10
}
 Azure cloud identifier. More...
 
enum class  Consent : unsigned int {
  AcceptAlways ,
  Accept ,
  Reject
}
 A user's response when consent is requested to connect to a service endpoint. More...
 
enum class  ContentMarkAlignment : unsigned int {
  LEFT = 0 ,
  RIGHT = 1 ,
  CENTER = 2
}
 Alignment for content marks (content header or content footer). More...
 
enum class  DataBoundary {
  Default = 0 ,
  North_America = 1 ,
  European_Union = 2 ,
  Europe_MiddleEast_Africa = 3 ,
  Asia = 4
}
 Diagnostic region identifier. More...
 
enum class  DataState : unsigned int {
  REST ,
  MOTION ,
  USE
}
 Defines what state of the data is the application acting upon. More...
 
enum class  FeatureId : unsigned int { EncryptOnly }
 Defines new features by name. More...
 
enum  LabelFilterType : unsigned int {
  None = 0 ,
  CustomProtection = 1 << 0 ,
  TemplateProtection = 1 << 1 ,
  DoNotForwardProtection = 1 << 2 ,
  AdhocProtection = 1 << 3 ,
  HyokProtection = 1 << 4 ,
  PredefinedTemplateProtection = 1 << 5 ,
  DoubleKeyProtection = 1 << 6 ,
  DoubleKeyUserDefinedProtection = 1 << 7 ,
  EncryptOnlyProtection = 1 << 8 ,
  SensitiveInformationClassifier = 1 << 9 ,
  MachineLearningClassifier = 1 << 10 ,
  ExtendedSensitiveInformationClassifier = 1 << 11
}
 Label filter types, optional set of properties that can be used to filter labels or label behavior when calling list sensitivity labels or autoclassifying data. More...
 
enum class  PFileExtensionBehavior {
  Default = 0 ,
  PFileSuffix = 1 ,
  PPrefix = 2
}
 Describes PFile extensions behavior. More...
 
enum class  VariableTextMarkingType : unsigned int {
  Default = 0 ,
  PassThrough = 1 ,
  None = 2
}
 various dynamic fields can be set into the text message of the application Some known: ${Item.Label} ${Item.Name} ${Item.Location} ${User.Name} ${User.PrincipalName} ${Event.DateTime} Others are still not defined: The sdk will replace them with correct values using these control flags. More...
 
enum class  WatermarkLayout : unsigned int {
  HORIZONTAL = 0 ,
  DIAGONAL = 1
}
 Layout for watermarks. More...
 
enum class  Workload : unsigned int {
  Office = 0 ,
  Purview = 1
}
 The workload the application is working on, used primary to check for consent. More...
 

Functions

static std::string GetActionSourceString (ActionSource actionSource)
 Get the action source name.
 
std::string GetAssignmentMethodString (AssignmentMethod method)
 Converts AssignmentMethod enum to a string description.
 
constexpr const char * GetCustomSettingExportPolicyFileName ()
 Name of the setting to explicitly specify file path to export SCC policy data to.
 
constexpr const char * GetCustomSettingLabelCustomPropertiesSyncEnabled ()
 Name of the setting that allows to enable label by custom properties and custom properties by label features.
 
constexpr const char * GetCustomSettingPolicyDataFile ()
 Name of the setting to explicitly specify policy data file path.
 
constexpr const char * GetCustomSettingPolicyDataName ()
 Name of the setting to explicitly specify policy data.
 
constexpr const char * GetCustomSettingPolicyTtlDays ()
 Name of the setting that enables overriding policy ttl in days be default it will be 30 days.
 
constexpr const char * GetCustomSettingSensitivityPolicyTtlDays ()
 Name of the setting that enables overriding sensitivity policy ttl in days be default it will be 30 days.
 
constexpr const char * GetCustomSettingSensitivityTypesDataFile ()
 Name of the setting to explicitly specify sensitivity types data file path.
 
constexpr const char * GetCustomSettingSensitivityTypesDataName ()
 Name of the setting to explicitly specify sensitivity data.
 
static std::string GetDataStateString (DataState state)
 Get the content state name.
 
const std::string & GetEmailContentFormat ()
 
const std::string & GetFileContentFormat ()
 
const std::string & GetMemoryDatabasePath ()
 
const std::string & GetSqliteExtension ()
 
FunctionalityFilterType operator& (FunctionalityFilterType firstFilter, FunctionalityFilterType secondFilter)
 
FunctionalityFilterType operator| (FunctionalityFilterType firstFilter, FunctionalityFilterType secondFilter)
 
FunctionalityFilterType operator~ (FunctionalityFilterType filter)
 

Detailed Description

A file Containing the common types used by the upe, file and protection modules.

Definition in file common_types.h.

Typedef Documentation

◆ ClassifierUniqueIdsAndContentFormats

◆ FunctionalityFilterType

Name change within the cpp workspace to imply the filters has greater scope than just label behavior.

Avoided changing name fully to prevent breaking on client operations.

Definition at line 134 of file common_types.h.

Enumeration Type Documentation

◆ ActionSource

enum class ActionSource : unsigned int
strong

defines what triggered the SetLabel event

Enumerator
MANUAL 

Selected manually by user.

AUTOMATIC 

Set by policy conditions.

RECOMMENDED 

Set by user after label was recommended by policy conditions.

DEFAULT 

Set by default in policy.

Definition at line 84 of file common_types.h.

84 : unsigned int {
85 MANUAL, /**< Selected manually by user */
86 AUTOMATIC, /**< Set by policy conditions */
87 RECOMMENDED, /**< Set by user after label was recommended by policy conditions */
88 DEFAULT /**< Set by default in policy */
89};
@ AUTOMATIC
Set by policy conditions.
@ RECOMMENDED
Set by user after label was recommended by policy conditions.
@ DEFAULT
Set by default in policy.
@ MANUAL
Selected manually by user.

◆ AssignmentMethod

enum class AssignmentMethod : unsigned int
strong

The assignment method of the label on the document.

Whether the Assignment of the label was done automatically, standard or as a privileged operation (The equivalent to an administrator operation).

Enumerator
STANDARD 

Label assignment method is standard.

PRIVILEGED 

Label assignment method is privileged.

AUTO 

Label assignment method is automatic.

Definition at line 75 of file common_types.h.

75 : unsigned int {
76 STANDARD = 0, /**< Label assignment method is standard */
77 PRIVILEGED = 1, /**< Label assignment method is privileged */
78 AUTO = 2, /**< Label assignment method is automatic */
79};
@ STANDARD
Label assignment method is standard.
@ PRIVILEGED
Label assignment method is privileged.
@ AUTO
Label assignment method is automatic.

◆ CacheStorageType

enum class CacheStorageType : unsigned int
strong

Storage type for the caches.

Enumerator
InMemory 

In Memory storage.

OnDisk 

On Disk storage.

OnDiskEncrypted 

On Disk storage with internal encryption (if supported by the platform)

Definition at line 706 of file common_types.h.

706 : unsigned int {
707 InMemory = 0, /**< In Memory storage */
708 OnDisk = 1, /**< On Disk storage */
709 OnDiskEncrypted = 2 /**< On Disk storage with internal encryption (if supported by the platform) */
710};
@ InMemory
In Memory storage.
@ OnDisk
On Disk storage.
@ OnDiskEncrypted
On Disk storage with internal encryption (if supported by the platform)

◆ Classifier

enum class Classifier : unsigned int
strong

The type of classification the application should be running on the data to determine autolabeling status.

Enumerator
SensitiveInformation 
MachineLearning 
ExtendedSensitiveInformation 

Definition at line 201 of file common_types.h.

201 : unsigned int {
202 SensitiveInformation = 0, // Classifier based on specific content (credit cards); Uses Microsoft Classification Engine
203 MachineLearning = 1, // Classifier based on Machine Learning recognition (offensive language)
204 ExtendedSensitiveInformation = 2, // Classifier based on specific content (credit cards); Does not use Microsoft Classification Engine
205};
@ ExtendedSensitiveInformation
@ SensitiveInformation

◆ Cloud

enum class Cloud
strong

Azure cloud identifier.

Enumerator
Unknown 

Cloud not specified or URL not recognized as an Azure cloud.

Custom 

Custom cloud: endpoint base URL manually specified by application.

Test 

Test cloud.

Commercial 

Global commercial cloud.

Germany 

Germany sovereign cloud.

US_DoD 

US sovereign cloud (DoD)

US_GCC 

US sovereign cloud (GCC)

US_GCC_High 

US sovereign cloud (GCC-High)

US_Sec 

US sovereign cloud (Sec)

US_Nat 

US sovereign cloud (Nat)

China_01 

China sovereign cloud.

Definition at line 724 of file common_types.h.

724 {
725 Unknown = 0, /**< Cloud not specified or URL not recognized as an Azure cloud */
726 Custom = 1, /**< Custom cloud: endpoint base URL manually specified by application */
727 Test = 2, /**< Test cloud */
728 Commercial = 3, /**< Global commercial cloud */
729 Germany = 4, /**< Germany sovereign cloud */
730 US_DoD = 5, /**< US sovereign cloud (DoD) */
731 US_GCC = 6, /**< US sovereign cloud (GCC) */
732 US_GCC_High = 7, /**< US sovereign cloud (GCC-High) */
733 US_Sec = 8, /**< US sovereign cloud (Sec) */
734 US_Nat = 9, /**< US sovereign cloud (Nat) */
735 China_01 = 10, /**< China sovereign cloud */
736};
@ US_GCC_High
US sovereign cloud (GCC-High)
@ US_Sec
US sovereign cloud (Sec)
@ Test
Test cloud.
@ US_GCC
US sovereign cloud (GCC)
@ US_Nat
US sovereign cloud (Nat)
@ China_01
China sovereign cloud.
@ Unknown
Cloud not specified or URL not recognized as an Azure cloud.
@ US_DoD
US sovereign cloud (DoD)
@ Custom
Custom cloud: endpoint base URL manually specified by application.
@ Commercial
Global commercial cloud.
@ Germany
Germany sovereign cloud.

◆ Consent

enum class Consent : unsigned int
strong

A user's response when consent is requested to connect to a service endpoint.

Enumerator
AcceptAlways 

Consent, and remember this decision.

Accept 

Consent, just one time.

Reject 

Do not consent.

Definition at line 484 of file common_types.h.

484 : unsigned int {
485 AcceptAlways, /**< Consent, and remember this decision */
486 Accept, /**< Consent, just one time */
487 Reject /**< Do not consent */
488};
@ AcceptAlways
Consent, and remember this decision.
@ Accept
Consent, just one time.
@ Reject
Do not consent.

◆ ContentMarkAlignment

enum class ContentMarkAlignment : unsigned int
strong

Alignment for content marks (content header or content footer).

Enumerator
LEFT 

Content marking is aligned to the left.

RIGHT 

Content marking is aligned to the right.

CENTER 

Content marking is centered.

Definition at line 65 of file common_types.h.

65 : unsigned int {
66 LEFT = 0, /**< Content marking is aligned to the left */
67 RIGHT = 1, /**< Content marking is aligned to the right */
68 CENTER = 2, /**< Content marking is centered */
69};
@ RIGHT
Content marking is aligned to the right.
@ LEFT
Content marking is aligned to the left.
@ CENTER
Content marking is centered.

◆ DataBoundary

enum class DataBoundary
strong

Diagnostic region identifier.

Enumerator
Default 

Region is not specified.

North_America 

North America region.

European_Union 

European Union region.

Europe_MiddleEast_Africa 

Europe, Middle East & Africa region.

Asia 

Asia region.

Definition at line 741 of file common_types.h.

741 {
742 Default = 0, /**< Region is not specified */
743 North_America = 1, /**< North America region */
744 European_Union = 2, /**< European Union region */
745 Europe_MiddleEast_Africa = 3, /**< Europe, Middle East & Africa region */
746 Asia = 4, /**< Asia region */
747};
@ Default
Known markings are converted unknown marking are removed.
@ Asia
Asia region.
@ European_Union
European Union region.
@ North_America
North America region.
@ Europe_MiddleEast_Africa
Europe, Middle East & Africa region.

◆ DataState

enum class DataState : unsigned int
strong

Defines what state of the data is the application acting upon.

Enumerator
REST 

Inactive data stored physically in databases/file/warehouses.

MOTION 

Data traversing a network or temporarily residing in computer memory to be read or updated.

USE 

Active data under constant change stored physically in databases/file/warehouses etc.

Definition at line 94 of file common_types.h.

94 : unsigned int {
95 REST, /**< Inactive data stored physically in databases/file/warehouses */
96 MOTION, /**< Data traversing a network or temporarily residing in computer memory to be read or updated */
97 USE, /**< Active data under constant change stored physically in databases/file/warehouses etc */
98};
@ REST
Inactive data stored physically in databases/file/warehouses.
@ USE
Active data under constant change stored physically in databases/file/warehouses etc.
@ MOTION
Data traversing a network or temporarily residing in computer memory to be read or updated.

◆ FeatureId

enum class FeatureId : unsigned int
strong

Defines new features by name.

Enumerator
EncryptOnly 

Check if server supports EncryptOnly feature.

Definition at line 151 of file common_types.h.

151 : unsigned int {
152 EncryptOnly, /**< Check if server supports EncryptOnly feature */
153};
@ EncryptOnly
Check if server supports EncryptOnly feature.

◆ LabelFilterType

enum LabelFilterType : unsigned int

Label filter types, optional set of properties that can be used to filter labels or label behavior when calling list sensitivity labels or autoclassifying data.

Enumerator
None 

Disable default labeling filtration.

CustomProtection 

Filter labels that may result in custom protection.

TemplateProtection 

Filter labels that may result in template protection.

DoNotForwardProtection 

Filter labels that may result in do not forward.

AdhocProtection 

Filter labels that may result in adhoc protection.

HyokProtection 

Filter labels that may result in hyok protection.

PredefinedTemplateProtection 

Filter labels that may result in predefined template protection.

DoubleKeyProtection 

Filter labels that may result in protection that requires double key, can be template, adhoc, dnf.

This filter removes support for all double key labels

DoubleKeyUserDefinedProtection 

Filter labels that may result in protection that requires double key adhoc and dnf.

This filter removes support for double key adhoc labels. It is more selective than DoubleKeyProtection filter which removes all support

EncryptOnlyProtection 

Filter labels that may result in encrypt only.

SensitiveInformationClassifier 

Classifier based on Sensitive Information Detection (e.g.

Credit card number or SSN) uses the Microsoft Classification Engine (MCE)

MachineLearningClassifier 

Classifier based on Machine Learning (e.g.

Offensive Language)

ExtendedSensitiveInformationClassifier 

Classifier based on Sensitive Information Detection (e.g.

Credit card number or SSN) does not use MCE

Definition at line 114 of file common_types.h.

114 : unsigned int {
115 None = 0, /**< Disable default labeling filtration */
116 CustomProtection = 1 << 0, /**< Filter labels that may result in custom protection*/
117 TemplateProtection = 1 << 1, /**< Filter labels that may result in template protection */
118 DoNotForwardProtection = 1 << 2, /**< Filter labels that may result in do not forward */
119 AdhocProtection = 1 << 3, /**< Filter labels that may result in adhoc protection */
120 HyokProtection = 1 << 4, /**< Filter labels that may result in hyok protection */
121 PredefinedTemplateProtection = 1 << 5, /**< Filter labels that may result in predefined template protection */
122 DoubleKeyProtection = 1 << 6, /**< Filter labels that may result in protection that requires double key, can be template, adhoc, dnf. This filter removes support for all double key labels*/
123 DoubleKeyUserDefinedProtection = 1 << 7, /**< Filter labels that may result in protection that requires double key adhoc and dnf. This filter removes support for double key adhoc labels. It is more selective than DoubleKeyProtection filter which removes all support*/
124 EncryptOnlyProtection = 1 << 8, /**< Filter labels that may result in encrypt only */
125 SensitiveInformationClassifier = 1 << 9, /**< Classifier based on Sensitive Information Detection (e.g. Credit card number or SSN) uses the Microsoft Classification Engine (MCE) */
126 MachineLearningClassifier = 1 << 10, /**< Classifier based on Machine Learning (e.g. Offensive Language) */
127 ExtendedSensitiveInformationClassifier = 1 << 11, /**< Classifier based on Sensitive Information Detection (e.g. Credit card number or SSN) does not use MCE */
128};
@ DoubleKeyUserDefinedProtection
Filter labels that may result in protection that requires double key adhoc and dnf.
@ CustomProtection
Filter labels that may result in custom protection.
@ TemplateProtection
Filter labels that may result in template protection.
@ EncryptOnlyProtection
Filter labels that may result in encrypt only.
@ DoNotForwardProtection
Filter labels that may result in do not forward.
@ HyokProtection
Filter labels that may result in hyok protection.
@ MachineLearningClassifier
Classifier based on Machine Learning (e.g.
@ AdhocProtection
Filter labels that may result in adhoc protection.
@ None
Disable default labeling filtration.
@ DoubleKeyProtection
Filter labels that may result in protection that requires double key, can be template,...
@ ExtendedSensitiveInformationClassifier
Classifier based on Sensitive Information Detection (e.g.
@ SensitiveInformationClassifier
Classifier based on Sensitive Information Detection (e.g.
@ PredefinedTemplateProtection
Filter labels that may result in predefined template protection.

◆ PFileExtensionBehavior

enum class PFileExtensionBehavior
strong

Describes PFile extensions behavior.

Enumerator
Default 

Extensions will become as SDK default behavior

PFileSuffix 

Extensions will become <EXT>.PFILE.

PPrefix 

Extensions will become P<EXT>

Definition at line 715 of file common_types.h.

715 {
716 Default = 0, /**< Extensions will become as SDK default behavior */
717 PFileSuffix = 1, /**< Extensions will become <EXT>.PFILE */
718 PPrefix = 2, /**< Extensions will become P<EXT> */
719};
@ PPrefix
Extensions will become P<EXT>
@ PFileSuffix
Extensions will become <EXT>.PFILE.

◆ VariableTextMarkingType

enum class VariableTextMarkingType : unsigned int
strong

various dynamic fields can be set into the text message of the application Some known: ${Item.Label} ${Item.Name} ${Item.Location} ${User.Name} ${User.PrincipalName} ${Event.DateTime} Others are still not defined: The sdk will replace them with correct values using these control flags.

Enumerator
Default 

Known markings are converted unknown marking are removed.

PassThrough 

Known markings are converted unknown marking are passed through.

None 

All markings are passed through.

Definition at line 167 of file common_types.h.

167 : unsigned int {
168 Default = 0, /**< Known markings are converted unknown marking are removed */
169 PassThrough = 1, /**< Known markings are converted unknown marking are passed through */
170 None = 2, /**< All markings are passed through */
171};
@ PassThrough
Known markings are converted unknown marking are passed through.

◆ WatermarkLayout

enum class WatermarkLayout : unsigned int
strong

Layout for watermarks.

Enumerator
HORIZONTAL 

Watermark layout is horizontal.

DIAGONAL 

Watermark layout is diagonal.

Definition at line 57 of file common_types.h.

57 : unsigned int {
58 HORIZONTAL = 0, /**< Watermark layout is horizontal */
59 DIAGONAL = 1, /**< Watermark layout is diagonal */
60};
@ HORIZONTAL
Watermark layout is horizontal.
@ DIAGONAL
Watermark layout is diagonal.

◆ Workload

enum class Workload : unsigned int
strong

The workload the application is working on, used primary to check for consent.

Enumerator
Office 
Purview 

Definition at line 210 of file common_types.h.

210 : unsigned int {
211 Office = 0, // Office type workloads, which include File and Email content types.
212 Purview = 1, // Purview type workloads, which includes File, Email and SchematizedData content types.
213};

Function Documentation

◆ GetActionSourceString()

static std::string GetActionSourceString ( ActionSource actionSource)
inlinestatic

Get the action source name.

Parameters
actionSourceThe action source.
Returns
a string representation of the action source.

Definition at line 239 of file common_types.h.

239 {
240 static std::string kMethodArray[] = { "Manual", "Automatic", "Recommended", "Default" };
241 return kMethodArray[static_cast<int>(actionSource)];
242}

◆ GetAssignmentMethodString()

std::string GetAssignmentMethodString ( AssignmentMethod method)
inline

Converts AssignmentMethod enum to a string description.

Parameters
methodan assignment method.
Returns
a string description of the assignment method.

Definition at line 228 of file common_types.h.

228 {
229 static std::string kMethodArray[] = { "Standard", "Privileged", "Auto" };
230 return kMethodArray[static_cast<int>(method)];
231}

◆ GetCustomSettingExportPolicyFileName()

const char * GetCustomSettingExportPolicyFileName ( )
inlineconstexpr

Name of the setting to explicitly specify file path to export SCC policy data to.

Returns
the custom settings key.

Definition at line 542 of file common_types.h.

542 {
543 return "export_policy_file";
544}

◆ GetCustomSettingLabelCustomPropertiesSyncEnabled()

const char * GetCustomSettingLabelCustomPropertiesSyncEnabled ( )
inlineconstexpr

Name of the setting that allows to enable label by custom properties and custom properties by label features.

Returns
the custom settings key.

Definition at line 574 of file common_types.h.

574 {
575 return "label_custom_properties_sync_enabled";
576}

◆ GetCustomSettingPolicyDataFile()

const char * GetCustomSettingPolicyDataFile ( )
inlineconstexpr

Name of the setting to explicitly specify policy data file path.

Returns
the custom settings key.

Definition at line 558 of file common_types.h.

558 {
559 return "policy_file";
560}

◆ GetCustomSettingPolicyDataName()

const char * GetCustomSettingPolicyDataName ( )
inlineconstexpr

Name of the setting to explicitly specify policy data.

Returns
the custom settings key.

Definition at line 534 of file common_types.h.

534 {
535 return "policy_data";
536}

◆ GetCustomSettingPolicyTtlDays()

const char * GetCustomSettingPolicyTtlDays ( )
inlineconstexpr

Name of the setting that enables overriding policy ttl in days be default it will be 30 days.

Values should be set as string integers i < 0 means infinite time to live.

Returns
the custom settings key.

Definition at line 583 of file common_types.h.

583 {
584 return "PolicyTtlDays";
585}

◆ GetCustomSettingSensitivityPolicyTtlDays()

const char * GetCustomSettingSensitivityPolicyTtlDays ( )
inlineconstexpr

Name of the setting that enables overriding sensitivity policy ttl in days be default it will be 30 days.

Values should be set as string integers i < 0 means infinite time to live.

Returns
the custom settings key.

Definition at line 592 of file common_types.h.

592 {
593 return "SensitivityPolicyTtlDays";
594}

◆ GetCustomSettingSensitivityTypesDataFile()

const char * GetCustomSettingSensitivityTypesDataFile ( )
inlineconstexpr

Name of the setting to explicitly specify sensitivity types data file path.

Returns
the custom settings key.

Definition at line 566 of file common_types.h.

566 {
567 return "sensitivity_types_file";
568}

◆ GetCustomSettingSensitivityTypesDataName()

const char * GetCustomSettingSensitivityTypesDataName ( )
inlineconstexpr

Name of the setting to explicitly specify sensitivity data.

Returns
the custom settings key.

Definition at line 550 of file common_types.h.

550 {
551 return "sensitivity_types_data";
552}

◆ GetDataStateString()

static std::string GetDataStateString ( DataState state)
inlinestatic

Get the content state name.

Parameters
actionSourceThe state of the content being worked upon.
Returns
a string representation of the content state.

Definition at line 250 of file common_types.h.

250 {
251 static std::string kMethodArray[] = { "Rest", "Motion", "Use" };
252 return kMethodArray[static_cast<int>(state)];
253}

◆ GetEmailContentFormat()

const std::string & GetEmailContentFormat ( )
inline

Definition at line 105 of file common_types.h.

105 {
106 static const std::string emailContentFormat = "email";
107 return emailContentFormat;
108}

◆ GetFileContentFormat()

const std::string & GetFileContentFormat ( )
inline

Definition at line 100 of file common_types.h.

100 {
101 static const std::string fileContentFormat = "file";
102 return fileContentFormat;
103}

◆ GetMemoryDatabasePath()

const std::string & GetMemoryDatabasePath ( )
inline

Definition at line 262 of file common_types.h.

262 {
263 static const std::string memoryPath = ":memory:";
264 return memoryPath;
265}

◆ GetSqliteExtension()

const std::string & GetSqliteExtension ( )
inline

Definition at line 256 of file common_types.h.

256 {
257 static const std::string sqliteExtension = ".sqlite3";
258 return sqliteExtension;
259}

◆ operator&()

FunctionalityFilterType operator& ( FunctionalityFilterType firstFilter,
FunctionalityFilterType secondFilter )
inline

Definition at line 140 of file common_types.h.

140 {
141 return static_cast<FunctionalityFilterType>(static_cast<int>(firstFilter) & static_cast<int>(secondFilter));
142}
LabelFilterType
Label filter types, optional set of properties that can be used to filter labels or label behavior wh...

◆ operator|()

FunctionalityFilterType operator| ( FunctionalityFilterType firstFilter,
FunctionalityFilterType secondFilter )
inline

Definition at line 136 of file common_types.h.

136 {
137 return static_cast<FunctionalityFilterType>(static_cast<int>(firstFilter) | static_cast<int>(secondFilter));
138}

◆ operator~()

Definition at line 144 of file common_types.h.

144 {
145 return static_cast<FunctionalityFilterType>(~(static_cast<int>(filter)));
146}