My Project
D:/source/c++/Programme/sally/sally/sallyAPI/Timer.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include "GUIBaseObject.h"
00031 #include "Thread.h"
00032 
00033 namespace SallyAPI
00034 {
00035         namespace GUI
00036         {
00045 
00046                 class DLL_API_SALLY CTimer :
00047                         public SallyAPI::System::CThread
00048                 {
00049                 private:
00050                         int                                                             m_iTimeoutSecond;
00051                         int                                                             m_iTimeoutElapse;
00052                         SallyAPI::GUI::CGUIBaseObject*  m_pReporterWindow;
00053                         int                                                             m_iMessageId;
00054                         int                                                             m_iReporterId;
00055 
00056                         virtual void    RunEx();
00057                 public:
00058                         CTimer(int timeoutSecond, SallyAPI::GUI::CGUIBaseObject* reporterWindow, int reporterId,
00059                                 int messageId);
00060                         virtual ~CTimer();
00061 
00062                         int  GetTimeElapse();
00063                         void SetTimeout(int timeoutSecond);
00064                         void Reset();
00065                         void ExecuteNow();
00066                 };
00067         }
00068 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines