00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "freEvents.h"
00025
00026 namespace FREE
00027 {
00028
00032
00033
00034
00035 NotificationEventBase::
00036 NotificationEventBase(NotifyEvent pNE)
00037 {
00038 m_NotifyEvent = pNE;
00039 };
00040
00041 NotificationEventBase::
00042 NotificationEventBase()
00043 {
00044 m_NotifyEvent = NULL;
00045 };
00046
00047 void
00048 NotificationEventBase::
00049 Execute(void* pSender, long threadID)
00050 {
00051 if (m_NotifyEvent) (*m_NotifyEvent)(pSender, threadID);
00052 };
00053
00057
00058
00059 CallbackEventBase::
00060 CallbackEventBase(CallEvent pCE)
00061 {
00062 m_CallEvent = pCE;
00063 };
00064
00065 CallbackEventBase::
00066 CallbackEventBase()
00067 {
00068 m_CallEvent = NULL;
00069 };
00070
00071 bool
00072 CallbackEventBase::
00073 Execute(CallbackType callbackID, CallbackFlagType flag, void* pData, void* pSender, long threadID)
00074 {
00075 return (*m_CallEvent)(callbackID, flag, pData, pSender, threadID);
00076 };
00077
00081
00082
00083 ProgressEventBase::
00084 ProgressEventBase(ProgEvent pPE)
00085 {
00086 m_ProgressEvent = pPE;
00087 };
00088
00089 ProgressEventBase::
00090 ProgressEventBase()
00091 {
00092 m_ProgressEvent = NULL;
00093 };
00094
00095 void
00096 ProgressEventBase::
00097 Execute(const long status, const std::string& sComment, void* pSender, long threadID)
00098 {
00099 (*m_ProgressEvent)(status, sComment, pSender, threadID);
00100 };
00101
00102 }