5 #include <sys/_size_t.h>
12 #define DEBUG Debug::instance()
15 * Debugging facilities.
17 * @author James Hammons
18 * @author Andrew Mustun
24 * Enum for debug levels. Only messages of the current
25 * or a higher level are printed.
27 * <li>D_NOTHING: nothing
28 * <li>D_CRITICAL: critical messages
30 * <li>D_WARNING: warnings
32 * <li>D_INFORMATIONAL: infos
33 * <li>D_DEBUGGING: very verbose
36 enum DebugLevel { D_NOTHING,
48 static Debug * instance();
49 static void deleteInstance();
51 void setLevel(DebugLevel level);
52 DebugLevel getLevel();
53 void print(DebugLevel level, const char * format ...);
54 void print(const char * format ...);
55 void printUnicode(const QString & text);
57 void setStream(FILE * s);
60 static Debug * uniqueInstance;
62 DebugLevel debugLevel;