19 #include "rtabstractservice.h"
20 rtAbstractService::rtAbstractService(rtString serviceName)
21 : mServiceName(serviceName)
22 , mApiVersion(1), mEmit()
26 rtAbstractService::~rtAbstractService()
29 void rtAbstractService::setName(rtString n)
33 void rtAbstractService::setApiVersion(uint32_t v)
37 rtError rtAbstractService::notify(
const rtString& eventName, rtObjectRef e)
39 mEmit.send(eventName, e);
43 rtError rtAbstractService::name(rtString& v)
const
48 rtError rtAbstractService::version(uint32_t& v)
const
53 rtError rtAbstractService::quirks(rtValue& v)
const
56 rtObjectRef e =
new rtMapObject;
60 rtError rtAbstractService::addListener(rtString eventName,
const rtFunctionRef &f)
62 return mEmit->addListener(eventName, f);
64 rtError rtAbstractService::delListener(rtString eventName,
const rtFunctionRef &f)
66 return mEmit->delListener(eventName, f);