PrefLog.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * The contents of this file are subject to the Mozilla Public
  3. * License Version 1.1 (the "License"); you may not use this file
  4. * except in compliance with the License. You may obtain a copy of
  5. * the License at http://www.mozilla.org/MPL/
  6. *
  7. * Software distributed under the License is distributed on an "AS
  8. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9. * implied. See the License for the specific language governing
  10. * rights and limitations under the License.
  11. *
  12. * The Original Code is Vision.
  13. *
  14. * The Initial Developer of the Original Code is The Vision Team.
  15. * Portions created by The Vision Team are
  16. * Copyright (C) 1999, 2000, 2001 The Vision Team. All Rights
  17. * Reserved.
  18. *
  19. * Contributor(s): Rene Gollent
  20. */
  21. #ifndef _PREFLOG_H
  22. #define _PREFLOG_H
  23. #include <View.h>
  24. class VTextControl;
  25. class BMenuField;
  26. class BCheckBox;
  27. class BBox;
  28. class BButton;
  29. class BEntry;
  30. class LogPrefsView : public BView
  31. {
  32. public:
  33. LogPrefsView (BRect);
  34. virtual ~LogPrefsView (void);
  35. virtual void MessageReceived (BMessage *);
  36. virtual void AttachedToWindow (void);
  37. virtual void AllAttached (void);
  38. virtual void FrameResized (float, float);
  39. private:
  40. VTextControl *fLogBaseDir,
  41. *fLogStampFormat;
  42. BCheckBox *fLogEnabled,
  43. *fLogFileTimestamp,
  44. *fTimeStamp;
  45. BButton *fClearLogs;
  46. private:
  47. void _DeleteLogs(BEntry* dir_entry);
  48. bool _CheckIfEmpty();
  49. };
  50. #endif // _PREFLOG_H