Re-organized sub-directory by category
[staging/basesystem.git] / service / system / logger_service / server / include / ss_logger_error_event_can_evt_reply.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 ///////////////////////////////////////////////////////////////////////////////
18 /// \ingroup  tag_SS_LoggerService
19 /// \brief    This file supports notifying CAN abou HK and CAN error events
20 ///
21 ///////////////////////////////////////////////////////////////////////////////
22 #ifndef LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_ERROR_EVENT_CAN_EVT_REPLY_H_
23 #define LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_ERROR_EVENT_CAN_EVT_REPLY_H_
24
25 #include <native_service/frameworkunified_types.h>
26 #include <system_service/ss_logger_service_protocol.h>
27
28 #include "ss_logger_cfg.h"
29 #include "ss_logger_error_event_cfg.h"
30 #include "ss_logger_common.h"
31 class CLoggerErrorEventCANEvtReply {
32  public:
33   CLoggerErrorEventCANEvtReply();
34   virtual ~CLoggerErrorEventCANEvtReply();
35   EFrameworkunifiedStatus Initialize(CLoggerCfg* f_pLoggerCfg);
36
37   BOOL IsEventNeeded(TLoggerErrorEvent f_event);
38   EFrameworkunifiedStatus PublishStartEvent(HANDLE f_hApp, TLoggerErrorEvent f_event);
39   EFrameworkunifiedStatus PublishEndEvent(HANDLE f_hApp, TLoggerErrorEvent f_event,
40                              UI_32 f_triggerNumber, uint32_t f_time);
41
42   EFrameworkunifiedStatus PublishErrorEvent(HANDLE f_hApp, TLoggerErrorEvent f_event,
43                                BOOL f_isValid, UI_32 f_triggerNumber,
44                                uint32_t f_time);
45  private:
46 };
47
48 #endif  // LOGGER_SERVICE_SERVER_INCLUDE_SS_LOGGER_ERROR_EVENT_CAN_EVT_REPLY_H_