Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
CallbackTypes.h
Go to the documentation of this file.
1/*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 *
16 * CallbackTypes.h
17 * Copyright (C) 2013 Simon Newton
18 */
19
25#ifndef INCLUDE_OLA_CLIENT_CALLBACKTYPES_H_
26#define INCLUDE_OLA_CLIENT_CALLBACKTYPES_H_
27
28#include <ola/Callback.h>
29#include <ola/DmxBuffer.h>
31#include <ola/client/Result.h>
32#include <ola/rdm/RDMCommand.h>
33#include <ola/rdm/UIDSet.h>
34
35#include <string>
36#include <vector>
37
38namespace ola {
39namespace client {
40
46typedef SingleUseCallback2<void, const Result&, const std::vector<OlaPlugin>&>
48
56
64
72
80
86
92
100
108
116
125
126
133typedef SingleUseCallback3<void, const Result&, const DMXMetadata&,
135
143
152typedef SingleUseCallback3<void, const Result&,
153 const RDMMetadata&,
155
156
157} // namespace client
158} // namespace ola
159#endif // INCLUDE_OLA_CLIENT_CALLBACKTYPES_H_
Types used as return values from the OLA Client.
A class used to hold a single universe of DMX data.
Classes that represent RDM commands.
The Result object passed to OLA client callbacks.
A set of UIDs.
The base class for all 1 argument callbacks.
Definition Callback.h:982
A 2 argument callback which can be called multiple times.
Definition Callback.h:1895
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
A 1 argument callback which deletes itself after it's run.
Definition Callback.h:1004
A 2 argument callback which deletes itself after it's run.
Definition Callback.h:1907
A 3 argument callback which deletes itself after it's run.
Definition Callback.h:2850
Indicates the result of a OLA API call.
Definition Result.h:52
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition RDMCommand.h:457
SingleUseCallback2< void, const Result &, const std::vector< OlaPlugin > & > PluginListCallback
Invoked when OlaClient::FetchPluginList() completes.
Definition CallbackTypes.h:47
SingleUseCallback2< void, const Result &, const ola::rdm::UIDSet & > DiscoveryCallback
Invoked when OlaClient::RunDiscovery() completes.
Definition CallbackTypes.h:124
SingleUseCallback2< void, const Result &, const OlaUniverse & > UniverseInfoCallback
Invoked when OlaClient::FetchUniverseInfo() completes.
Definition CallbackTypes.h:107
SingleUseCallback2< void, const Result &, const std::vector< OlaDevice > & > DeviceInfoCallback
Invoked when OlaClient::FetchDeviceInfo() completes.
Definition CallbackTypes.h:71
SingleUseCallback2< void, const Result &, const std::string & > PluginDescriptionCallback
Invoked when OlaClient::FetchPluginDescription() completes.
Definition CallbackTypes.h:55
SingleUseCallback3< void, const Result &, const RDMMetadata &, const ola::rdm::RDMResponse * > RDMCallback
Called when a RDM request completes. Used with OlaClient::RDMGet() and OlaClient::RDMSet().
Definition CallbackTypes.h:154
Callback2< void, const DMXMetadata &, const DmxBuffer & > RepeatableDMXCallback
Called when new DMX data arrives.
Definition CallbackTypes.h:142
SingleUseCallback1< void, const Result & > SetCallback
Invoked when an operation completes.
Definition CallbackTypes.h:85
SingleUseCallback2< void, const Result &, const std::vector< OlaUniverse > & > UniverseListCallback
Invoked when OlaClient::FetchUniverseList() completes.
Definition CallbackTypes.h:99
SingleUseCallback2< void, const Result &, const PluginState & > PluginStateCallback
Invoked when OlaClient::FetchPluginState() completes.
Definition CallbackTypes.h:63
SingleUseCallback2< void, const Result &, const std::vector< OlaDevice > & > CandidatePortsCallback
Invoked when OlaClient::FetchDeviceInfo() completes.
Definition CallbackTypes.h:79
BaseCallback1< void, const Result & > GeneralSetCallback
Invoked when an operation completes.
Definition CallbackTypes.h:91
SingleUseCallback2< void, const Result &, const std::string & > ConfigureDeviceCallback
Invoked when OlaClient::ConfigureDevice() completes.
Definition CallbackTypes.h:115
SingleUseCallback3< void, const Result &, const DMXMetadata &, const DmxBuffer & > DMXCallback
Called once when OlaClient::FetchDMX() completes.
Definition CallbackTypes.h:134
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
Metadata that accompanies DMX packets.
Definition ClientTypes.h:311
Metadata that accompanies RDM Responses.
Definition ClientTypes.h:332