OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aNotifier.h
Go to the documentation of this file.
1/*
2 * File: aNotifier.h
3 * Package: akCore
4 *
5 * Created on: February 06, 2020
6 * Author: Alexander Kuester
7 * Copyright (c) 2022 Alexander Kuester
8 * This file is part of the uiCore component.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15// AK header
16#include <akCore/akCore.h>
18
19namespace ak {
20
23 public:
25 aNotifier();
26
28 virtual ~aNotifier() {}
29
36 virtual void notify(
37 ak::UID _senderId,
38 ak::eventType _event,
39 int _info1,
40 int _info2
41 ) = 0;
42
44 void enable(void);
45
47 void disable(void);
48
50 bool isEnabled(void) const;
51
52 protected:
54 };
55}
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
This abstract class is used to provide the receiver functionallity used in the messaging class.
Definition aNotifier.h:22
bool m_isEnabled
Definition aNotifier.h:53
virtual void notify(ak::UID _senderId, ak::eventType _event, int _info1, int _info2)=0
Will notify this receiver that a message was received by a sender.
virtual ~aNotifier()
Destructor.
Definition aNotifier.h:28
Definition uiAPI.h:45
unsigned long long UID
The UID datatype used for objects.
Definition globalDataTypes.h:65
eventType
Describes the type of an event.
Definition akCore.h:86