00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_UTILS_OL
00020 #define INCL_UTILS_OL
00021
00027
00028 #define TZ_EASTERN_US TEXT("Eastern Standard Time" )
00029 #define TZ_CENTRAL_US TEXT("Central Standard Time" )
00030 #define TZ_MOUNTAIN TEXT("Mountain Standard Time")
00031 #define TZ_PACIFIC_US TEXT("Pacific Standard Time" )
00032 #define TZ_ALASKA TEXT("Alaska Standard Time" )
00033
00034
00035 #include "base/fscapi.h"
00036 #include "outlook/defs.h"
00037 #include "winmaincpp.h"
00038
00039 #include <string>
00040
00041
00042
00043 const OlDefaultFolders getDefaultFolderType (const std::wstring& itemType);
00044 const OlItemType getOlItemType (const std::wstring& itemType);
00045 const std::wstring getItemTypeFromOlType(const OlItemType olType);
00046
00047 void manageComErrors(_com_error &e);
00048 const std::wstring getNameFromVersion(std::wstring version);
00049
00050
00051
00052 void doubleToSystemTime(std::wstring& systemDate, const DATE doubleDate, const BOOL toUTC, const bool onlyDate = false);
00053 void systemTimeToDouble(const std::wstring& dataString, DATE* date, bool onlyDate = false);
00054 void localTimeToUTC (SYSTEMTIME &sysTime);
00055 void UTCToLocalTime (SYSTEMTIME &sysTime);
00056 bool adjustDSTSettings (TIME_ZONE_INFORMATION* timeZoneInfo, SYSTEMTIME targetTime);
00057 bool isTZForDSTChange (const std::wstring& tzName);
00058
00059
00060
00061 BOOL vBoolToBOOL(VARIANT_BOOL vbool);
00062 bool vBoolToBool(VARIANT_BOOL vbool);
00063 VARIANT_BOOL BOOLToVBool(BOOL b);
00064
00065
00068 #endif