Logo Search packages:      
Sourcecode: maildir-bulletin version File versions  Download package

mb_util.h

#ifndef MB_UTIL_H
#define MB_UTIL_H

#include "maildir-bulletin.h"

#include <stdio.h>

struct tm;

00010 class mb_log
{
public:
  mb_log(CPCCHAR logFile, CPCCHAR errFile, struct tm *loc);
  ~mb_log();

  void error(CPCCHAR message, CPCCHAR data = "", CPCCHAR data2 = "", bool serious = true);
  void info(CPCCHAR message, CPCCHAR data = "", CPCCHAR data2 = "");

  void interactive(bool state) { m_interactive = state; }

private:
  void reallog(FILE *fp, CPCCHAR message, CPCCHAR data = "", CPCCHAR data2 = "");

  FILE *m_log;
  FILE *m_errlog;
  struct tm *m_loc;
  bool m_interactive;

  mb_log(const mb_log&);
  mb_log & operator=(const mb_log&);
};


#endif

Generated by  Doxygen 1.6.0   Back to index