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

58 lines
1.2 KiB
C
Raw Permalink Normal View History

/*
* Copyright 2010, Oliver Ruiz Dorantes. All rights reserved.
* Copyright 2012, Casalinuovo Dario. All rights reserved.
* Copyright 2021-2022, Jaidyn Levesque <jadedctrl@teknik.io>
2021-07-28 19:10:09 -05:00
* 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;
bool MembershipUpdates;
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;
BRect RoomDirectoryRect;
2021-07-28 19:25:55 -05:00
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