-rw-r--r-- | libopie2/opiecore/odebug.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie2/opiecore/odebug.h b/libopie2/opiecore/odebug.h index a5c9ded..b040166 100644 --- a/libopie2/opiecore/odebug.h +++ b/libopie2/opiecore/odebug.h | |||
@@ -16,100 +16,100 @@ | |||
16 | .%`+i> _;_. | 16 | .%`+i> _;_. |
17 | .i_,=:_. -<s. This program is distributed in the hope that | 17 | .i_,=:_. -<s. This program is distributed in the hope that |
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
19 | : .. .:, . . . without even the implied warranty of | 19 | : .. .:, . . . without even the implied warranty of |
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
22 | ..}^=.= = ; Library General Public License for more | 22 | ..}^=.= = ; Library General Public License for more |
23 | ++= -. .` .: details. | 23 | ++= -. .` .: details. |
24 | : = ...= . :.=- | 24 | : = ...= . :.=- |
25 | -. .:....=;==+<; You should have received a copy of the GNU | 25 | -. .:....=;==+<; You should have received a copy of the GNU |
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = Library General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #ifndef ODEBUG_H | 33 | #ifndef ODEBUG_H |
34 | #define ODEBUG_H | 34 | #define ODEBUG_H |
35 | 35 | ||
36 | #include <qstring.h> | 36 | #include <qstring.h> |
37 | 37 | ||
38 | class QWidget; | 38 | class QWidget; |
39 | class QDateTime; | 39 | class QDateTime; |
40 | class QDate; | 40 | class QDate; |
41 | class QTime; | 41 | class QTime; |
42 | class QPoint; | 42 | class QPoint; |
43 | class QSize; | 43 | class QSize; |
44 | class QRect; | 44 | class QRect; |
45 | class QRegion; | 45 | class QRegion; |
46 | class QStringList; | 46 | class QStringList; |
47 | class QColor; | 47 | class QColor; |
48 | class QBrush; | 48 | class QBrush; |
49 | 49 | ||
50 | namespace Opie { | 50 | namespace Opie { |
51 | namespace Core { | 51 | namespace Core { |
52 | 52 | ||
53 | class odbgstream; | 53 | class odbgstream; |
54 | class ondbgstream; | 54 | class ondbgstream; |
55 | 55 | ||
56 | #ifdef __GNUC__ | 56 | #ifdef __GNUC__ |
57 | #define o_funcinfo "[" << __PRETTY_FUNCTION__ << "] " | 57 | #define o_funcinfo "[" << __PRETTY_FUNCTION__ << "] " |
58 | #else | 58 | #else |
59 | #define o_funcinfo "[" << __FILE__ << ":" << __LINE__ << "] " | 59 | #define o_funcinfo "[" << __FILE__ << ":" << __LINE__ << "] " |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #define o_lineinfo "[" << __FILE__ << ":" << __LINE__ << "] " | 62 | #define o_lineinfo "[" << __FILE__ << ":" << __LINE__ << "] " |
63 | 63 | ||
64 | #define owarn odWarning() | 64 | #define owarn Opie::Core::odWarning() |
65 | #define oerr odError() | 65 | #define oerr Opie::Core::odError() |
66 | #define odebug odDebug() | 66 | #define odebug Opie::Core::odDebug() |
67 | #define ofatal odFatal() | 67 | #define ofatal Opie::Core::odFatal() |
68 | #define oendl "\n" | 68 | #define oendl "\n" |
69 | 69 | ||
70 | class odbgstreamprivate; | 70 | class odbgstreamprivate; |
71 | /** | 71 | /** |
72 | * odbgstream is a text stream that allows you to print debug messages. | 72 | * odbgstream is a text stream that allows you to print debug messages. |
73 | * Using the overloaded "<<" operator you can send messages. Usually | 73 | * Using the overloaded "<<" operator you can send messages. Usually |
74 | * you do not create the odbgstream yourself, but use @ref odDebug() (odebug) | 74 | * you do not create the odbgstream yourself, but use @ref odDebug() (odebug) |
75 | * @ref odWarning() (owarn), @ref odError() (oerr) or @ref odFatal (ofatal) to obtain one. | 75 | * @ref odWarning() (owarn), @ref odError() (oerr) or @ref odFatal (ofatal) to obtain one. |
76 | * | 76 | * |
77 | * Example: | 77 | * Example: |
78 | * <pre> | 78 | * <pre> |
79 | * int i = 5; | 79 | * int i = 5; |
80 | * odebug << "The value of i is " << i << oendl; | 80 | * odebug << "The value of i is " << i << oendl; |
81 | * </pre> | 81 | * </pre> |
82 | * @see odbgstream | 82 | * @see odbgstream |
83 | */ | 83 | */ |
84 | 84 | ||
85 | /*====================================================================================== | 85 | /*====================================================================================== |
86 | * odbgstream | 86 | * odbgstream |
87 | *======================================================================================*/ | 87 | *======================================================================================*/ |
88 | 88 | ||
89 | class odbgstream | 89 | class odbgstream |
90 | { | 90 | { |
91 | public: | 91 | public: |
92 | /** | 92 | /** |
93 | * @internal | 93 | * @internal |
94 | */ | 94 | */ |
95 | odbgstream(unsigned int _area, unsigned int _level, bool _print = true); | 95 | odbgstream(unsigned int _area, unsigned int _level, bool _print = true); |
96 | odbgstream(const char * initialString, unsigned int _area, unsigned int _level, bool _print = true); | 96 | odbgstream(const char * initialString, unsigned int _area, unsigned int _level, bool _print = true); |
97 | odbgstream(odbgstream &str); | 97 | odbgstream(odbgstream &str); |
98 | odbgstream(const odbgstream &str); | 98 | odbgstream(const odbgstream &str); |
99 | virtual ~odbgstream(); | 99 | virtual ~odbgstream(); |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * Prints the given value. | 102 | * Prints the given value. |
103 | * @param i the boolean to print (as "true" or "false") | 103 | * @param i the boolean to print (as "true" or "false") |
104 | * @return this stream | 104 | * @return this stream |
105 | */ | 105 | */ |
106 | odbgstream &operator<<(bool i); | 106 | odbgstream &operator<<(bool i); |
107 | /** | 107 | /** |
108 | * Prints the given value. | 108 | * Prints the given value. |
109 | * @param i the short to print | 109 | * @param i the short to print |
110 | * @return this stream | 110 | * @return this stream |
111 | */ | 111 | */ |
112 | odbgstream &operator<<(short i); | 112 | odbgstream &operator<<(short i); |
113 | /** | 113 | /** |
114 | * Prints the given value. | 114 | * Prints the given value. |
115 | * @param i the unsigned short to print | 115 | * @param i the unsigned short to print |