Lines Matching refs:ErrorCode
79 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter()
83 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Enter()
89 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute()
101 std::tuple<ErrorCode, Action> State::SetSource(const Plugin::Any& param) in SetSource()
104 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetSource()
106 std::tuple<ErrorCode, Action> State::Prepare() in Prepare()
108 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Prepare()
110 std::tuple<ErrorCode, Action> State::Play() in Play()
112 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Play()
114 std::tuple<ErrorCode, Action> State::Stop() in Stop()
116 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Stop()
119 std::tuple<ErrorCode, Action> State::Reset() in Reset()
121 return {ErrorCode::SUCCESS, Action::TRANS_TO_IDLE}; in Reset()
124 std::tuple<ErrorCode, Action> State::Pause() in Pause()
126 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Pause()
128 std::tuple<ErrorCode, Action> State::Resume() in Resume()
130 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Resume()
132 std::tuple<ErrorCode, Action> State::Seek(const Plugin::Any& param) in Seek()
135 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Seek()
137 std::tuple<ErrorCode, Action> State::SetAttribute() in SetAttribute()
139 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetAttribute()
141 std::tuple<ErrorCode, Action> State::OnReady() in OnReady()
143 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in OnReady()
145 std::tuple<ErrorCode, Action> State::OnError(const Plugin::Any& param) in OnError()
147 ErrorCode errorCode = ErrorCode::ERROR_UNKNOWN; in OnError()
148 if (Plugin::Any::IsSameTypeWith<ErrorCode>(param)) { in OnError()
149 errorCode = Plugin::AnyCast<ErrorCode>(param); in OnError()
152 return {ErrorCode::SUCCESS, Action::TRANS_TO_INIT}; in OnError()
154 std::tuple<ErrorCode, Action> State::OnComplete() in OnComplete()
156 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in OnComplete()
158 std::tuple<ErrorCode, Action> State::DispatchIntent(Intent intent, const Plugin::Any& param) in DispatchIntent()
160 ErrorCode rtv = ErrorCode::SUCCESS; in DispatchIntent()