Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
teec_session_samsung.h
1 // Copyright (c) 2017 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_SAMSUNG_TEEC_SESSION_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_TEEC_SESSION_SAMSUNG_H_
7 
8 #include "ppapi/c/samsung/ppb_teec_session_samsung.h"
10 #include "ppapi/cpp/resource.h"
11 #include "ppapi/cpp/samsung/teec_context_samsung.h"
12 
13 namespace pp {
14 
15 class TEECSession_Samsung : public Resource {
16  public:
18 
19  explicit TEECSession_Samsung(PP_Resource context);
20 
21  TEECSession_Samsung(PassRef, PP_Resource resource);
22 
26  explicit TEECSession_Samsung(const TEECContext_Samsung& teecc_context);
27 
29 
30  TEECSession_Samsung& operator=(const TEECSession_Samsung& other);
31 
32  virtual ~TEECSession_Samsung();
33 
59  int32_t Open(PP_TEEC_UUID* destination,
60  uint32_t connection_method,
61  uint32_t connection_data_size,
62  const void* connection_data,
63  PP_TEEC_Operation* operation,
65 
86  int32_t InvokeCommand(
87  uint32_t command_id,
88  PP_TEEC_Operation* operation,
90 
91  int32_t RequestCancellation(const PP_TEEC_Operation* operation,
92  const CompletionCallback& callback);
93 };
94 
95 } // namespace pp
96 
97 #endif // PPAPI_CPP_SAMSUNG_TEEC_SESSION_SAMSUNG_H_
Definition: completion_callback.h:189
Definition: teec_session_samsung.h:15
int32_t Open(PP_TEEC_UUID *destination, uint32_t connection_method, uint32_t connection_data_size, const void *connection_data, PP_TEEC_Operation *operation, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback)
Definition: completion_callback.h:26
PassRef
Definition: pass_ref.h:17
Definition: teec_context_samsung.h:19
A reference counted module resource.
Definition: resource.h:20
int32_t InvokeCommand(uint32_t command_id, PP_TEEC_Operation *operation, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback)