From b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:57:00 -0500 Subject: Initial import from kshowmail 3.3.1 sources --- doc/html/logger_8cpp-source.html | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 doc/html/logger_8cpp-source.html (limited to 'doc/html/logger_8cpp-source.html') diff --git a/doc/html/logger_8cpp-source.html b/doc/html/logger_8cpp-source.html new file mode 100644 index 0000000..d38f4a6 --- /dev/null +++ b/doc/html/logger_8cpp-source.html @@ -0,0 +1,68 @@ + + +kshowmail: kshowmail/logger.cpp Source File + + + + +
+
+ +

logger.cpp

00001 /***************************************************************************
+00002                           logger.cpp  -  description
+00003                              -------------------
+00004     begin                : Son Okt 19 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #include <kstandarddirs.h>
+00019 // #include <kdebug.h>
+00020 #include "logger.h"
+00021 
+00022 QTextStream* Logger::logstream = NULL;
+00023 QFile Logger::logfile;
+00024 
+00025 Logger::~Logger()
+00026 {
+00027   delete logstream;
+00028 }
+00029 
+00030 QTextStream& Logger ()
+00031 {
+00032   if (Logger::logstream == NULL)
+00033   {
+00034     QString logfilename = locateLocal ("data", "kshowmail/kshowmail.log");
+00035     Logger::logfile.setName (logfilename);
+00036     Logger::logfile.open (IO_WriteOnly | IO_Append);
+00037     Logger::logstream = new QTextStream (&Logger::logfile);
+00038   }
+00039   return *Logger::logstream;  
+00040 }
+00041 
+00042 void Logger::flush()
+00043 {
+00044   logfile.flush();
+00045 }
+00046 
+

Generated on Thu Jul 5 19:36:07 2007 for kshowmail by  + +doxygen 1.5.0
+ + -- cgit v1.2.1