Garmin Fleet Management Controller  2.19.0
CStopNewDlg Class Reference

Modal dialog allowing the user to send a new stop to the client. More...

#include <CStopNewDlg.h>

+ Inheritance diagram for CStopNewDlg:

Public Member Functions

 CStopNewDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CStopNewDlg ()
 Destructor. More...
 

Protected Types

enum  StopProtocolType {
  STOP_PROTOCOL_A618,
  STOP_PROTOCOL_A603,
  STOP_PROTOCOL_A602,
  STOP_PROTOCOL_LEGACY
}
 Index of the selected item in the mStopProtocol radio button group. More...
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *aDataExchange)
 Perform dialog data exchange and validation. More...
 
afx_msg void OnBnClickedOk ()
 Click handler for the OK button. More...
 
afx_msg void OnFormChanged ()
 Change handler for all radio buttons and edit boxes on this dialog. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
BOOL mCompressLongStop
 Flag to determine if A618 stop "file" should be compressed. More...
 
CString mLatitudeStr
 Text in the Latitude edit box. More...
 
CString mLongitudeStr
 Text in the Longitude edit box. More...
 
CString mMessageStr
 Text in the Destination Name/Message edit box. More...
 
CString mStopId
 Text in the Stop ID edit box. More...
 
int mStopProtocol
 Index of the selected mStopProtocol. More...
 

Detailed Description

Modal dialog allowing the user to send a new stop to the client.

Definition at line 19 of file CStopNewDlg.h.

Member Enumeration Documentation

Index of the selected item in the mStopProtocol radio button group.

Enumerator
STOP_PROTOCOL_A618 
STOP_PROTOCOL_A603 
STOP_PROTOCOL_A602 
STOP_PROTOCOL_LEGACY 

Definition at line 35 of file CStopNewDlg.h.

Constructor & Destructor Documentation

CStopNewDlg::CStopNewDlg ( CWnd *  aParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller

Definition at line 46 of file CStopNewDlg.cpp.

CStopNewDlg::~CStopNewDlg ( )
virtual

Destructor.

Definition at line 71 of file CStopNewDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CStopNewDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 80 of file CStopNewDlg.cpp.

References IDC_COMPRESS_LONG_STOP, IDC_STOPNEW_EDIT_STOPID, mCompressLongStop, mLatitudeStr, mLongitudeStr, mMessageStr, mStopId, and mStopProtocol.

Referenced by ~CStopNewDlg().

void CStopNewDlg::OnFormChanged ( )
protected

Change handler for all radio buttons and edit boxes on this dialog.

Validate all required fields, and enable the OK button if all fields are present.

Definition at line 142 of file CStopNewDlg.cpp.

References FALSE, IDC_COMPRESS_LONG_STOP, IDC_STOPNEW_EDIT_STOPID, IDC_STOPNEW_LBL_STOPID, mLatitudeStr, mLongitudeStr, mMessageStr, mStopId, mStopProtocol, STOP_PROTOCOL_A602, STOP_PROTOCOL_A603, STOP_PROTOCOL_A618, TRUE, and UTIL_data_is_uint32().

BOOL CStopNewDlg::OnInitDialog ( )
protected

Initialize the dialog.

This function is called when the window is created. It sets up the parent, so it can get info from and send a message to FmiApplicationLayer.

Returns
TRUE, since this function does not set focus to a control

Definition at line 103 of file CStopNewDlg.cpp.

References FALSE, FmiApplicationLayer::getNextStopId(), IDC_COMPRESS_LONG_STOP, IDC_STOPNEW_EDIT_STOPID, IDC_STOPNEW_RDO_A602, mCom, mStopId, and TRUE.

Member Data Documentation

FmiApplicationLayer& CStopNewDlg::mCom
protected

Reference to the FMI communication controller.

Definition at line 52 of file CStopNewDlg.h.

Referenced by OnBnClickedOk(), and OnInitDialog().

BOOL CStopNewDlg::mCompressLongStop
protected

Flag to determine if A618 stop "file" should be compressed.

Definition at line 71 of file CStopNewDlg.h.

Referenced by DoDataExchange(), and OnBnClickedOk().

CString CStopNewDlg::mLatitudeStr
protected

Text in the Latitude edit box.

Definition at line 55 of file CStopNewDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnFormChanged().

CString CStopNewDlg::mLongitudeStr
protected

Text in the Longitude edit box.

Definition at line 58 of file CStopNewDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnFormChanged().

CString CStopNewDlg::mMessageStr
protected

Text in the Destination Name/Message edit box.

Definition at line 61 of file CStopNewDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnFormChanged().

CString CStopNewDlg::mStopId
protected

Text in the Stop ID edit box.

Definition at line 64 of file CStopNewDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), OnFormChanged(), and OnInitDialog().

int CStopNewDlg::mStopProtocol
protected

Index of the selected mStopProtocol.

See also
StopProtocolType

Definition at line 68 of file CStopNewDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnFormChanged().


The documentation for this class was generated from the following files: