Skip to content

Commit f87355f

Browse files
committed
RDKEMW-999 : Add COM-RPC support to ResourceManager plugin
Reason For Change: Adding apis fix Test procedure : Test ResourceManager Priority: P1 Signed-off-by: naveen-0206 <naveenkumar.t@ltts.com>
1 parent bae4a2b commit f87355f

File tree

1 file changed

+23
-34
lines changed

1 file changed

+23
-34
lines changed

apis/ResourceManager/IResourceManager.h

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,55 +27,44 @@ namespace WPEFramework
2727
namespace Exchange
2828
{
2929
/* @json 1.0.0 @text:keep */
30-
struct EXTERNAL IResourceManager : virtual public Core::IUnknown
30+
struct EXTERNAL IResourceManager : virtual public Core::IUnknown
3131
{
3232
enum { ID = ID_RESOURCEMANAGER };
3333

34-
// Define string iterator for ResourceManager
3534
using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
3635

37-
// Result struct for SetAVBlocked operation
38-
struct EXTERNAL SetAVBlockedResult {
36+
struct EXTERNAL Success {
3937
bool success;
4038
};
4139

42-
// Result struct for TTS operations
43-
struct EXTERNAL TTSResult {
44-
bool success;
45-
};
46-
47-
/**********************setAVBlocked() - start****************************/
40+
/** Sets AV blocking status for an application */
4841
// @text setAVBlocked
49-
// @brief Sets AV blocking status for an application
50-
// @param appId - in - string
51-
// @param blocked - in - bool
52-
// @param result - out - SetAVBlockedResult
53-
virtual Core::hresult SetAVBlocked(const string& appId, const bool blocked, SetAVBlockedResult& result /* @out */) = 0;
54-
/**********************setAVBlocked() - end******************************/
42+
// @brief Adds/removes the application with the given callsign to/from the AV blacklist
43+
// @param appId The application identifier (callsign)
44+
// @param blocked Whether to block (true) or unblock (false) AV access for the application
45+
// @param result The result of the operation
46+
virtual Core::hresult SetAVBlocked(const string& appId, const bool blocked, Success& result /* @out */) = 0;
5547

56-
/**********************getBlockedAVApplications() - start***************/
57-
// @text getBlockedAVApplications
58-
// @brief Gets list of applications with blocked AV access
59-
// @param clients: list of blocked applications
60-
// @param success: success status
48+
/** Gets a list of blacklisted clients */
49+
// @text getBlockedAVApplications
50+
// @brief Gets a list of blacklisted clients
51+
// @param clients Iterator containing the list of blocked applications
52+
// @param success Indicates whether the operation succeeded
6153
virtual Core::hresult GetBlockedAVApplications(IStringIterator*& clients /* @out */, bool& success /* @out */) const = 0;
62-
/**********************getBlockedAVApplications() - end*****************/
6354

64-
/**********************reserveTTSResource() - start*********************/
55+
/** Reserves the Text To Speech resource for a specified client */
6556
// @text reserveTTSResource
66-
// @brief Reserves TTS resource for a single application
67-
// @param appId - in - string
68-
// @param ttsResult - out - TTSResult
69-
virtual Core::hresult ReserveTTSResource(const string& appId, TTSResult& ttsResult /* @out */) = 0;
70-
/**********************reserveTTSResource() - end***********************/
57+
// @brief Reserves the Text To Speech resource for a specified client
58+
// @param appId The application identifier (callsign)
59+
// @param result The result of the reservation operation
60+
virtual Core::hresult ReserveTTSResource(const string& appId, Success& result /* @out */) = 0;
7161

72-
/**********************reserveTTSResourceForApps() - start***************/
62+
/** Reserves the Text To Speech resource for specified clients */
7363
// @text reserveTTSResourceForApps
74-
// @brief Reserves TTS resource for multiple applications
75-
// @param appids: list of application IDs
76-
// @param ttsResult: result of the TTS reservation
77-
virtual Core::hresult ReserveTTSResourceForApps(IStringIterator* const appids, TTSResult& ttsResult /* @out */) = 0;
78-
/**********************reserveTTSResourceForApps() - end*****************/
64+
// @brief Reserves the Text To Speech resource for specified clients
65+
// @param appids Iterator containing the list of application identifiers (callsigns)
66+
// @param result The result of the reservation operation
67+
virtual Core::hresult ReserveTTSResourceForApps(IStringIterator* const appids, Success& result /* @out */) = 0;
7968
};
8069
} // namespace Exchange
8170
} // namespace WPEFramework

0 commit comments

Comments
 (0)