Updated Changelog
[centerim/davrieb.git] / src / icqcommon.h
blob7da548226b38ba74e9f964cd536133bf1edf7246
1 #ifndef __ICQCOMMON_H__
2 #define __ICQCOMMON_H__
4 #include <string>
5 #include <vector>
6 #include <iostream>
7 #include <fstream>
8 #include <algorithm>
9 #include <list>
10 #include <map>
11 #include <set>
12 #include <memory>
13 #include <sys/time.h>
14 #include <sys/types.h>
15 #include <sys/stat.h>
16 #include <unistd.h>
17 #include <regex.h>
19 #include <config.h>
21 #ifdef HAVE_SSTREAM
22 #include <sstream>
23 #else
24 #include <strstream>
25 #endif
27 #include "kkiproc.h"
28 #include "kkstrtext.h"
29 #include "conf.h"
31 #include <sys/param.h>
33 #ifdef __GNU__
34 #include <sys/statfs.h>
35 #elif defined BSD
36 #include <sys/mount.h>
37 #else
38 #include <sys/vfs.h>
39 #endif
41 #define PERIOD_RECONNECT 40
43 #ifdef ENABLE_NLS
45 #include <libintl.h>
46 #define _(s) ::gettext(s)
48 #else
50 #define _(s) (s)
52 #endif
54 #ifdef __KTOOL_USE_NAMESPACES
55 #define __CENTERIM_USE_NAMESPACES
56 #endif
58 #ifdef __CENTERIM_USE_NAMESPACES
60 using namespace std;
62 #endif
64 #define PERIOD_RESEND 20
65 #define PERIOD_CHECKMAIL 30
66 #define PERIOD_DISPUPDATE 2
67 #define PERIOD_AUTOSAVE 120
68 #define PERIOD_TYPING 6
70 #define PERIOD_ATONCE 5
71 #define MAX_ATONCE 10
75 * Several helper routines
79 string up(string s);
80 string lo(string s);
82 /*! .. and defines.
85 #define ENUM_PLUSPLUS(tp) \
86 inline tp& operator ++(tp &p, int) { \
87 int t = p; \
88 return p = static_cast<tp>(++t); \
91 #endif