00001 // -*- c -*- 00002 00003 // generated code -- do not edit 00004 00005 #ifndef __SA_SENSOR_LIST_LOG_DB_H__ 00006 #define __SA_SENSOR_LIST_LOG_DB_H__ 00007 00008 #include <glib.h> 00009 #include "application_config.h" 00010 #include "ld_log_db.h" 00011 #include "sqlite_cl2.h" 00012 #include "common/utilities.h" 00013 00014 G_BEGIN_DECLS 00015 00016 char const *get_create_tables_sql(); 00017 00018 struct _PreparedStmts { 00019 sqlite3_stmt* transactionBeginStmt; 00020 sqlite3_stmt* transactionCommitStmt; 00021 sqlite3_stmt* transactionRollbackStmt; 00022 sqlite3_stmt* statusStmt; 00023 #if __MARK_ENABLED__ 00024 sqlite3_stmt* markStmt; 00025 #endif 00026 #if __APPMESSAGE_ENABLED__ 00027 sqlite3_stmt* appmessageStmt; 00028 #endif 00029 #if __TIMER_ENABLED__ 00030 sqlite3_stmt* timerStmt; 00031 #endif 00032 #if defined(__EPOC32__) 00033 sqlite3_stmt* flightmodeStmt; 00034 #endif 00035 #if defined(__EPOC32__) 00036 sqlite3_stmt* batteryStmt; 00037 #endif 00038 #if defined(__EPOC32__) 00039 sqlite3_stmt* registrationStmt; 00040 #endif 00041 #if defined(__EPOC32__) 00042 sqlite3_stmt* signalStmt; 00043 #endif 00044 #if defined(__EPOC32__) 00045 sqlite3_stmt* operatorStmt; 00046 #endif 00047 #if __LIGHT_ENABLED__ 00048 sqlite3_stmt* lightStmt; 00049 #endif 00050 #if __WITH_TAP_SENSORS__ 00051 sqlite3_stmt* tapStmt; 00052 #endif 00053 #if __SINGLETAP_ENABLED__ 00054 #endif 00055 #if __DOUBLETAP_ENABLED__ 00056 #endif 00057 #if __PROXIMITY_ENABLED__ 00058 sqlite3_stmt* proximityStmt; 00059 #endif 00060 #if __MUSIC_ENABLED__ 00061 #endif 00062 #if __MUSIC_ENABLED__ 00063 sqlite3_stmt* musicplayerStmt; 00064 #endif 00065 #if __MUSIC_ENABLED__ 00066 sqlite3_stmt* musictrackStmt; 00067 #endif 00068 #if __HTTPURL_ENABLED__ 00069 sqlite3_stmt* httpurlStmt; 00070 #endif 00071 #if __WEBURL_ENABLED__ 00072 sqlite3_stmt* weburlStmt; 00073 #endif 00074 #if __PROFILE_ENABLED__ 00075 sqlite3_stmt* profileStmt; 00076 #endif 00077 #if __CELLID_ENABLED__ 00078 sqlite3_stmt* cellidStmt; 00079 #endif 00080 #if __BTPROX_ENABLED__ 00081 sqlite3_stmt* btproxScanStmt; 00082 sqlite3_stmt* btproxItemStmt; 00083 #endif 00084 #if __POSITION_ENABLED__ 00085 sqlite3_stmt* positionStmt; 00086 #endif 00087 #if __GPS_ENABLED__ 00088 #endif 00089 #if __CELLPOS_ENABLED__ 00090 #endif 00091 #if __APPFOCUS_ENABLED__ 00092 sqlite3_stmt* appfocusStmt; 00093 #endif 00094 #if __KEYPRESS_ENABLED__ 00095 sqlite3_stmt* keypressStmt; 00096 #endif 00097 #if __INACTIVITY_ENABLED__ 00098 sqlite3_stmt* inactivityStmt; 00099 #endif 00100 #if __INDICATOR_ENABLED__ 00101 sqlite3_stmt* indicatorStmt; 00102 #endif 00103 #if __CALLSTATUS_ENABLED__ 00104 sqlite3_stmt* callstatusStmt; 00105 #endif 00106 #if __SMSEVENT_ENABLED__ 00107 sqlite3_stmt* smseventStmt; 00108 #endif 00109 }; 00110 typedef struct _PreparedStmts PreparedStmts; 00111 00112 gboolean prepare_sql_statements(LogDb *self, GError **error); 00113 00114 void destroy_sql_statements(LogDb *self); 00115 00116 #if __MARK_ENABLED__ 00117 00118 gboolean log_db_log_mark(LogDb *self, char const *msgText, GError **error); 00119 00120 #endif 00121 00122 #if __APPMESSAGE_ENABLED__ 00123 00124 gboolean log_db_log_appmessage(LogDb *self, char const *msgText, GError **error); 00125 00126 #endif 00127 00128 #if __TIMER_ENABLED__ 00129 00130 gboolean log_db_log_timer(LogDb *self, GError **error); 00131 00132 #endif 00133 00134 #if defined(__EPOC32__) 00135 00136 gboolean log_db_log_flightmode(LogDb *self, gboolean value, GError **error); 00137 00138 #endif 00139 00140 #if defined(__EPOC32__) 00141 00142 gboolean log_db_log_battery(LogDb *self, int status, int level, GError **error); 00143 00144 #endif 00145 00146 #if defined(__EPOC32__) 00147 00148 gboolean log_db_log_registration(LogDb *self, int status, GError **error); 00149 00150 #endif 00151 00152 #if defined(__EPOC32__) 00153 00154 gboolean log_db_log_signal(LogDb *self, int dbm, int bars, GError **error); 00155 00156 #endif 00157 00158 #if defined(__EPOC32__) 00159 00160 gboolean log_db_log_operator(LogDb *self, char const *operatorName, GError **error); 00161 00162 #endif 00163 00164 #if __LIGHT_ENABLED__ 00165 00166 gboolean log_db_log_light(LogDb *self, int level, GError **error); 00167 00168 #endif 00169 00170 #if __WITH_TAP_SENSORS__ 00171 00172 gboolean log_db_log_tap(LogDb *self, int direction, gboolean isDouble, GError **error); 00173 00174 #endif 00175 00176 #if __PROXIMITY_ENABLED__ 00177 00178 gboolean log_db_log_proximity(LogDb *self, gboolean isClose, GError **error); 00179 00180 #endif 00181 00182 #if __MUSIC_ENABLED__ 00183 00184 gboolean log_db_log_musicplayer(LogDb *self, int eventId, char const *detail, GError **error); 00185 00186 #endif 00187 00188 #if __MUSIC_ENABLED__ 00189 00190 gboolean log_db_log_musictrack(LogDb *self, char const *url, char const *title, char const *artist, char const *album, GError **error); 00191 00192 #endif 00193 00194 #if __HTTPURL_ENABLED__ 00195 00196 gboolean log_db_log_httpurl(LogDb *self, char const *url, GError **error); 00197 00198 #endif 00199 00200 #if __WEBURL_ENABLED__ 00201 00202 gboolean log_db_log_weburl(LogDb *self, char const *name, char const *url, GError **error); 00203 00204 #endif 00205 00206 #if __PROFILE_ENABLED__ 00207 00208 gboolean log_db_log_profile(LogDb *self, int profileId, char const *profileName, GError **error); 00209 00210 #endif 00211 00212 #if __CELLID_ENABLED__ 00213 00214 gboolean log_db_log_cellid(LogDb *self, char const *countryCode, char const *networkCode, int areaCode, int cellId, GError **error); 00215 00216 #endif 00217 00218 #if __POSITION_ENABLED__ 00219 00220 gboolean log_db_log_position(LogDb *self, double latitude, double longitude, double altitude, double verticalAccuracy, double horizontalAccuracy, char const *course, char const *satellites, GError **error); 00221 00222 #endif 00223 00224 #if __APPFOCUS_ENABLED__ 00225 00226 gboolean log_db_log_appfocus(LogDb *self, sqlite3_int64 appUid, char const *appCaption, GError **error); 00227 00228 #endif 00229 00230 #if __KEYPRESS_ENABLED__ 00231 00232 gboolean log_db_log_keypress(LogDb *self, char const *aPressTimes, GError **error); 00233 00234 #endif 00235 00236 #if __INACTIVITY_ENABLED__ 00237 00238 gboolean log_db_log_inactivity(LogDb *self, gboolean value, GError **error); 00239 00240 #endif 00241 00242 #if __INDICATOR_ENABLED__ 00243 00244 gboolean log_db_log_indicator(LogDb *self, guint32 value, guint32 caps, GError **error); 00245 00246 #endif 00247 00248 #if __CALLSTATUS_ENABLED__ 00249 00250 gboolean log_db_log_callstatus(LogDb *self, int value, char const *aNumber, char const *aContactName, int aStartTime, int aOsTerm, int aNetTerm, GError **error); 00251 00252 #endif 00253 00254 #if __SMSEVENT_ENABLED__ 00255 00256 gboolean log_db_log_smsevent(LogDb *self, char const *aEvType, char const *aNumber, char const *aContactName, char const *aBodyText, GError **error); 00257 00258 #endif 00259 00260 G_END_DECLS 00261 00262 #if __MARK_ENABLED__ 00263 00264 #endif 00265 00266 #if __APPMESSAGE_ENABLED__ 00267 00268 #endif 00269 00270 #if __TIMER_ENABLED__ 00271 00272 #endif 00273 00274 #if defined(__EPOC32__) 00275 00276 #endif 00277 00278 #if defined(__EPOC32__) 00279 00280 #endif 00281 00282 #if defined(__EPOC32__) 00283 00284 #endif 00285 00286 #if defined(__EPOC32__) 00287 00288 #endif 00289 00290 #if defined(__EPOC32__) 00291 00292 #endif 00293 00294 #if __LIGHT_ENABLED__ 00295 00296 #endif 00297 00298 #if __WITH_TAP_SENSORS__ 00299 00300 #endif 00301 00302 #if __PROXIMITY_ENABLED__ 00303 00304 #endif 00305 00306 #if __MUSIC_ENABLED__ 00307 00308 #endif 00309 00310 #if __MUSIC_ENABLED__ 00311 00312 #endif 00313 00314 #if __HTTPURL_ENABLED__ 00315 00316 #endif 00317 00318 #if __WEBURL_ENABLED__ 00319 00320 #endif 00321 00322 #if __PROFILE_ENABLED__ 00323 00324 #endif 00325 00326 #if __CELLID_ENABLED__ 00327 00328 #endif 00329 00330 #if __POSITION_ENABLED__ 00331 00332 #endif 00333 00334 #if __APPFOCUS_ENABLED__ 00335 00336 #endif 00337 00338 #if __KEYPRESS_ENABLED__ 00339 00340 #endif 00341 00342 #if __INACTIVITY_ENABLED__ 00343 00344 #endif 00345 00346 #if __INDICATOR_ENABLED__ 00347 00348 #endif 00349 00350 #if __CALLSTATUS_ENABLED__ 00351 00352 #endif 00353 00354 #if __SMSEVENT_ENABLED__ 00355 00356 #endif 00357 00358 #endif // __SA_SENSOR_LIST_LOG_DB_H__
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1