author | harlekin <harlekin> | 2004-10-08 20:03:40 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-10-08 20:03:40 (UTC) |
commit | 4e884ee63f16d1367ff7b854dbe5b50a6871c008 (patch) (unidiff) | |
tree | fb9d9d13e9329e6ee9048bfc0e857d3918f4ecca /noncore/apps/opie-console/logger.cpp | |
parent | 51e49f0bd035545b983c799f7089de6b0ff2547e (diff) | |
download | opie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.zip opie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.tar.gz opie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.tar.bz2 |
added a 10east define for some changed builds for them, also added a logging mode, also some changes to the "fix broken distros" part, snapshot
Diffstat (limited to 'noncore/apps/opie-console/logger.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/logger.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/logger.cpp b/noncore/apps/opie-console/logger.cpp new file mode 100644 index 0000000..56557f3 --- a/dev/null +++ b/noncore/apps/opie-console/logger.cpp | |||
@@ -0,0 +1,20 @@ | |||
1 | #include <qfile.h> | ||
2 | #include <qtextstream.h> | ||
3 | |||
4 | #include "logger.h" | ||
5 | |||
6 | |||
7 | Logger::Logger() {} | ||
8 | |||
9 | Logger::Logger(const QString fileName) { | ||
10 | m_file.setName(fileName); | ||
11 | m_file.open(IO_ReadWrite); | ||
12 | } | ||
13 | |||
14 | Logger::~Logger() { | ||
15 | m_file.close(); | ||
16 | } | ||
17 | |||
18 | void Logger::append(QByteArray ar) { | ||
19 | m_file.writeBlock(ar); | ||
20 | } \ No newline at end of file | ||