Lines Matching refs:Action

58 const char* State::GetActionName(Action action)
60 static const std::map<Action, const char*> actionDesc = {
61 {Action::TRANS_TO_IDLE, "TRANS_TO_IDLE"},
62 {Action::TRANS_TO_INIT, "TRANS_TO_INIT"},
63 {Action::TRANS_TO_PREPARING, "TRANS_TO_PREPARING"},
64 {Action::TRANS_TO_READY, "TRANS_TO_READY"},
65 {Action::TRANS_TO_PLAYING, "TRANS_TO_PLAYING"},
66 {Action::TRANS_TO_PAUSE, "TRANS_TO_PAUSE"},
67 {Action::TRANS_TO_STOPPED, "TRANS_TO_STOPPED"},
68 {Action::TRANS_TO_EOS, "TRANS_TO_EOS"},
69 {Action::ACTION_PENDING, "ACTION_PENDING"},
70 {Action::ACTION_BUTT, "ACTION_BUTT"}
79 std::tuple<ErrorCode, Action> State::Enter(Intent intent)
83 return {ErrorCode::SUCCESS, Action::ACTION_BUTT};
89 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param)
101 std::tuple<ErrorCode, Action> State::SetSource(const Plugin::Any& param)
104 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
106 std::tuple<ErrorCode, Action> State::Prepare()
108 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
110 std::tuple<ErrorCode, Action> State::Play()
112 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
114 std::tuple<ErrorCode, Action> State::Stop()
116 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
119 std::tuple<ErrorCode, Action> State::Reset()
121 return {ErrorCode::SUCCESS, Action::TRANS_TO_IDLE};
124 std::tuple<ErrorCode, Action> State::Pause()
126 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
128 std::tuple<ErrorCode, Action> State::Resume()
130 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
132 std::tuple<ErrorCode, Action> State::Seek(const Plugin::Any& param)
135 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
137 std::tuple<ErrorCode, Action> State::SetAttribute()
139 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
141 std::tuple<ErrorCode, Action> State::OnReady()
143 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
145 std::tuple<ErrorCode, Action> State::OnError(const Plugin::Any& param)
152 return {ErrorCode::SUCCESS, Action::TRANS_TO_INIT};
154 std::tuple<ErrorCode, Action> State::OnComplete()
156 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT};
158 std::tuple<ErrorCode, Action> State::DispatchIntent(Intent intent, const Plugin::Any& param)
161 Action nextAction = Action::ACTION_BUTT;