My Project
D:/source/c++/Programme/sally/sally/sallyAPI/Scheduler.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 "AppBase.h"
00031 
00032 namespace SallyAPI
00033 {
00034         namespace Scheduler
00035         {
00041 
00042                 enum SCHEDULER_STATUS {SCHEDULER_STATUS_ACTIVATED, SCHEDULER_STATUS_PAUSE, SCHEDULER_STATUS_UNKOWN};
00043 
00052 
00053                 class DLL_API_SALLY CScheduler
00054                 {
00055                 private:
00056                         SallyAPI::GUI::CAppBase*                                m_pReporterWindow;
00057                         int                                                                             m_iMessageId;
00058                         int                                                                             m_iReporterId;
00059                         std::string                                                             m_strIdentifier;
00060                         int                                                                             m_iRunEveryDays;
00061                         bool                                                                    m_bRunning;
00062                         SYSTEMTIME                                                              m_stStartTime;
00063                         SallyAPI::Scheduler::SCHEDULER_STATUS   m_eStatus;
00064 
00065                         void    ClearStartTime();
00066                 public:
00067                         CScheduler(SallyAPI::GUI::CAppBase* reporterWindow, int reporterId, int messageId,
00068                                 const std::string& identifier, int runEveryDays);
00069                         ~CScheduler();
00070 
00071                         SallyAPI::GUI::CAppBase*        GetReporterWindow();
00072                         std::string     GetIdentifier();
00073                         int                     GetReporterId();
00074                         int                     GetMessageId();
00075                         int                     GetRunEveryDays();
00076                         void            SetRunning(bool running);
00077                         bool            IsRunning();
00078                         SYSTEMTIME      GetStartTime();
00079 
00080                         SallyAPI::Scheduler::SCHEDULER_STATUS   GetStatus();
00081                         void                                                                    SetStatus(SallyAPI::Scheduler::SCHEDULER_STATUS status);
00082                 };
00083         }
00084 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines