ECFreeBusyData.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. /**
  18. * @file
  19. * Free/busy data for one user
  20. *
  21. * @addtogroup libfreebusy
  22. * @{
  23. */
  24. #ifndef ECFREEBUSYDATA_H
  25. #define ECFREEBUSYDATA_H
  26. #include <kopano/zcdefs.h>
  27. #include "freebusy.h"
  28. #include "freebusyguid.h"
  29. #include <kopano/ECUnknown.h>
  30. #include <kopano/Trace.h>
  31. #include <kopano/ECDebug.h>
  32. #include <kopano/ECGuid.h>
  33. #include "ECFBBlockList.h"
  34. namespace KC {
  35. /**
  36. * Implementatie of the IFreeBusyData interface
  37. */
  38. class ECFreeBusyData _kc_final : public ECUnknown {
  39. private:
  40. ECFreeBusyData();
  41. public:
  42. static HRESULT Create(ECFreeBusyData **lppECFreeBusyData);
  43. HRESULT Init(LONG rtmStart, LONG rtmEnd, ECFBBlockList* lpfbBlockList);
  44. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  45. virtual HRESULT Reload(void *) { return E_NOTIMPL; }
  46. virtual HRESULT EnumBlocks(IEnumFBBlock **ppenumfb, FILETIME ftmStart, FILETIME ftmEnd);
  47. virtual HRESULT Merge(void *) { return E_NOTIMPL; }
  48. virtual HRESULT GetDelegateInfo(void *) { return E_NOTIMPL; }
  49. virtual HRESULT FindFreeBlock(LONG, LONG, LONG, BOOL, LONG, LONG, LONG, FBBlock_1 *);
  50. virtual HRESULT InterSect(void *, LONG, void *) { return E_NOTIMPL; }
  51. virtual HRESULT SetFBRange(LONG rtmStart, LONG rtmEnd);
  52. virtual HRESULT NextFBAppt(void *, ULONG, void *, ULONG, void *, void *) { return E_NOTIMPL; }
  53. virtual HRESULT GetFBPublishRange(LONG *prtmStart, LONG *prtmEnd);
  54. class xFreeBusyData _kc_final : public IFreeBusyData {
  55. #include <kopano/xclsfrag/IUnknown.hpp>
  56. // <kopano/xclsfrag/IFreeBusyData.hpp>
  57. virtual HRESULT __stdcall Reload(void *) _kc_override;
  58. virtual HRESULT __stdcall EnumBlocks(IEnumFBBlock **ppenumfb, FILETIME ftmStart, FILETIME ftmEnd) _kc_override;
  59. virtual HRESULT __stdcall Merge(void *) _kc_override;
  60. virtual HRESULT __stdcall GetDelegateInfo(void *) _kc_override;
  61. virtual HRESULT __stdcall FindFreeBlock(LONG, LONG, LONG, BOOL, LONG, LONG, LONG, FBBlock_1 *) _kc_override;
  62. virtual HRESULT __stdcall InterSect(void *, LONG, void *) _kc_override;
  63. virtual HRESULT __stdcall SetFBRange(LONG rtmStart, LONG rtmEnd) _kc_override;
  64. virtual HRESULT __stdcall NextFBAppt(void *, ULONG, void *, ULONG, void *, void *) _kc_override;
  65. virtual HRESULT __stdcall GetFBPublishRange(LONG *prtmStart, LONG *prtmEnd) _kc_override;
  66. } m_xFreeBusyData;
  67. private:
  68. ECFBBlockList m_fbBlockList;
  69. LONG m_rtmStart; // PR_FREEBUSY_START_RANGE
  70. LONG m_rtmEnd; // PR_FREEBUSY_END_RANGE
  71. };
  72. } /* namespace */
  73. #endif // ECFREEBUSYDATA_H
  74. /** @} */