equal
deleted
inserted
replaced
26 |
26 |
27 #ifdef Q_WS_WIN |
27 #ifdef Q_WS_WIN |
28 #include <Windows.h> |
28 #include <Windows.h> |
29 #endif |
29 #endif |
30 |
30 |
|
31 #ifdef Q_OS_SYMBIAN |
|
32 #include <e32debug.h> |
|
33 #endif |
|
34 |
31 //DebugLogOutput |
35 //DebugLogOutput |
32 REGISTER_OUTPUT_LOG(DEBUGOUTPUT_NAME,DebugLogOutput) |
36 REGISTER_OUTPUT_LOG(DEBUGOUTPUT_NAME,DebugLogOutput) |
33 |
37 |
34 DebugLogOutput::DebugLogOutput() |
38 DebugLogOutput::DebugLogOutput() |
35 { |
39 { |
39 { |
43 { |
40 } |
44 } |
41 |
45 |
42 void DebugLogOutput::output(const QString &log) |
46 void DebugLogOutput::output(const QString &log) |
43 { |
47 { |
44 #ifdef Q_WS_WIN |
48 #if defined(Q_WS_WIN) |
45 QT_WA({ |
49 QT_WA({ |
46 OutputDebugStringW(reinterpret_cast<const WCHAR*>(log.utf16())); |
50 OutputDebugStringW(reinterpret_cast<const WCHAR*>(log.utf16())); |
47 }, { |
51 }, { |
48 OutputDebugStringA(log.toLocal8Bit().data()); |
52 OutputDebugStringA(log.toLocal8Bit().data()); |
49 }); |
53 }); |
|
54 #elif defined(Q_OS_SYMBIAN) |
|
55 RDebug::Printf(log.toLocal8Bit().data()); |
50 #else |
56 #else |
51 fprintf(stderr, log.toLocal8Bit().data()); |
57 fprintf(stderr, log.toLocal8Bit().data()); |
52 fflush(stderr); |
58 fflush(stderr); |
53 #endif |
59 #endif |
54 } |
60 } |