# HG changeset patch # User Alain Mazy # Date 1671439978 -3600 # Node ID 1bc055199cd24a1ddf8850e986714a6e291703b1 # Parent 9b2a76fe987a28b53ac95514b47272e7cebb96bd Added a description for all plugins diff -r 9b2a76fe987a -r 1bc055199cd2 Aws/AwsS3StoragePlugin.cpp --- a/Aws/AwsS3StoragePlugin.cpp Fri Dec 16 14:55:14 2022 +0100 +++ b/Aws/AwsS3StoragePlugin.cpp Mon Dec 19 09:52:58 2022 +0100 @@ -253,6 +253,10 @@ return "AWS S3 Storage"; } +const char* AwsS3StoragePluginFactory::GetStorageDescription() +{ + return "Stores the Orthanc storage area in AWS S3"; +} static std::unique_ptr api_; static std::unique_ptr sdkOptions_; diff -r 9b2a76fe987a -r 1bc055199cd2 Aws/AwsS3StoragePlugin.h --- a/Aws/AwsS3StoragePlugin.h Fri Dec 16 14:55:14 2022 +0100 +++ b/Aws/AwsS3StoragePlugin.h Mon Dec 19 09:52:58 2022 +0100 @@ -24,6 +24,7 @@ { public: static const char* GetStoragePluginName(); + static const char* GetStorageDescription(); static IStorage* CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig); static const char* GetConfigurationSectionName() {return "AwsS3Storage";} }; diff -r 9b2a76fe987a -r 1bc055199cd2 Azure/AzureBlobStoragePlugin.cpp --- a/Azure/AzureBlobStoragePlugin.cpp Fri Dec 16 14:55:14 2022 +0100 +++ b/Azure/AzureBlobStoragePlugin.cpp Mon Dec 19 09:52:58 2022 +0100 @@ -174,6 +174,12 @@ return "Azure Blob Storage"; } +const char* AzureBlobStoragePluginFactory::GetStorageDescription() +{ + return "Stores the Orthanc storage area in Azure Blob"; +} + + bool IsSasTokenAccountLevel(utility::string_t sasToken) { // Use cpprestsdk's utility::string_t here since the expected argument is the return value of diff -r 9b2a76fe987a -r 1bc055199cd2 Azure/AzureBlobStoragePlugin.h --- a/Azure/AzureBlobStoragePlugin.h Fri Dec 16 14:55:14 2022 +0100 +++ b/Azure/AzureBlobStoragePlugin.h Mon Dec 19 09:52:58 2022 +0100 @@ -25,6 +25,7 @@ { public: static const char* GetStoragePluginName(); + static const char* GetStorageDescription(); static IStorage* CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig); static const char* GetConfigurationSectionName() {return "AzureBlobStorage";} }; diff -r 9b2a76fe987a -r 1bc055199cd2 Common/StoragePlugin.cpp --- a/Common/StoragePlugin.cpp Fri Dec 16 14:55:14 2022 +0100 +++ b/Common/StoragePlugin.cpp Mon Dec 19 09:52:58 2022 +0100 @@ -527,6 +527,7 @@ OrthancPlugins::OrthancConfiguration orthancConfig; OrthancPlugins::LogWarning(std::string(StoragePluginFactory::GetStoragePluginName()) + " plugin is initializing"); + OrthancPluginSetDescription(context, StoragePluginFactory::GetStorageDescription()); /* Check the version of the Orthanc core */ if (OrthancPluginCheckVersion(context) == 0) diff -r 9b2a76fe987a -r 1bc055199cd2 Google/GoogleStoragePlugin.cpp --- a/Google/GoogleStoragePlugin.cpp Fri Dec 16 14:55:14 2022 +0100 +++ b/Google/GoogleStoragePlugin.cpp Mon Dec 19 09:52:58 2022 +0100 @@ -233,6 +233,11 @@ return "Google Cloud Storage"; } +const char* GoogleStoragePluginFactory::GetStorageDescription() +{ + return "Stores the Orthanc storage area in Google Cloud"; +} + IStorage* GoogleStoragePluginFactory::CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig) { bool enableLegacyStorageStructure; diff -r 9b2a76fe987a -r 1bc055199cd2 Google/GoogleStoragePlugin.h --- a/Google/GoogleStoragePlugin.h Fri Dec 16 14:55:14 2022 +0100 +++ b/Google/GoogleStoragePlugin.h Mon Dec 19 09:52:58 2022 +0100 @@ -27,6 +27,7 @@ { public: static const char* GetStoragePluginName(); + static const char* GetStorageDescription(); static IStorage* CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig); static const char* GetConfigurationSectionName() {return "GoogleCloudStorage";} }; diff -r 9b2a76fe987a -r 1bc055199cd2 NEWS --- a/NEWS Fri Dec 16 14:55:14 2022 +0100 +++ b/NEWS Mon Dec 19 09:52:58 2022 +0100 @@ -1,3 +1,9 @@ +pending changes in the mainline +==================== + +* Added a description for all plugins + + 2022-12-16 - v 2.1.1 ====================