CMainDlg Class Reference

#include <MainDlg.h>

Collaboration diagram for CMainDlg:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { IDD = IDD_MAINDLG }

Public Member Functions

virtual BOOL PreTranslateMessage (MSG *pMsg)
virtual BOOL OnIdle ()
LRESULT OnInitDialog (UINT, WPARAM, LPARAM, BOOL &)
LRESULT OnAppAbout (WORD, WORD, HWND, BOOL &)
LRESULT OnOK (WORD, WORD wID, HWND, BOOL &)
LRESULT OnCancel (WORD, WORD wID, HWND, BOOL &)
void CloseDialog (int nVal)
void __stdcall OnCallStatusChange (ICall *pCall, enum TCallStatus status)
TariffType getTariffType (void)
virtual HRESULT GetFuncInfoFromId (const IID &iid, DISPID dispidMember, LCID lcid, _ATL_FUNC_INFO &info)

Public Attributes

ISkypePtr ptr

Detailed Description

Main window class for the plugin.

Author:
Rory Winston <rory@researchkitchen.co.uk>

Definition at line 16 of file MainDlg.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
IDD 

Definition at line 29 of file MainDlg.h.


Member Function Documentation

void CMainDlg::CloseDialog int  nVal  )  [inline]
 

Unhook the event handlers

Free any allocated CallInfo* structures (and the associated string pointers)

Definition at line 150 of file MainDlg.h.

References TariffCalculator::getTariffs(), and ptr.

Referenced by OnCancel(), and OnOK().

virtual HRESULT CMainDlg::GetFuncInfoFromId const IID &  iid,
DISPID  dispidMember,
LCID  lcid,
_ATL_FUNC_INFO &  info
[inline, virtual]
 

Definition at line 264 of file MainDlg.h.

References IDD_MAINDLG.

TariffType CMainDlg::getTariffType void   )  [inline]
 

Deduce the appropriate tariff type from the current date and time

Definition at line 241 of file MainDlg.h.

References DAY, EVENING, and WEEKEND.

LRESULT CMainDlg::OnAppAbout WORD  ,
WORD  ,
HWND  ,
BOOL & 
[inline]
 

Definition at line 131 of file MainDlg.h.

void __stdcall CMainDlg::OnCallStatusChange ICall *  pCall,
enum TCallStatus  status
[inline]
 

A call has been initiated.

Definition at line 179 of file MainDlg.h.

References CallInfo::callerCountry, CallInfo::callId, CallInfo::duration, and CallInfo::tariffType.

LRESULT CMainDlg::OnCancel WORD  ,
WORD  wID,
HWND  ,
BOOL & 
[inline]
 

Definition at line 144 of file MainDlg.h.

References CloseDialog().

virtual BOOL CMainDlg::OnIdle  )  [inline, virtual]
 

Definition at line 38 of file MainDlg.h.

LRESULT CMainDlg::OnInitDialog UINT  ,
WPARAM  ,
LPARAM  ,
BOOL & 
[inline]
 

Load and parse the tariffs file The tariffs file is a simple pipe-delimited text file that has been downloaded from the BT website (see http://http://www.researchkitchen.co.uk/blog/archives/70 for details)

Create an instance of the IConversion interface. This translates internal Skype codes into human-readable form

Definition at line 63 of file MainDlg.h.

References _Module, IDC_STC3, IDR_MAINFRAME, TariffCalculator::parse(), and ptr.

LRESULT CMainDlg::OnOK WORD  ,
WORD  wID,
HWND  ,
BOOL & 
[inline]
 

Definition at line 138 of file MainDlg.h.

References CloseDialog().

virtual BOOL CMainDlg::PreTranslateMessage MSG *  pMsg  )  [inline, virtual]
 

Definition at line 33 of file MainDlg.h.


Member Data Documentation

ISkypePtr CMainDlg::ptr
 

Definition at line 30 of file MainDlg.h.

Referenced by CloseDialog(), and OnInitDialog().


The documentation for this class was generated from the following file:
Generated on Wed Sep 20 09:36:03 2006 for Skype Call Cost Estimator by  doxygen 1.4.6