ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
shutterptpRpcErrors.hpp
Go to the documentation of this file.
1
7
8#ifndef FCF_DEVMGR_DEVICE_SHUTTER_PTP_RPC_ERRORS_H
9#define FCF_DEVMGR_DEVICE_SHUTTER_PTP_RPC_ERRORS_H
10
11#include <unordered_map>
12
13
15
16 enum {
26 };
27
28 const std::unordered_map<short, std::string> RPC_ERRORS = {
29 {RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
30 {RPC_ERR_NOT_OP_READY, "Cannot enable shutter. Not in READY or FAILURE."},
31 {RPC_ERR_NOT_OP_NOTREADY, "Cannot init shutter. Not in NOTREADY or FAILURE."},
32 {RPC_ERR_STILL_OPENNING, "Not allowed to close the shutter while it is still opening"},
33 {RPC_ERR_STILL_CLOSING, "Not allowed to open the shutter while it is still closing"},
34 {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
35 {RPC_ERR_TIME_IN_PAST, "OpenAt start time is in the past"},
36 {RPC_ERR_CMD_NOT_IMPL, "Open command not supported !"}
37 };
38
39}
40#endif // FCF_DEVMGR_DEVICE_SHUTTER_PTP_RPC_ERRORS_H
ShutterPtp class header file.
Definition shutterptp.hpp:17
const std::unordered_map< short, std::string > RPC_ERRORS
Definition shutterptpRpcErrors.hpp:28
@ RPC_SUCCESS
Definition shutterptpRpcErrors.hpp:17
@ RPC_ERR_STILL_OPENNING
Definition shutterptpRpcErrors.hpp:21
@ RPC_ERR_LOCAL
Definition shutterptpRpcErrors.hpp:23
@ RPC_ERR_STILL_CLOSING
Definition shutterptpRpcErrors.hpp:22
@ RPC_ERR_TIME_IN_PAST
Definition shutterptpRpcErrors.hpp:24
@ RPC_ERR_CMD_NOT_IMPL
Definition shutterptpRpcErrors.hpp:25
@ RPC_ERR_NOT_OP
Definition shutterptpRpcErrors.hpp:18
@ RPC_ERR_NOT_OP_NOTREADY
Definition shutterptpRpcErrors.hpp:20
@ RPC_ERR_NOT_OP_READY
Definition shutterptpRpcErrors.hpp:19