2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoSCVInfoManager.h
14 * @brief This file is definition of CicoSCVInfoManager class
16 //==========================================================================
17 #ifndef __CICO_SC_VINFO_MANAGER_H__
18 #define __CICO_SC_VINFO_MANAGER_H__
23 #include <ico_dbus_amb_efl.h>
24 #include "CicoCommonDef.h"
26 //==========================================================================
27 // Forward declaration
28 //==========================================================================
30 //==========================================================================
32 * @brief This class manage vehicle information
34 //==========================================================================
35 class CicoSCVInfoManager
38 // get CicoSCVInfoManager instance
39 static CicoSCVInfoManager* getInstance(void);
41 // startup communication of vehicle information
44 // teardown communication of vehicle information
47 // get ecore event type
48 int getEcoreEvType(void);
50 // get vehicle information
51 bool getVehicleInfo(int property);
54 // default constructor
58 ~CicoSCVInfoManager();
60 // assignment operator
61 CicoSCVInfoManager& operator=(const CicoSCVInfoManager &object);
64 CicoSCVInfoManager(const CicoSCVInfoManager &object);
66 // start vehicle information monitoring
67 void startMonitoring(void);
69 // stop vehicle information monitoring
70 void stopMonitoring(void);
72 // callback find vehicle information
73 static void dbusAMBFindCB(const char *objectname,
77 ico_dbus_error_t *error);
79 // callback get vehicle information
80 static void dbusAMBGetCB(const char *objectname,
83 union dbus_value_variant value,
86 // callback notify vehicle information
87 static void dbusAMBNotifyCB(const char *objectname,
90 union dbus_value_variant value,
95 // callback function of Ecore_End_Cb
96 static void evVInfoFree(void* user_data, void* func_data);
98 // callback function of ecore timer
99 static Eina_Bool ecoreRetryFindPropCB(void *data);
102 // CicoSCVInfoManager instannce
103 static CicoSCVInfoManager* ms_myInstance;
106 static int ms_ecoreEvType;
109 static dbus_type ms_dbusTypes[ICO_TYPE_MAX];
111 static int ms_retryCnt;
116 #endif // __CICO_SC_VINFO_MANAGER_H__
117 // vim:set expandtab ts=4 sw=4: