Chat-O-Matic/application/preferences/AppPreferences.h

56 lines
1.1 KiB
C
Raw Normal View History

/*
* Copyright 2010, Oliver Ruiz Dorantes. All rights reserved.
* Copyright 2012, Casalinuovo Dario. All rights reserved.
2021-07-28 19:10:09 -05:00
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
2021-06-20 12:44:20 -05:00
#ifndef _APP_PREFERENCES_H
#define _APP_PREFERENCES_H
2021-07-28 19:25:55 -05:00
#include <Rect.h>
2021-07-28 19:10:09 -05:00
#include <SupportDefs.h>
2021-07-28 19:10:09 -05:00
class AppPreferences {
public:
2021-07-28 19:10:09 -05:00
static AppPreferences* Get();
void Load();
void Save();
bool MoveToCurrentWorkspace;
bool RaiseOnMessageReceived;
bool MarkUnreadWindow;
2021-07-28 19:10:09 -05:00
bool NotifyProtocolStatus;
bool NotifyContactStatus;
bool NotifyNewMessage;
bool SoundOnMessageReceived;
bool SoundOnMention;
2021-07-28 19:10:09 -05:00
bool HideDeskbar;
bool DisableReplicant;
bool DisableQuitConfirm;
bool IgnoreEmoticons;
2021-07-28 19:10:09 -05:00
bool HideOffline;
float MainWindowListWeight;
float MainWindowChatWeight;
float ChatViewHorizChatWeight;
float ChatViewHorizListWeight;
float ChatViewVertChatWeight;
float ChatViewVertSendWeight;
2021-07-28 19:25:55 -05:00
BRect MainWindowRect;
private:
2021-07-28 19:10:09 -05:00
const char* _PreferencesPath();
2021-07-28 19:10:09 -05:00
static AppPreferences* fInstance;
};
2021-07-28 19:10:09 -05:00
#endif // _APP_PREFERENCES_H