CalendarDataProviderSQL.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:
对话框与窗口
开发平台:
Visual C++
- // CalendarDataProviderSQL.h: interface for the CCalendarDataProviderSQL class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CALENDARDATAPROVIDERSQL_H__791386E5_71B5_4772_B063_74BF78CCB93F__INCLUDED_)
- #define AFX_CALENDARDATAPROVIDERSQL_H__791386E5_71B5_4772_B063_74BF78CCB93F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Calendar/XTPCalendarCustomDataProvider.h"
- class CCalendarDataProviderSQL : public CXTPCalendarCustomDataProvider
- {
- public:
- CCalendarDataProviderSQL();
- virtual ~CCalendarDataProviderSQL();
- virtual BOOL Open();
- virtual void Close();
- // Base functionality.
- // Must be implemented.
- virtual CXTPCalendarEventsPtr DoRetrieveDayEvents(COleDateTime dtDay);
- virtual CXTPCalendarEventPtr DoRead_Event(DWORD dwEventID);
- virtual BOOL DoCreate_Event (CXTPCalendarEvent* pEvent, DWORD& rdwNewEventID);
- virtual BOOL DoUpdate_Event (CXTPCalendarEvent* pEvent);
- virtual BOOL DoDelete_Event (CXTPCalendarEvent* pEvent);
- // Recurrence events support.
- virtual CXTPCalendarRecurrencePatternPtr DoRead_RPattern(DWORD dwPatternID);
- virtual BOOL DoCreate_RPattern (CXTPCalendarRecurrencePattern* pPattern, DWORD& rdwNewPatternID);
- virtual BOOL DoUpdate_RPattern (CXTPCalendarRecurrencePattern* pPattern);
- virtual BOOL DoDelete_RPattern (CXTPCalendarRecurrencePattern* pPattern);
- // Additional feature handlers.
- // My be implement only if you need these feature.
- virtual CXTPCalendarEventsPtr DoGetUpcomingEvents(COleDateTime dtFrom, COleDateTimeSpan spPeriod);
- virtual CXTPCalendarEventsPtr DoGetAllEvents_raw();
- virtual void DoRemoveAllEvents();
- private:
- XTPADODB::_ConnectionPtr m_ptrDBconn;
- };
- #endif // !defined(AFX_CALENDARDATAPROVIDERSQL_H__791386E5_71B5_4772_B063_74BF78CCB93F__INCLUDED_)