ApiLog.h 973 B

1234567891011121314151617181920212223242526272829303132
  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. void LogError(int Error);
  18. CString GetOption(int OptionID) const;
  19. int GetOptionVal(int OptionID) const;
  20. protected:
  21. void SendLogMessage(int nMessageType, LPCTSTR pMsg) const;
  22. TFileZillaIntern * FIntern;
  23. };
  24. //---------------------------------------------------------------------------
  25. //!CLEANEND
  26. #endif // ApiLogH