VLCB
Toggle main menu visibility
Loading...
Searching...
No Matches
EventTeachingService.h
Go to the documentation of this file.
1
// Copyright (C) Sven Rosvall (sven@rosvall.ie)
2
// This file is part of VLCB-Arduino project on https://github.com/SvenRosvall/VLCB-Arduino
3
// Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
4
// The full licence can be found at: http://creativecommons.org/licenses/by-nc-sa/4.0
5
6
#pragma once
7
8
#include "
AbstractEventTeachingService.h
"
9
10
namespace
VLCB
11
{
23
class
EventTeachingService
:
public
AbstractEventTeachingService
24
{
26
public
:
27
virtual
void
processAction
(
const
Action
&action)
override
;
28
virtual
VlcbServiceTypes
getServiceID
()
const override
{
return
SERVICE_ID_OLD_TEACH
; }
29
virtual
byte
getServiceVersionID
()
const override
{
return
3; }
30
31
private
:
32
void
handleMessage(
const
VlcbMessage
*msg);
33
void
handleRequestEventVariable(
const
VlcbMessage
*msg,
unsigned
int
nn,
unsigned
int
en);
34
void
handleLearnEvent(
const
VlcbMessage
*msg,
unsigned
int
nn,
unsigned
int
en);
36
};
37
38
}
// VLCB
AbstractEventTeachingService.h
VLCB::AbstractEventTeachingService
Base class for teaching services.
Definition
AbstractEventTeachingService.h:19
VLCB::EventTeachingService
Classic Event Teaching Service.
Definition
EventTeachingService.h:24
VLCB::EventTeachingService::getServiceID
virtual VlcbServiceTypes getServiceID() const override
Return a unique ID for this service.
Definition
EventTeachingService.h:28
VLCB::EventTeachingService::getServiceVersionID
virtual byte getServiceVersionID() const override
Return the version of the service specification implemented by this service.
Definition
EventTeachingService.h:29
VLCB::EventTeachingService::processAction
virtual void processAction(const Action &action) override
Called when there is an action available.
Definition
EventTeachingService.cpp:14
VLCB
Definition
AbstractEventTeachingService.cpp:13
VLCB::Action
An action to be performed.
Definition
Controller.h:86
VLCB::VlcbMessage
VLCB message type.
Definition
Controller.h:38
VlcbServiceTypes
VlcbServiceTypes
Definition
vlcbdefs.hpp:487
SERVICE_ID_OLD_TEACH
@ SERVICE_ID_OLD_TEACH
Definition
vlcbdefs.hpp:495
src
EventTeachingService.h
Generated by
1.18.0