41 Q_PROPERTY(
bool connected READ isConnected)
55 Q_INVOKABLE
void start(
const QString& strFileName =
"")
57 SCRIPT_ERROR_IF_FAILED(m_oClient->Start(strFileName.toLocal8Bit().data()));
63 Q_INVOKABLE
void split(
const QString& strFileName =
"")
65 SCRIPT_ERROR_IF_FAILED(m_oClient->Split(strFileName.toLocal8Bit().data()));
71 Q_INVOKABLE
void stop(
const QString& strFileName =
"")
73 SCRIPT_ERROR_IF_FAILED(m_oClient->Stop(strFileName.toLocal8Bit().data()));
79 Q_INVOKABLE
void addMarker(
double fTimeStamp,
const QString& strName =
"",
const QString& strAdditional =
"")
81 SCRIPT_ERROR_IF_FAILED(ucom::ucom_cast<services::IRecorder*>(&m_oClient.Get())->AddMarker(
static_cast<tTimeStamp>(fTimeStamp),
82 strName.toStdString().c_str(),
83 strAdditional.toStdString().c_str()));
91 SCRIPT_ERROR_IF_FAILED(ucom::ucom_cast<services::IRecorder*>(&m_oClient.Get())->DropHistory());
98 return m_oClient.IsValid();
102 QJSEngine& m_oEngine;
129 Q_INVOKABLE
void open(
const QString& strFileNames,
bool bLoadReferencedFiles)
131 SCRIPT_ERROR_IF_FAILED(m_pClient->Open(strFileNames.toLocal8Bit().data(), bLoadReferencedFiles));
139 SCRIPT_ERROR_IF_FAILED(m_pClient->Close());
147 SCRIPT_ERROR_IF_FAILED(m_pClient->Play());
155 SCRIPT_ERROR_IF_FAILED(m_pClient->Pause());
163 SCRIPT_ERROR_IF_FAILED(m_pClient->Reset());
175 QVariantList oReturnValue;
176 oReturnValue.push_back(
static_cast<qint64
>(base::duration_cast<base::tNanoSeconds>(tmStart).nCount));
177 oReturnValue.push_back(
static_cast<qint64
>(base::duration_cast<base::tNanoSeconds>(tmEnd).nCount));
180 EXCEPTION_TO_SCRIPT_ERROR({})
187 return base::duration_cast<base::tNanoSeconds>(m_pClient->GetCurrentTime()).nCount;
195 SCRIPT_ERROR_IF_FAILED(m_pClient->SeekToTime(base::duration_cast<tTimeStamp>(
base::tNanoSeconds{tmTime})));
201 QJSEngine& m_oEngine;
218 Q_PROPERTY(
bool connected READ isConnected)
232 Q_INVOKABLE QObject*
getObject(
const QString& strName =
"")
236 THROW_IF_FAILED(m_oClient->GetObject(strName.toLocal8Bit().data(), pObject));
239 EXCEPTION_TO_SCRIPT_ERROR(
nullptr)
245 return m_oClient.IsValid();
249 QJSEngine& m_oEngine;
tInt64 tTimeStamp
type definition for a time value.
Helper class that wraps a streaming::ant::IBindingClient.
Interface client for adtf::services::ant::IPlayer.
Q_INVOKABLE qint64 getCurrentTime()
Information interface to get the current time position of the current opened files.
Q_INVOKABLE void open(const QString &strFileNames, bool bLoadReferencedFiles)
Opens one or more adtfdat files.
Q_INVOKABLE void pause()
Control interface to pause streaming.
Q_INVOKABLE void seekToTime(qint64 tmTime)
Control interface to seek to the given (Chunk) Time.
Q_INVOKABLE void play()
Control interface to start streaming.
Q_INVOKABLE void reset()
Control interface to Reset the streaming.
Q_INVOKABLE QVariantList getTimeRange()
Q_INVOKABLE void close()
Closes the current loaded files.
Interface client for adtf::ui::giant::IQtShared.
Q_INVOKABLE QObject * getObject(const QString &strName="")
Get a handle to an existing or new Qt object (i.e.
Interface client for adtf::streaming::ant::IRecorder.
Q_INVOKABLE void start(const QString &strFileName="")
Starts a new recording.
Q_INVOKABLE void addMarker(double fTimeStamp, const QString &strName="", const QString &strAdditional="")
Adds a marker to the corrently ongoing recording.
Q_INVOKABLE void dropHistory()
Drops all data currently kept in the history buffer.
Q_INVOKABLE void split(const QString &strFileName="")
Stops an ongoing recording and starts a new one.
Q_INVOKABLE void stop(const QString &strFileName="")
Stops an ongoing recording.
virtual tResult GetObject(iobject_ptr< IObject > &pObject, const char *strNameOID) const =0
Get registered object from object registry.
Object pointer implementation used for reference counting on objects of type IObject.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
adtf::ucom::IRuntime * _runtime
Global Runtime Pointer to reference to the current runtime.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
A timestamp with nanosecond precision.
#define THROW_IF_FAILED_DESC(s,...)
throws if the expression returns a failed tResult and ammends the error message.
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult