ADTF  3.18.2
application_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "runnable_intf.h"
9 #include <adtfucom3/adtf_ucom3.h>
10 
11 namespace adtf
12 {
13 namespace services
14 {
15 namespace 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 
79 namespace quiet
80 {
81 
86 {
87  public:
89  ADTF_IID(IApplication, "application.quiet.services.adtf.iid");
90 
91  public:
92 
97  virtual void ProcessEvents(adtf::base::flash::tNanoSeconds tmMaxTime) = 0;
98 };
99 
100 }
101 
102 using quiet::IApplication;
103 
104 }
105 } // namespace
Copyright © Audi Electronics Venture GmbH.
The Runnable interface defines common methods for a running component.
Definition: runnable_intf.h:26
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:31
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.