Skip to content

Commit

Permalink
Implement get supported mds languages set mds language (#86)
Browse files Browse the repository at this point in the history
Implemet manipulations to get and set supported languages

# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
  • Loading branch information
antipovi-draeger authored Sep 9, 2024
1 parent 32bf605 commit 50ac8af
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- manipulation ProvideInformationAboutLastCalibration for devices
- manipulation ProvideInformationAboutNextCalibration for devices
- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings
- manipulation SetMdsUiLanguage for devices
- manipulation GetMdsUiSupportedLanguages for devices

## [4.1.0] - 2024-02-22

Expand Down
9 changes: 9 additions & 0 deletions src/t2iapi/device/device_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ message SetLanguageRequest {
string language = 1; // the language to set as specified by RFC5646, e.g. en-US
}

/*
Request to set the language of the component with a UI represented by the MDS to the given language.
*/
message SetMdsUiLanguageRequest {
string handle = 1; // pm:MdsDescriptor/@Handle representing the component with a UI for which the language
// shall be set
string language = 2; // the language to set as specified by RFC5646, e.g. en-US
}

/*
Request a list of removable descriptors of the given class.
*/
Expand Down
9 changes: 9 additions & 0 deletions src/t2iapi/device/device_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ import "t2iapi/biceps/metadata.proto";
option java_package = "com.draeger.medical.t2iapi.device";
option java_outer_classname = "DeviceResponses";

/*
Response containing all languages supported by the UI component represented by an MDS.
*/
message GetMdsUiSupportedLanguagesResponse {
BasicResponse status = 1;
repeated string languages = 2; // list of languages as specified by RFC5646 which are supported by the
// UI component represented by an MDS
}

/*
Response which contains all descriptor handles that can be removed and reinserted into the MDIB of the device.
*/
Expand Down
14 changes: 13 additions & 1 deletion src/t2iapi/device/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ service DeviceService {
*/
rpc SetLanguage (t2iapi.device.SetLanguageRequest) returns (BasicResponse);

/*
Set the language of the component with a UI represented by the MDS to the given language.
The manipulated state shall be persistent until a next manipulation call. If the device is not able to maintain
the static state, it shall return RESULT_NOT_SUPPORTED.
*/
rpc SetMdsUiLanguage (t2iapi.device.SetMdsUiLanguageRequest) returns (BasicResponse);

/*
Get all supported languages of the component with a UI represented by the MDS with the provided handle.
*/
rpc GetMdsUiSupportedLanguages (t2iapi.BasicHandleRequest) returns (GetMdsUiSupportedLanguagesResponse);

/*
Get all descriptor handles which can be removed and reinserted into the MDIB of the device
and whose descriptors are of the given class.
Expand Down Expand Up @@ -128,7 +140,7 @@ service DeviceService {
*/
rpc ProvideInformationAboutLastCalibration (t2iapi.device.ProvideInformationAboutLastCalibrationRequest)
returns (BasicResponse);

/*
Provide information about the pm:NextCalibration for the given pm:AbstractDeviceComponentDescriptor.
If the device is not able to provide the information, it shall return RESULT_NOT_SUPPORTED.
Expand Down

0 comments on commit 50ac8af

Please sign in to comment.