NAP
portalitem.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // External Includes
8 #include <nap/resource.h>
9 #include <nap/resourceptr.h>
10 #include <nap/signalslot.h>
11 #include <apievent.h>
12 
13 namespace nap
14 {
19  class NAPAPI PortalItem : public Resource
20  {
21  RTTI_ENABLE(Resource)
22  public:
23 
30  virtual bool processUpdate(const APIEvent& event, utility::ErrorState& error) = 0;
31 
36  virtual APIEventPtr getDescriptor() const = 0;
37 
42  virtual APIEventPtr getValue() const = 0;
43 
48  };
49 }
nap::PortalItem::updateSignal
Signal< const PortalItem & > updateSignal
Definition: portalitem.h:47
nap::utility::ErrorState
Definition: errorstate.h:19
nap::PortalItem
Definition: portalitem.h:19
nap::Signal
Definition: signalslot.h:28
nap::APIEventPtr
std::unique_ptr< nap::APIEvent > APIEventPtr
Definition: apievent.h:179
nap
Definition: templateapp.h:17
nap::Resource
Definition: resource.h:19
nap::APIEvent
Definition: apievent.h:37