From 0fb39531240a0a23e92c0456fe72e26027740696 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Jun 2018 12:43:27 +0300 Subject: StatusManager: - project structure linearized; - AAA flag "Use same settings wasn't saved across Miranda starts; - perversion with declaring static arrays in commonstatus.h removed --- plugins/StatusManager/src/commonstatus.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugins/StatusManager/src/commonstatus.cpp') diff --git a/plugins/StatusManager/src/commonstatus.cpp b/plugins/StatusManager/src/commonstatus.cpp index 371dfeae1a..f95ec3f89c 100644 --- a/plugins/StatusManager/src/commonstatus.cpp +++ b/plugins/StatusManager/src/commonstatus.cpp @@ -21,6 +21,20 @@ #include "stdafx.h" +StatusModeMap statusModes[MAX_STATUS_COUNT] = +{ + { ID_STATUS_OFFLINE, PF2_OFFLINE }, + { ID_STATUS_ONLINE, PF2_ONLINE }, + { ID_STATUS_AWAY, PF2_SHORTAWAY }, + { ID_STATUS_NA, PF2_LONGAWAY }, + { ID_STATUS_OCCUPIED, PF2_LIGHTDND }, + { ID_STATUS_DND, PF2_HEAVYDND }, + { ID_STATUS_FREECHAT, PF2_FREECHAT }, + { ID_STATUS_INVISIBLE, PF2_INVISIBLE }, + { ID_STATUS_ONTHEPHONE, PF2_ONTHEPHONE }, + { ID_STATUS_OUTTOLUNCH, PF2_OUTTOLUNCH } +}; + // handles for hooks and other Miranda thingies static HANDLE hCSStatusChangedExEvent; -- cgit v1.2.3