AppPreferences.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2010, Oliver Ruiz Dorantes. All rights reserved.
  3. * Copyright 2012, Casalinuovo Dario. All rights reserved.
  4. * Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
  5. * All rights reserved. Distributed under the terms of the MIT license.
  6. */
  7. #ifndef _APP_PREFERENCES_H
  8. #define _APP_PREFERENCES_H
  9. #include <Rect.h>
  10. #include <SupportDefs.h>
  11. class AppPreferences {
  12. public:
  13. static AppPreferences* Get();
  14. void Load();
  15. void Save();
  16. bool MoveToCurrentWorkspace;
  17. bool RaiseOnMessageReceived;
  18. bool MarkUnreadWindow;
  19. bool NotifyProtocolStatus;
  20. bool NotifyContactStatus;
  21. bool NotifyNewMessage;
  22. bool SoundOnMessageReceived;
  23. bool SoundOnMention;
  24. bool HideDeskbar;
  25. bool DisableReplicant;
  26. bool DisableQuitConfirm;
  27. bool IgnoreEmoticons;
  28. bool HideOffline;
  29. float MainWindowListWeight;
  30. float MainWindowChatWeight;
  31. float ChatViewHorizChatWeight;
  32. float ChatViewHorizListWeight;
  33. float ChatViewVertChatWeight;
  34. float ChatViewVertSendWeight;
  35. BRect MainWindowRect;
  36. private:
  37. const char* _PreferencesPath();
  38. static AppPreferences* fInstance;
  39. };
  40. #endif // _APP_PREFERENCES_H