ApiLog.h 944 B

12345678910111213141516171819202122232425262728293031
  1. //---------------------------------------------------------------------------
  2. #ifndef ApiLogH
  3. #define ApiLogH
  4. //---------------------------------------------------------------------------
  5. #include "FileZillaIntern.h"
  6. //---------------------------------------------------------------------------
  7. class CApiLog
  8. {
  9. public:
  10. CApiLog();
  11. virtual ~CApiLog();
  12. void InitIntern(TFileZillaIntern * Intern);
  13. TFileZillaIntern * GetIntern();
  14. bool LoggingMessageType(int nMessageType) const;
  15. void LogMessage(int nMessageType, LPCTSTR pMsgFormat, ...) const;
  16. void LogMessageRaw(int nMessageType, LPCTSTR pMsg) const;
  17. CString GetOption(int OptionID) const;
  18. int GetOptionVal(int OptionID) const;
  19. protected:
  20. void SendLogMessage(int nMessageType, LPCTSTR pMsg) const;
  21. TFileZillaIntern * FIntern;
  22. };
  23. //---------------------------------------------------------------------------
  24. //!CLEANEND
  25. #endif // ApiLogH