Skip to content

Commit 5cc011e

Browse files
authored
Update HdcpProfileClient.cpp
1 parent 6c996c6 commit 5cc011e

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

HdcpProfileClient/HdcpProfileClient.cpp

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace WPEFramework {
8383
return "Failed to get IHdcpProfile interface";
8484
}
8585

86-
// Query the HDCP status
86+
8787
Exchange::IHdcpProfile::HDCPStatus _hdcpstatus;
8888
bool _success = false;
8989
_remotStoreObject->GetHDCPStatus(_hdcpstatus, _success);
@@ -120,7 +120,7 @@ namespace WPEFramework {
120120
{
121121
LOGINFO("Got IScreenCapture interface-%p", _remotStoreObject1);
122122
}
123-
// Query the screen capture status
123+
124124
Exchange::IScreenCapture::Result result;
125125
_remotStoreObject1->UploadScreenCapture("http://server/cgi-bin/upload.cgi","12345",result);
126126
if (!result.success) {
@@ -129,35 +129,14 @@ namespace WPEFramework {
129129
return "UploadScreenCapture failed";
130130
}
131131
LOGINFO("UploadScreenCapture: result: %d", result.success);
132-
// // Query the notification interface
133-
// Exchange::IHdcpProfile::INotification* notification = m_service->QueryInterfaceByCallsign<Exchange::IHdcpProfile::INotification>("org.rdk.HdcpProfile");
134-
// if (notification == nullptr) {
135-
// LOGINFO("Failed to get notification interface");
136-
// _remotStoreObject->Release();
137-
// return "Failed to get notification interface";
138-
// }
139-
// else
140-
// {
141-
// LOGINFO("Got notification interface-%p", notification);
142-
// }
143132

144-
// Register the notification
145-
_remotStoreObject->Register(&_notification);
146-
147-
_remotStoreObject1->Register(&_notification1);
148-
149-
// //Release the notification interface
150-
// notification->Release();
151-
152-
// // Release the remote store object
153-
// _remotStoreObject->Release();
154133

155134
// On success, return an empty string
156135
return string();
157136
}
158137

159138

160-
//define the onDisplayConnectionChanged method
139+
161140
void HdcpProfileClient::OnDisplayConnectionChanged(const Exchange::IHdcpProfile::HDCPStatus& hdcpstatus)
162141
{
163142
LOGINFO("OnDisplayConnectionChanged callback triggered: isConnected: %d isHDCPCompliant: %d isHDCPEnabled: %d hdcpReason: %d supportedHDCPVersion: %s receiverHDCPVersion: %s currentHDCPVersion: %s",

0 commit comments

Comments
 (0)