00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KDMCONFIG_H
00027 #define KDMCONFIG_H
00028
00029 #include <config.h>
00030
00031 #include "config.ci"
00032
00033 #ifdef __cplusplus
00034
00035 #include <tqstring.h>
00036 #include <tqstringlist.h>
00037 #include <tqfont.h>
00038 #include <sys/time.h>
00039
00040 extern TQString _stsFile;
00041 extern bool _isLocal;
00042 extern bool _authorized;
00043
00044 CONF_GREET_CPP_DECLS
00045
00046
00047 struct dpySpec;
00048 void decodeSess( dpySpec *sess, TQString &user, TQString &loc );
00049
00050 extern struct timeval st;
00051
00052 inline TQString timestamp() {
00053 struct timeval nst;
00054 gettimeofday(&nst, 0);
00055 if (!st.tv_sec)
00056 gettimeofday(&st, 0);
00057
00058 TQString ret;
00059 ret.sprintf("[%07ld]", (nst.tv_sec - st.tv_sec) * 1000 + (nst.tv_usec - st.tv_usec) / 1000);
00060 return ret;
00061 }
00062
00063 extern "C"
00064 #endif
00065 void init_config( void );
00066
00067 CONF_GREET_C_DECLS
00068
00069 #endif