Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIDeleteNotification.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#if !defined __GUIDELETENOTIFICATION__H_
11#define __GUIDELETENOTIFICATION__H_
12
13#include "eC_Types.h"
14
51{
52public:
55 m_pbDeletedFlag(NULL)
56 {
57 }
58
63 {
64 if (NULL != m_pbDeletedFlag)
65 {
66 *m_pbDeletedFlag = true;
67 }
68 }
69
70protected:
74 void InitDeletedFlag(eC_Bool& bDeleted)
75 {
76 bDeleted = false;
77 m_pbDeletedFlag = &bDeleted;
78 }
79
82 {
83 m_pbDeletedFlag = NULL;
84 }
85
86private:
87 eC_Bool* m_pbDeletedFlag;
88};
89
90#endif
Class that sets a local variable to True if the object has been deleted.
Definition: GUIDeleteNotification.h:51
virtual ~CGUIDeleteNotification()
Definition: GUIDeleteNotification.h:62
void InitDeletedFlag(eC_Bool &bDeleted)
Definition: GUIDeleteNotification.h:74
void ResetDeletedFlag()
Resets the internal flag pointer to NULL.
Definition: GUIDeleteNotification.h:81
CGUIDeleteNotification()
CGUIDeleteNotification constructor.
Definition: GUIDeleteNotification.h:54