-
Notifications
You must be signed in to change notification settings - Fork 71
/
common_events.h
81 lines (62 loc) · 2.92 KB
/
common_events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2020-2022, WWIV Software Services */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, */
/* software distributed under the License is distributed on an */
/* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, */
/* either express or implied. See the License for the specific */
/* language governing permissions and limitations under the License. */
/**************************************************************************/
#ifndef INCLUDED_COMMON_EVENTS_H
#define INCLUDED_COMMON_EVENTS_H
#include "common/exceptions.h"
#include <cstdint>
#include <string>
namespace wwiv::common {
// The BBS Should attempt to process inter-instance messages.
struct ProcessInstanceMessages {};
// The BBS Should attempt to process inter-instance messages.
struct ResetProcessingInstanceMessages {};
// The BBS Should attempt to process inter-instance messages.
struct PauseProcessingInstanceMessages {};
// The BBS Should check if the user hungup.
struct CheckForHangupEvent {};
// Notify the BBS that the user has hungup, forcefully if needed.
struct HangupEvent { hangup_type_t t{hangup_type_t::user_logged_off}; };
// Needs to update the topscreen on local IO.
struct UpdateTopScreenEvent {};
// Needs to update the time left in the BBS and optionally
// check for a timeout.
struct UpdateTimeLeft {
bool check_for_timeout{false};
};
// Needs to handle a sysop key pressed locally. This is the second key
// of the two key sequence returned from Win32 for extended input.
struct HandleSysopKey {
uint8_t key{0};
};
// Should return time slices to other processes
// The BBS Should attempt to process inter-instance messages.
struct GiveupTimeslices {};
// Display the time on and time left.
struct DisplayTimeLeft {};
// Display the instance status in a multi-instance system.
struct DisplayMultiInstanceStatus {};
// Display the invisible status for multi-node chat
struct ToggleInvisble {};
// Display the available status for multi-node chat
struct ToggleAvailable {};
// Needs to update the current menu set.
struct UpdateMenuSet {
std::string name;
};
} // namespace wwiv::common
#endif