|
enum class | LogEvent {
AllFilesUpToDate = 1000
, SyncStarted = 1001
, SyncCompleted = 1002
, ReplicationStarted = 1003
,
ReplicationComplete = 1004
, VersionLocked = 1005
, PackageDisabled = 1006
, ProcessOwnedLockRemoved = 1007
,
PackageVersionCreated = 1008
, PackageDeleted = 1009
, PackageArchived = 1010
, PackageRestored = 1011
,
FileUploaded = 1100
, FileDownloaded = 1101
, FileUpdatedLocally = 1102
, FileUpdatedOnServer = 1103
,
FileRemovedOnServer = 1104
, FileReplicated = 1105
, FileDiscarded = 1106
, FileCheckedOut = 1107
,
FileCheckedIn = 1108
, FileUncheckedOut = 1109
, FileChangesDiscarded = 1110
, FileVersionsCleanedUp = 1111
,
FileUploadInProgress = 1112
, FileDownloadInProgress = 1113
, PreparingFileUpload = 1114
, Initialising = 2000
,
ConnectionEstablished = 2001
, ConnectionLost = 2002
, GracefulShutdown = 2003
, ServiceError = 2004
,
ServerRegistered = 2005
, AccessTokenSuccess = 2006
, PackageEnabled = 2007
, ServiceUIDMismatch = 2008
,
PackageAutoEnableUndetermined = 2009
, ClientCompatibilityError = 2010
, PackagePreviouslyDeleted = 2011
, SSLErrorDetected = 2012
,
GeneralSyncError = 4000
, GeneralReplicationError = 4001
, Unauthorized = 4002
, PackageConfigurationNotFound = 4003
,
AccessTokenRequired = 4004
, ServerRegistrationFailed = 4005
, LockPackageFailed = 4006
, UnlockPackageFailed = 4007
,
EnablePackageFailed = 4008
, UpdateLocalFailed = 4009
, UpdateServerFailed = 4010
, PackageValidationFailed = 4011
,
FileConflict = 4012
, CreateVersionFailed = 4013
, PackageDeletionFailed = 4014
, PrintDiagnosticsFailed = 4015
,
AccessForbidden = 4016
} |
|
enum class | RegisterServerResultCodes { Success = 0
, ServerAlreadyRegistered = 1
, GeneralError = 2
, IncompatibleClient = 3
} |
|
enum class | EnablePackageResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, PackageAlreadyEnabled = 2
, PackagePreviouslyDeleted = 3
,
ServerURLNotValid = 4
, GeneralError = 5
, IncompatibleClient = 6
} |
|
enum class | CreateVersionResultCodes { Success = 0
, PackageConfigurationNotFound = 1
, GeneralError = 2
, IncompatibleClient = 3
} |
|
enum class | LockPackageResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, PackageAlreadyLocked = 2
, FilesCheckedOutElsewhere = 3
,
ProcessNotFound = 4
, PackageNotEnabled = 5
, PackageProcessing = 6
, GeneralError = 7
,
IncompatibleClient = 8
} |
|
enum class | UnlockPackageResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, PackageNotLocked = 2
, GeneralError = 3
,
IncompatibleClient = 4
} |
|
enum class | SyncNowResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, PackageNotEnabled = 2
, PackageLocked = 3
,
GeneralError = 4
, IncompatibleClient = 5
} |
|
enum class | UpdateServerResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, LocalFileNotFound = 2
, ServerFileNotFound = 3
,
ServerFileCheckedOut = 4
, GeneralError = 5
, IncompatibleClient = 6
} |
|
enum class | UpdateLocalResultCodes {
Success = 0
, PackageConfigurationNotFound = 1
, LocalFileNotFound = 2
, ServerFileNotFound = 3
,
GeneralError = 4
, IncompatibleClient = 5
} |
|
enum class | PrintDiagnosticsResultCodes { Success = 0
, GeneralError = 1
, IncompatibleClient = 2
} |
|
using | RegistrationWrapper = std::unique_ptr< RegistrationWrapperImpl, void(*)(RegistrationWrapperImpl *)> |
|
|
static bool | LoadPackageConfiguration (const std::string &packageUID, PackageConfiguration &instance) |
|
static bool | SavePackageConfiguration (const PackageConfiguration &instance) |
|
static RegisterServerResultCodes | RegisterServer (const std::string &serverURL, bool showUI=false) |
|
static concurrency::task< RegisterServerResultCodes > | RegisterServerTask (const std::string &serverURL, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static EnablePackageResultCodes | EnablePackage (const std::string &packageUID, const std::string &localRoot="", const std::string &serverURL="", bool showUI=false) |
|
static concurrency::task< EnablePackageResultCodes > | EnablePackageTask (const std::string &packageUID, const std::string &localRoot="", const std::string &serverURL="", bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static CreateVersionResultCodes | CreateVersion (const std::string &packageUID, const std::string &comment="", bool showUI=false) |
|
static concurrency::task< CreateVersionResultCodes > | CreateVersionTask (const std::string &packageUID, const std::string &comment="", bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static LockPackageResultCodes | LockPackage (const std::string &packageUID, const int &ownerProcess=0, bool showUI=false) |
|
static concurrency::task< LockPackageResultCodes > | LockPackageTask (const std::string &packageUID, const int &ownerProcess=0, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static UnlockPackageResultCodes | UnlockPackage (const std::string &packageUID, bool discardChanges=false, bool showUI=false) |
|
static concurrency::task< UnlockPackageResultCodes > | UnlockPackageTask (const std::string &packageUID, bool discardChanges=false, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static SyncNowResultCodes | SyncNow (const std::string &packageUID, bool showUI=false) |
|
static concurrency::task< SyncNowResultCodes > | SyncNowTask (const std::string &packageUID, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static UpdateServerResultCodes | UpdateServer (const std::string &packageUID, const std::string &filePath, bool showUI=false) |
|
static concurrency::task< UpdateServerResultCodes > | UpdateServerTask (const std::string &packageUID, const std::string &filePath, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static UpdateLocalResultCodes | UpdateLocal (const std::string &packageUID, const std::string &filePath, bool showUI=false) |
|
static concurrency::task< UpdateLocalResultCodes > | UpdateLocalTask (const std::string &packageUID, const std::string &filePath, bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static PrintDiagnosticsResultCodes | PrintDiagnostics (bool showUI=false) |
|
static concurrency::task< PrintDiagnosticsResultCodes > | PrintDiagnosticsTask (bool showUI=false, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static std::vector< std::string > | ListServerURLs () |
|
static std::vector< PackageConfiguration > | ListServerConfigurations () |
|
static std::vector< PackageConfiguration > | ListPackageConfigurations () |
|
static std::vector< PackageConfiguration > | FindPackageConfigurations (const std::string &jsonPath, const std::string &testValue, bool negate=false) |
|
static std::unordered_map< std::string, std::vector< std::string > > | FindPackageConfigurationItems (const std::string &tagName, const std::string &tagValue) |
|
static std::unordered_map< std::string, std::vector< std::string > > | FindPackageConfigurationItems (const std::unordered_map< std::string, std::string > &tagCriteria) |
|
static std::vector< LocalTagRecord > | FindTags (const std::string &filter="", const std::string &serviceUID="", bool fuzzyMatch=false) |
|
static std::vector< LocalFileRecord > | FindFiles (const std::string &tagName, const std::string &tagValue, const std::string &serviceUID="", bool fuzzyMatch=false) |
|
static std::vector< LocalFileRecord > | FindFiles (const std::unordered_map< std::string, std::string > &tagCriteria, const std::string &serviceUID="", bool fuzzyMatch=false) |
|
static std::vector< std::string > | GetDeletedPackages (const std::string &serviceUID="") |
|
static std::vector< std::string > | GetArchivedPackages (const std::string &serviceUID="") |
|
static std::string | GetShellExtensionName () |
|
static PackageMetrics | LoadPackageMetrics (const std::string &packageUID) |
|
static ConfigSchema | LoadConfigSchema (const std::string &root) |
|
static std::vector< std::string > | GetPermittedValues (const std::string &configPath) |
|
static bool | IsMineTrustConnectorInstalled () |
|
static bool | IsMineTrustConnectorRunning () |
|
static RegistrationWrapper | RegisterEvents (std::function< void(const MTConnectorEvent &)> callback, const std::list< LogEvent > &eventIDs={}) |
|
static std::vector< std::string > | EnumerateLocalContents (const std::string &packageUID) |
|
static std::vector< std::string > | EnumerateLocalFilesByTag (const std::string &packageUID, const std::string &tagName, const std::string &tagValue) |
|
static bool | IsInScope (const std::string &packageUID, const std::string &localFilePath) |
|
static void | IncludeInPackage (PackageConfiguration &instance, const std::string &localFilePath, std::function< void(IncludeConfiguration &)> configureInclusion) |
|
static void | ExcludeFromPackage (PackageConfiguration &instance, const std::string &localFilePath) |
|
static void | TagFile (PackageConfiguration &instance, const std::string &localFilePath, const std::string &tagName, const std::string &tagValue) |
|
static concurrency::task< void > | ReceiveFiles (const std::vector< LocalFileRecord > &selection, std::function< void(const std::vector< LocalFileRecord > &)> filesReceivedCallback, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
static concurrency::task< void > | SendFiles (const std::vector< LocalFileRecord > &selection, std::function< PackageConfiguration(const LocalFileRecord &)> packageSelectionCallback, concurrency::cancellation_token cancel=concurrency::cancellation_token::none()) |
|
Exposes the Interop layer to the managed MineTrustConnector Core library
- Examples
- NativeApp.cpp.