-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQADeviceBridge.h
93 lines (77 loc) · 3.03 KB
/
QADeviceBridge.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* (c) 1997-2016 Netflix, Inc. All content herein is protected by
* U.S. copyright and other applicable intellectual property laws and
* may not be copied without the express permission of Netflix, Inc.,
* which reserves all rights. Reuse of any of this content for any
* purpose without the permission of Netflix, Inc. is strictly
* prohibited.
*/
#ifndef QADEVICEBRIDGE_H
#define QADEVICEBRIDGE_H
/* @file QADeviceBridge.h - Used by netflix QA for SDK testing.
*/
#include <nrdbase/Variant.h>
#include <nrdbase/tr1.h>
#include <nrd/NfObject.h>
#ifdef NRDP_HAS_QA
#include "FileSystem.h"
#if 0
Method(isSubtitleSupported) \
Method(setSubtitleSupported) \
Method(configureWeb)
#endif
#define QADevice_Methods(Method) \
Method(configureModelGroupKey) \
Method(configurePreshared) \
Method(getAuthenticationType) \
Method(getDolbyVisionRendering) \
Method(getIpConnectivityMode) \
Method(sendCommand) \
Method(setActiveVideoOutput) \
Method(setCapability) \
Method(setDolbyVisionFileDump) \
Method(setDolbyVisionRendering) \
Method(setIpConnectivityMode) \
Method(setLanguage) \
Method(setProfiles) \
Method(setSupportedVideoOutput) \
Method(setVideoOutputResolution) \
Method(setVolumeControlType) \
Method(toggleScreensaver)
namespace netflix {
namespace device {
class QADeviceBridge : public NfObject
{
NFOBJECT_DECLARE(NfObject, NFOBJECT_NONE, QADevice_Methods);
public:
QADeviceBridge(const std::shared_ptr<FileSystem> &sys);
virtual ~QADeviceBridge();
virtual Variant invoke(int method, const Variant &data);
virtual Flags<NfObject::RequestFlag> requestFlags(const Request &request) const;
private:
Variant getAuthenticationType(const Variant &data);
Variant isSubtitleSupported(const Variant &data);
Variant setSubtitleSupported(const Variant &data);
Variant configurePreshared(const Variant &data);
Variant configureWeb(const Variant &data);
Variant configureModelGroupKey(const Variant &data);
Variant getLanguage(const Variant &data);
Variant setLanguage(const Variant &data);
Variant getCapability(const Variant &data);
Variant setCapability(const Variant &data);
Variant getProfiles(const Variant &data);
Variant setProfiles(const Variant &data);
Variant sendCommand(const Variant &data);
Variant setVideoOutputResolution(const Variant &data);
Variant toggleScreensaver(const Variant &data);
Variant setSupportedVideoOutput(const Variant &data);
Variant setActiveVideoOutput(const Variant &data);
Variant setVolumeControlType(const Variant &data);
Variant getIpConnectivityMode(const Variant &data);
Variant setIpConnectivityMode(const Variant &data);
std::shared_ptr<FileSystem> mSystem;
};
}
}
#endif
#endif // QABRIDGE_H