ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
application_intf.h
Go to the documentation of this file.
1
7#pragma once
8#include "runnable_intf.h"
10
11namespace adtf
12{
13namespace services
14{
15namespace ant
16{
17
24{
25 public:
27 ADTF_IID(IApplication, "application.ant.services.adtf.iid");
28
29 public:
36 class IJob : public ucom::ant::IObject,
38 {
39 public:
41 ADTF_IID(IJob, "job.application.ant.services.adtf.iid");
42
43 protected:
45 ~IJob() = default;
46 };
47
48 public:
55 virtual tResult Exec() = 0;
56
64 virtual tResult Exit(tResult oExitResult = ERR_NOERROR) = 0;
65
74 virtual tResult EnqueueJob(const ucom::ant::iobject_ptr<IJob>& oJob, bool bWait) = 0;
75};
76
77}
78
79namespace quiet
80{
81
86{
87 public:
89 ADTF_IID(IApplication, "application.quiet.services.adtf.iid");
90
91 public:
92
98};
99
100}
101
103
104}
105} // namespace
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
The Runnable interface defines common methods for a running component.
Job to add to the applications queue.
ADTF_IID(IJob, "job.application.ant.services.adtf.iid")
definition of jobs identifier
~IJob()=default
hide DTOR. Use IObject::Destroy instead.
The IApplication interface wraps a generic processing loop.
virtual tResult Exit(tResult oExitResult=ERR_NOERROR)=0
Stops the application.
ADTF_IID(IApplication, "application.ant.services.adtf.iid")
definition of iid
virtual tResult EnqueueJob(const ucom::ant::iobject_ptr< IJob > &oJob, bool bWait)=0
Queues the job to the the applications queue processing.
virtual tResult Exec()=0
Application main function.
The IApplication interface wraps a generic processing loop.
ADTF_IID(IApplication, "application.quiet.services.adtf.iid")
definition of iid
virtual void ProcessEvents(adtf::base::flash::tNanoSeconds tmMaxTime)=0
Process events for the given maximum amount of time.
Base class for every interface type within the uCOM.
Definition object_intf.h:33
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for all service interfaces provided since v3.0.
Namespace for all service interfaces provided since v3.16.
Namespace for a summary of all service interfaces (System Service) provided by ADTF.
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.