20
20
#pragma once
21
21
22
22
#include " Module.h"
23
- #include < interfaces/IHdcpProfile.h>
24
- #include < interfaces/json/JHdcpProfile.h>
23
+ #include < interfaces/IHdcpProfile.h> // Ensure this includes the definition of HDCPStatus
25
24
#include < interfaces/json/JsonData_HdcpProfile.h>
26
- #include < interfaces/IHdcpProfile.h> // Ensure this includes the definition of HDCPStatus
25
+ #include < interfaces/json/JHdcpProfile.h>
26
+ #include < interfaces/IConfiguration.h>
27
27
#include " UtilsLogging.h"
28
- #include " UtilsJsonRpc.h" // for JsonValue, JsonObject
29
28
#include " tracing/Logging.h"
30
29
31
30
31
+
32
32
namespace WPEFramework {
33
33
34
34
namespace Plugin {
@@ -39,45 +39,45 @@ namespace WPEFramework {
39
39
class Notification : public RPC ::IRemoteConnection::INotification, public Exchange::IHdcpProfile::INotification
40
40
{
41
41
private:
42
- Notification () = delete ;
43
- Notification (const Notification&) = delete ;
44
- Notification& operator =(const Notification&) = delete ;
42
+ Notification () = delete ;
43
+ Notification (const Notification&) = delete ;
44
+ Notification& operator =(const Notification&) = delete ;
45
45
46
- public:
47
- explicit Notification (HdcpProfile *parent)
48
- : _parent(*parent)
49
- {
50
- ASSERT (parent != nullptr );
51
- }
52
-
53
- virtual ~Notification ()
54
- {
55
- }
56
-
57
- BEGIN_INTERFACE_MAP (Notification)
58
- INTERFACE_ENTRY (Exchange::IHdcpProfile::INotification)
59
- INTERFACE_ENTRY (RPC::IRemoteConnection::INotification)
60
- END_INTERFACE_MAP
46
+ public:
47
+ explicit Notification (HdcpProfile *parent)
48
+ : _parent(*parent)
49
+ {
50
+ ASSERT (parent != nullptr );
51
+ }
52
+
53
+ virtual ~Notification ()
54
+ {
55
+ }
61
56
62
- void Activated (RPC::IRemoteConnection *) override
63
- {
57
+ BEGIN_INTERFACE_MAP (Notification)
58
+ INTERFACE_ENTRY (Exchange::IHdcpProfile::INotification)
59
+ INTERFACE_ENTRY (RPC::IRemoteConnection::INotification)
60
+ END_INTERFACE_MAP
61
+
62
+ void Activated (RPC::IRemoteConnection *) override
63
+ {
64
64
LOGINFO (" HdcpProfile Notification Activated" );
65
- }
66
-
67
- void Deactivated (RPC::IRemoteConnection *connection) override
68
- {
69
- LOGINFO (" HdcpProfile Notification Deactivated" );
70
- _parent.Deactivated (connection);
71
- }
65
+ }
66
+
67
+ void Deactivated (RPC::IRemoteConnection *connection) override
68
+ {
69
+ LOGINFO (" HdcpProfile Notification Deactivated" );
70
+ _parent.Deactivated (connection);
71
+ }
72
72
73
- void OnDisplayConnectionChanged (const Exchange::IHdcpProfile::HDCPStatus& hdcpstatus) override
74
- {
75
- LOGINFO (" OnDisplayConnectionChanged: isConnected: %d isHDCPCompliant: %d isHDCPEnabled: %d hdcpReason: %d supportedHDCPVersion: %s receiverHDCPVersion: %s currentHDCPVersion: %s" , hdcpstatus.isConnected , hdcpstatus.isHDCPCompliant , hdcpstatus.isHDCPEnabled , hdcpstatus.hdcpReason , hdcpstatus.supportedHDCPVersion .c_str (), hdcpstatus.receiverHDCPVersion .c_str (), hdcpstatus.currentHDCPVersion .c_str ());
76
- Exchange::JHdcpProfile::Event::OnDisplayConnectionChanged (_parent, hdcpstatus);
77
- }
78
-
79
- private:
80
- HdcpProfile &_parent;
73
+ void OnDisplayConnectionChanged (const Exchange::IHdcpProfile::HDCPStatus& hdcpstatus) override
74
+ {
75
+ LOGINFO (" OnDisplayConnectionChanged: isConnected: %d isHDCPCompliant: %d isHDCPEnabled: %d hdcpReason: %d supportedHDCPVersion: %s receiverHDCPVersion: %s currentHDCPVersion: %s" , hdcpstatus.isConnected , hdcpstatus.isHDCPCompliant , hdcpstatus.isHDCPEnabled , hdcpstatus.hdcpReason , hdcpstatus.supportedHDCPVersion .c_str (), hdcpstatus.receiverHDCPVersion .c_str (), hdcpstatus.currentHDCPVersion .c_str ());
76
+ Exchange::JHdcpProfile::Event::OnDisplayConnectionChanged (_parent, hdcpstatus);
77
+ }
78
+
79
+ private:
80
+ HdcpProfile &_parent;
81
81
};
82
82
83
83
public:
@@ -86,27 +86,28 @@ namespace WPEFramework {
86
86
87
87
HdcpProfile ();
88
88
virtual ~HdcpProfile ();
89
-
89
+
90
90
BEGIN_INTERFACE_MAP (HdcpProfile)
91
91
INTERFACE_ENTRY (PluginHost::IPlugin)
92
92
INTERFACE_ENTRY (PluginHost::IDispatcher)
93
93
INTERFACE_AGGREGATE (Exchange::IHdcpProfile, _hdcpProfile)
94
94
END_INTERFACE_MAP
95
95
96
96
// IPlugin methods
97
- // -------------------------------------------------------------------------------------------------------
98
- const string Initialize (PluginHost::IShell* service) override ;
99
- void Deinitialize (PluginHost::IShell* service) override ;
100
- string Information () const override ;
97
+ // -------------------------------------------------------------------------------------------------------
98
+ const string Initialize (PluginHost::IShell* service) override ;
99
+ void Deinitialize (PluginHost::IShell* service) override ;
100
+ string Information () const override ;
101
101
102
- private:
103
- void Deactivated (RPC::IRemoteConnection* connection);
102
+ private:
103
+ void Deactivated (RPC::IRemoteConnection* connection);
104
104
105
- private:
106
- PluginHost::IShell *_service{};
107
- uint32_t _connectionId{};
108
- Exchange::IHdcpProfile *_hdcpProfile{};
109
- Core::Sink<Notification> _hdcpProfileNotification;
105
+ private:
106
+ PluginHost::IShell *_service{};
107
+ uint32_t _connectionId{};
108
+ Exchange::IHdcpProfile *_hdcpProfile{};
109
+ Core::Sink<Notification> _hdcpProfileNotification;
110
+ Exchange::IConfiguration* configure;
110
111
};
111
112
112
113
} // namespace Plugin
0 commit comments