Skip to content
Snippets Groups Projects
ButtonBehaviours.h 1.75 KiB
Newer Older
#ifndef BUTTON_BEHAVIOUR_h
#define BUTTON_BEHAVIOUR_h
#include "Arduino.h"
#include "Behaviours.h"
Joe Revans's avatar
Joe Revans committed
#include <VizBlocks.h>
Matthew's avatar
Matthew committed
class ButtonPressed : public Behaviour
{
	/*
	 * Class that defines a behaviour that publishes a
	 * ButtonPressed message to the input topic of the
	 * MQQT broker
	 */
	VizBlocks* _node;
	ButtonPressed(VizBlocks* node, String name = "ButtonPressed");
Matthew's avatar
Matthew committed
	char* args();
	String start(String args);
Matthew's avatar
Matthew committed
class ButtonReleased : public Behaviour
{
	/*
	 * Class that defines a behaviour that publishes a
	 * ButtonReleased message to the input topic of the
	 * MQQT broker
	 */
	VizBlocks* _node;
Matthew's avatar
Matthew committed
	ButtonReleased(VizBlocks* node, String name = "ButtonReleased");
	char* args();
	String start(String args);
class ButtonClicked : public Behaviour
{
Matthew's avatar
Matthew committed
	/*
	 * Class that defines a behaviour that publishes a
	 * ButtonClicked message to the input topic of the
	 * MQQT broker
	 */
	VizBlocks* _node;
Matthew's avatar
Matthew committed
	ButtonClicked(VizBlocks* node, String name = "ButtonClicked");
	char* args();
Matthew's avatar
Matthew committed
	String start(String args);
class ButtonHeld : public Behaviour
{
Matthew's avatar
Matthew committed
	/*
	 * Class that defines a behaviour that publishes a
	 * ButtonLongPressed message to the input topic of the
	 * MQQT broker
	 */
	VizBlocks* _node;
	ButtonHeld(VizBlocks* node, String name = "ButtonHeld");
Matthew's avatar
Matthew committed
	/**
	   @brief What does this do?
	 */
	char* args();
Matthew's avatar
Matthew committed
	/**
	   @brief What does this do?
	 */
	String start(String args);
Matthew's avatar
Matthew committed
class ButtonTick : public Behaviour
{
	/*
	 * Class that defines a behaviour that publishes a
	 * ButtonRepeatPressed message to the input topic of the
	 * MQQT broker
	 */
	VizBlocks* _node;
	ButtonTick(VizBlocks* node, String name = "ButtonTick");
Matthew's avatar
Matthew committed

Matthew's avatar
Matthew committed
	/**
	   @brief What does this do?
	 */
	char* args();
Matthew's avatar
Matthew committed
	String start(String args);