ODeV framework  v2
IApplicationErrorDelegateVtbl.h
Go to the documentation of this file.
1 
31 #ifndef INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_
32 #define INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #include "systypes.h"
39 #include "syserror.h"
40 #include "systp.h"
41 
46 
51  sys_error_code_t (*Init)(IApplicationErrorDelegate *this, void *pParams);
56  sys_error_code_t (*AddFirstResponder)(IApplicationErrorDelegate *this, IErrFirstResponder *pFirstResponder, uint8_t nPriority);
60 };
61 
68 
73 };
74 
75 // Public API declaration
76 //***********************
77 
78 
79 // Inline functions definition
80 // ***************************
81 
82 SYS_DEFINE_INLINE
84  return this->vptr->Init(this, pParams);
85 }
86 
87 SYS_DEFINE_INLINE
89  return this->vptr->OnStartApplication(this, pxContext);
90 }
91 
92 SYS_DEFINE_INLINE
94  return this->vptr->ProcessEvent(this, pxContext, xEvent);
95 }
96 
97 SYS_DEFINE_INLINE
99  return this->vptr->OnNewErrEvent(this, xEvent);
100 }
101 
102 SYS_DEFINE_INLINE
104  return this->vptr->IsLastErrorPending(this);
105 }
106 
107 SYS_DEFINE_INLINE
109  return this->vptr->AddFirstResponder(this, pFirstResponder, nPriority);
110 }
111 
112 SYS_DEFINE_INLINE
114  return this->vptr->RemoveFirstResponder(this, pFirstResponder);
115 }
116 
117 SYS_DEFINE_INLINE
119  return this->vptr->GetMaxFirstResponderPriority(this);
120 }
121 
122 SYS_DEFINE_INLINE
124  this->vptr->ResetCounter(this);
125 }
126 
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* INCLUDE_SERVICES_IAPPLICATIONERRORDELEGATEVTBL_H_ */
Definition: sysevent.h:44
Define the global error management API.
sys_error_code_t(* RemoveFirstResponder)(IApplicationErrorDelegate *this, IErrFirstResponder *pFirstResponder)
Definition: IApplicationErrorDelegateVtbl.h:57
SYS_DEFINE_INLINE sys_error_code_t IAEDAddFirstResponder(IApplicationErrorDelegate *this, IErrFirstResponder *pFirstResponder, uint8_t nPriority)
Definition: IApplicationErrorDelegateVtbl.h:108
sys_error_code_t(* ProcessEvent)(IApplicationErrorDelegate *this, ApplicationContext *pxContext, SysEvent xEvent)
Definition: IApplicationErrorDelegateVtbl.h:53
SYS_DEFINE_INLINE sys_error_code_t IAEDOnStartApplication(IApplicationErrorDelegate *this, ApplicationContext *pxContext)
Definition: IApplicationErrorDelegateVtbl.h:88
Definition: IErrorFirstResponderVtbl.h:59
void(* ResetCounter)(IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:59
SYS_DEFINE_INLINE void IAEDResetCounter(IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:123
Definition: IApplicationErrorDelegateVtbl.h:50
SYS_DEFINE_INLINE sys_error_code_t IAEDInit(IApplicationErrorDelegate *this, void *pParams)
Definition: IApplicationErrorDelegateVtbl.h:83
Definition: IApplicationErrorDelegateVtbl.h:67
sys_error_code_t(* OnNewErrEvent)(IApplicationErrorDelegate *this, SysEvent xEvent)
Definition: IApplicationErrorDelegateVtbl.h:54
sys_error_code_t(* AddFirstResponder)(IApplicationErrorDelegate *this, IErrFirstResponder *pFirstResponder, uint8_t nPriority)
Definition: IApplicationErrorDelegateVtbl.h:56
Common type declaration.
sys_error_code_t(* OnStartApplication)(IApplicationErrorDelegate *this, ApplicationContext *pxContext)
Definition: IApplicationErrorDelegateVtbl.h:52
SYS_DEFINE_INLINE sys_error_code_t IAEDRemoveFirstResponder(IApplicationErrorDelegate *this, IErrFirstResponder *pFirstResponder)
Definition: IApplicationErrorDelegateVtbl.h:113
SYS_DEFINE_INLINE sys_error_code_t IAEDProcessEvent(IApplicationErrorDelegate *this, ApplicationContext *pxContext, SysEvent xEvent)
Definition: IApplicationErrorDelegateVtbl.h:93
sys_error_code_t(* Init)(IApplicationErrorDelegate *this, void *pParams)
Definition: IApplicationErrorDelegateVtbl.h:51
uint8_t(* GetMaxFirstResponderPriority)(const IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:58
SYS_DEFINE_INLINE sys_error_code_t IAEDOnNewErrEvent(IApplicationErrorDelegate *this, SysEvent xEvent)
Definition: IApplicationErrorDelegateVtbl.h:98
boolean_t(* IsLastErrorPending)(IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:55
unsigned short sys_error_code_t
Definition: syserror.h:45
Definition: ApplicationContext.h:48
SYS_DEFINE_INLINE boolean_t IAEDIsLastErrorPending(IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:103
Target platform definition.
SYS_DEFINE_INLINE uint8_t IAEDGetMaxFirstResponderPriority(const IApplicationErrorDelegate *this)
Definition: IApplicationErrorDelegateVtbl.h:118
const IApplicationErrorDelegate_vtbl * vptr
Definition: IApplicationErrorDelegateVtbl.h:72