Split AppConstants.h into UserStatus.h

This commit is contained in:
Jaidyn Ann 2021-08-19 17:04:33 -05:00
parent 8f159b7e8b
commit dd086dd455
12 changed files with 35 additions and 25 deletions

View File

@ -22,17 +22,4 @@ const rgb_color APP_SELEND_COLOR = {230, 113, 9};
#define APP_MENTION_BEEP "Chat-o-Matic mention" #define APP_MENTION_BEEP "Chat-o-Matic mention"
#define APP_MESSAGE_BEEP "Chat-o-Matic message" #define APP_MESSAGE_BEEP "Chat-o-Matic message"
/**
* Status codes.
*/
enum UserStatus {
STATUS_ONLINE = 1,
STATUS_AWAY = 2,
STATUS_DO_NOT_DISTURB = 3,
STATUS_CUSTOM_STATUS = 4,
STATUS_INVISIBLE = 5,
STATUS_OFFLINE = 6,
STATUS_STATUSES = 7
};
#endif // _APP_CONSTANTS_H #endif // _APP_CONSTANTS_H

View File

@ -7,8 +7,8 @@
#include <Messenger.h> #include <Messenger.h>
#include "AppConstants.h"
#include "Notifier.h" #include "Notifier.h"
#include "UserStatus.h"
class StatusManager : public Notifier { class StatusManager : public Notifier {

View File

@ -7,16 +7,17 @@
#ifndef USER_H #ifndef USER_H
#define USER_H #define USER_H
#include <String.h> #include <GraphicsDefs.h>
#include <Message.h> #include <Message.h>
#include <Messenger.h> #include <Messenger.h>
#include <ObjectList.h> #include <ObjectList.h>
#include <Path.h> #include <Path.h>
#include <String.h>
#include <libsupport/KeyMap.h> #include <libsupport/KeyMap.h>
#include "AppConstants.h"
#include "Notifier.h" #include "Notifier.h"
#include "UserStatus.h"
class BBitmap; class BBitmap;

22
application/UserStatus.h Normal file
View File

@ -0,0 +1,22 @@
/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _USER_STATUS_H
#define _USER_STATUS_H
/**
* Status codes.
*/
enum UserStatus {
STATUS_ONLINE = 1,
STATUS_AWAY = 2,
STATUS_DO_NOT_DISTURB = 3,
STATUS_CUSTOM_STATUS = 4,
STATUS_INVISIBLE = 5,
STATUS_OFFLINE = 6,
STATUS_STATUSES = 7
};
#endif // _USER_STATUS_H

View File

@ -10,7 +10,7 @@
#include <libinterface/BitmapMenuItem.h> #include <libinterface/BitmapMenuItem.h>
#include "AppConstants.h" #include "UserStatus.h"
class BBitmap; class BBitmap;

View File

@ -13,8 +13,8 @@
#include <Resources.h> #include <Resources.h>
#include <View.h> #include <View.h>
#include "AppConstants.h"
#include "AppResources.h" #include "AppResources.h"
#include "UserStatus.h"
class BPopUpMenu; class BPopUpMenu;

View File

@ -9,7 +9,7 @@
#include <libinterface/BitmapMenuItem.h> #include <libinterface/BitmapMenuItem.h>
#include "AppConstants.h" #include "UserStatus.h"
class BBitmap; class BBitmap;

View File

@ -8,7 +8,7 @@
#include <View.h> #include <View.h>
#include "AppConstants.h" #include "UserStatus.h"
#include "Observer.h" #include "Observer.h"
class BPopUpMenu; class BPopUpMenu;

View File

@ -14,8 +14,8 @@
#include <TextView.h> #include <TextView.h>
#include <StringView.h> #include <StringView.h>
#include "AppConstants.h"
#include "Observer.h" #include "Observer.h"
#include "UserStatus.h"
class BitmapView; class BitmapView;
class User; class User;

View File

@ -18,10 +18,10 @@
#include <libinterface/BitmapUtils.h> #include <libinterface/BitmapUtils.h>
#include <AppConstants.h>
#include <ChatOMatic.h> #include <ChatOMatic.h>
#include <ChatProtocolMessages.h> #include <ChatProtocolMessages.h>
#include <Flags.h> #include <Flags.h>
#include <UserStatus.h>
#include <Utils.h> #include <Utils.h>

View File

@ -29,7 +29,7 @@
#include <StringList.h> #include <StringList.h>
#include <libsupport/KeyMap.h> #include <libsupport/KeyMap.h>
#include <AppConstants.h> #include <UserStatus.h>
typedef KeyMap<BString, BString> StringMap; typedef KeyMap<BString, BString> StringMap;

View File

@ -32,9 +32,9 @@
#include <gloox/vcardhandler.h> #include <gloox/vcardhandler.h>
#include <gloox/vcardmanager.h> #include <gloox/vcardmanager.h>
#include <AppConstants.h>
#include <ChatProtocol.h>
#include <libsupport/KeyMap.h> #include <libsupport/KeyMap.h>
#include <ChatProtocol.h>
#include <UserStatus.h>
class BList; class BList;
class InviteHandler; class InviteHandler;