Garmin Fleet Management Controller
2.19.0
|
Form for interacting with IFTA data on the device. More...
#include <CIftaDlg.h>
Public Types | |
enum | { IDD = IDD_IFTA } |
Public Member Functions | |
CIftaDlg (CWnd *pParent, FmiApplicationLayer &aCom) | |
Constructor. More... | |
virtual | ~CIftaDlg () |
void | onEvent (EventId aEventId, uint32 aEventData, void *aEventDataPtr, BOOL handleNow) |
Handles event callbacks by translating an EventId into a windows message. More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
Private Member Functions | |
afx_msg void | OnBnClickedDataDelete () |
Attempt to delete IFTA data on the device. More... | |
afx_msg void | OnBnClickedDataFetch () |
Attempt to fetch IFTA data from the device. More... | |
afx_msg LRESULT | OnEventIftaFileTransferReceived (WPARAM, LPARAM) |
Attempt to unzip received file and shell open the result. More... | |
Private Attributes | |
FmiApplicationLayer & | mCom |
Reference to the FMI communication controller. More... | |
COleDateTime | mEndDate |
COleDateTime | mEndTime |
COleDateTime | mStartDate |
COleDateTime | mStartTime |
Form for interacting with IFTA data on the device.
Download IFTA data or delete IFTA for a specified timeframe
Definition at line 21 of file CIftaDlg.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 33 of file CIftaDlg.h.
CIftaDlg::CIftaDlg | ( | CWnd * | pParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent window of this dialog |
aCom | The FmiApplicationLayer used to send commands to device |
Definition at line 30 of file CIftaDlg.cpp.
|
virtual |
Definition at line 41 of file CIftaDlg.cpp.
|
protectedvirtual |
Definition at line 45 of file CIftaDlg.cpp.
References EVENT_FMI_IFTA_FILE_TRANSFER_RECEIVED, IDC_IFTA_DATA_DELETE, IDC_IFTA_DATA_FETCH, IDC_IFTA_END_DATE, IDC_IFTA_END_TIME, IDC_IFTA_START_DATE, IDC_IFTA_START_TIME, mEndDate, mEndTime, mStartDate, mStartTime, OnBnClickedDataDelete(), OnBnClickedDataFetch(), OnEventIftaFileTransferReceived(), and WM_EVENT.
|
private |
Attempt to delete IFTA data on the device.
Validate the selected timeframe and if valid, send delete command.
Definition at line 115 of file CIftaDlg.cpp.
References convertDateTime(), fmi_ifta_data_delete_request_type::end_time, FMI_IFTA_DATA_DELETE_REQUEST, mCom, mEndDate, mEndTime, mStartDate, mStartTime, FmiApplicationLayer::sendFmiPacket(), and fmi_ifta_data_delete_request_type::start_time.
Referenced by DoDataExchange().
|
private |
Attempt to fetch IFTA data from the device.
Validate the selected timeframe and if valid, send fetch command.
Definition at line 86 of file CIftaDlg.cpp.
References convertDateTime(), fmi_ifta_data_fetch_request_type::end_time, FMI_IFTA_DATA_FETCH_REQUEST, mCom, mEndDate, mEndTime, mStartDate, mStartTime, FmiApplicationLayer::sendFmiPacket(), and fmi_ifta_data_fetch_request_type::start_time.
Referenced by DoDataExchange().
|
virtualinherited |
Handles event callbacks by translating an EventId into a windows message.
Casts this to a CWnd then posts a Windows message to it. The use of dynamic_cast is used as an alternative to the "dreaded diamond" caused by C++ multiple inheritance.
aEventId | The event ID |
aEventData | The event data |
aEventDataPtr | Pointer to more event data |
Implements EventListener.
Definition at line 29 of file CWndEventListener.cpp.
References EVENT_ID_CNT, and WM_EVENT.
|
private |
Attempt to unzip received file and shell open the result.
Attempt to unzip received file and shell open the result.
Definition at line 143 of file CIftaDlg.cpp.
References SAVE_RECEIVED_IFTA_FILE, and unzip().
Referenced by DoDataExchange().
|
private |
Reference to the FMI communication controller.
Definition at line 53 of file CIftaDlg.h.
Referenced by OnBnClickedDataDelete(), and OnBnClickedDataFetch().
|
private |
Definition at line 49 of file CIftaDlg.h.
Referenced by DoDataExchange(), OnBnClickedDataDelete(), and OnBnClickedDataFetch().
|
private |
Definition at line 50 of file CIftaDlg.h.
Referenced by DoDataExchange(), OnBnClickedDataDelete(), and OnBnClickedDataFetch().
|
private |
Definition at line 47 of file CIftaDlg.h.
Referenced by DoDataExchange(), OnBnClickedDataDelete(), and OnBnClickedDataFetch().
|
private |
Definition at line 48 of file CIftaDlg.h.
Referenced by DoDataExchange(), OnBnClickedDataDelete(), and OnBnClickedDataFetch().