00001
00002
00003
00004
00005
00006 #pragma once
00007
00008
00009 #define WINVER 0x0400
00010
00011 #define _WIN32_IE 0x0400
00012 #define _RICHEDIT_VER 0x0100
00013
00014 #include <atlbase.h>
00015 #include <atlapp.h>
00016
00017 extern CAppModule _Module;
00018
00019 #include <atlwin.h>
00020 #include <atlcom.h>
00021 #include <atlhost.h>
00022 #include <atlctrls.h>
00023 #include <atlctrlw.h>
00024 #include <atlframe.h>
00025 #include <atldlgs.h>
00026
00027 #import "c:\\windows\\system32\\skype4com.dll" named_guids
00028
00029 using namespace SKYPE4COMLib;
00030
00031 #include <sstream>
00032 #include <string>
00033 #include <fstream>
00034 #include <map>
00035
00036 #include <cmath>
00037
00038 #include <boost/tokenizer.hpp>
00039 #include <boost/lexical_cast.hpp>
00040 #include <boost/date_time/posix_time/posix_time.hpp>
00041
00042 #include "Tariff.h"
00043 #include "TariffCalculator.h"
00044
00045
00046 typedef enum TariffType { DAY, EVENING, WEEKEND } TariffType;
00047
00048 typedef struct CallInfo {
00049 long callId;
00050 std::string* callerCountry;
00051 long duration;
00052 TariffType tariffType;
00053 } CallInfo;