Skip to content

Commit f1a20af

Browse files
authored
RDKEMW-6226: Update the IMessageControl.h header file (#422)
* RDKEMW-6226: Update the IMessageControl.h header file Reason for change: Interface header must follow the interface header RDKE coding guidelines Test Procedure: please referred ticket descriptions Risks: Medium Priority: P1 * Updated the return type as Core::hresult
1 parent a727c0d commit f1a20af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apis/MessageControl/IMessageControl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct EXTERNAL IMessageControl : virtual public Core::IUnknown {
3232

3333
enum { ID = ID_MESSAGE_CONTROL };
3434

35-
enum messagetype : uint8_t {
35+
enum MessageType : uint8_t {
3636
TRACING = 1,
3737
LOGGING = 2,
3838
REPORTING = 3,
@@ -41,7 +41,7 @@ struct EXTERNAL IMessageControl : virtual public Core::IUnknown {
4141
};
4242

4343
struct Control {
44-
messagetype type /* @brief Type of message */;
44+
MessageType type /* @brief Type of message */;
4545
string category /* @brief Name of the message category (e.g. Information) */;
4646
string module /* @brief Name of the module the message is originating from (e.g. Plugin_BluetoothControl) */;
4747
bool enabled /* @brief Denotes if the control is enabled (true) or disabled (false) */;
@@ -54,11 +54,11 @@ struct EXTERNAL IMessageControl : virtual public Core::IUnknown {
5454
// @param module Name of the module the message is originating from (e.g. Plugin_BluetoothControl)
5555
// @param category Name of the message category (e.g. Information)
5656
// @param enabled Denotes if control should be enabled (true) or disabled (false)
57-
virtual uint32_t Enable(const messagetype type, const string& category, const string& module, const bool enabled) = 0;
57+
virtual Core::hresult Enable(const MessageType type, const string& category, const string& module, const bool enabled) = 0;
5858

5959
// @property
6060
// @brief Retrieves a list of current message controls
61-
virtual uint32_t Controls(IControlIterator*& control /* @out */) const = 0;
61+
virtual Core::hresult Controls(IControlIterator*& control /* @out */) const = 0;
6262
};
6363

6464
} // namespace Exchange

0 commit comments

Comments
 (0)