Pepper_47_C++_interfaces
device_control_samsung.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics, Visual Display Division.
3  * All Rights Reserved.
4  *
5  * @author Michal Majczak <m.majczak@samsung.com>
6  *
7  * Use of this source code is governed by a BSD-style license that can be
8  * found in the Chromium-LICENSE file.
9  */
10 
11 #ifndef PPAPI_CPP_SAMSUNG_DEVICE_CONTROL_SAMSUNG_H_
12 #define PPAPI_CPP_SAMSUNG_DEVICE_CONTROL_SAMSUNG_H_
13 
14 #include "ppapi/c/samsung/ppb_device_control_samsung.h"
16 #include "ppapi/cpp/resource.h"
17 
18 namespace pp {
19 
20 class InstanceHandle;
21 
23 public:
24  DeviceControlSamsung(const InstanceHandle& instance);
25 
27 
29 
31 
33  /**
34  * ChangeSource() changes current TV source to the specified one.
35  *
36  * @param[in] sourceID A <code>uint32_t</code> identifying source to change
37  * to.
38  *
39  * @param[in] callback <code>CompletionCallback</code> that will be called
40  * upon completion.
41  *
42  * @return <code>PP_Error<code> with error code.
43  */
44  int32_t ChangeSource(uint32_t sourceID, const CompletionCallback& callback);
45 };
46 
47 } // namespace pp
48 
49 
50 #endif /* PPAPI_CPP_SAMSUNG_DEVICE_CONTROL_SAMSUNG_H_ */
PassRef
Definition: pass_ref.h:17
A reference counted module resource.
Definition: resource.h:20
int32_t ChangeSource(uint32_t sourceID, const CompletionCallback &callback)