Chat-O-Matic/application/preferences/AppPreferences.h
Jaidyn Ann f19bcba62a Add Room Directory window
This window (Chat→Room directory) is to be used for either a list of
publicly available rooms (in most protocols), or for a list of
joined-but-hidden rooms (as it'll used with libpurple, to list its
ChatBuddies).

Each room is sent individually from protocols using IM_ROOM_DIRECTORY
messages sent in response to a IM_GET_ROOM_DIRECTORY message.
2021-08-27 11:00:04 -05:00

57 lines
1.2 KiB
C++

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