Garmin Fleet Management Controller  2.19.0
CAobrdDriversDlg.cpp
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * MODULE NAME:
4 * CAobrdDriversDlg.cpp
5 *
6 * Copyright 2012 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #include "stdafx.h"
11 #include "CFmiApplication.h"
12 #include "CAobrdDriversDlg.h"
14 
15 #if( FMI_SUPPORT_A610 )
16 
17 using namespace std;
18 
19 IMPLEMENT_DYNAMIC(CAobrdDriversDlg, CDialog)
20 
21 BEGIN_MESSAGE_MAP( CAobrdDriversDlg, CDialog )
22  ON_BN_CLICKED( IDC_DRIVERS_SEND_UPDATE, OnBnClickedSendUpdate )
23 #if( FMI_SUPPORT_A615 )
24  ON_BN_CLICKED( IDC_DRIVERS_SEND_LOGOFF, OnBnClickedSendLogoff )
25 #endif
26  ON_BN_CLICKED( IDC_DRIVERS_BTN_DELETE, OnBnClickedDelete )
27  ON_BN_CLICKED( IDC_DRIVERS_BTN_SET, OnBnClickedSet )
28  ON_BN_CLICKED( IDC_DRIVERS_SHIPMENTS, OnBnClickedShipments )
29  ON_EN_CHANGE( IDC_DRIVERS_EDIT_ID, OnChangeDriverData )
30  ON_EN_CHANGE( IDC_DRIVERS_EDIT_PASSWORD, OnChangeDriverData )
31  ON_EN_CHANGE( IDC_DRIVERS_EDIT_FIRST_NAME, OnChangeDriverData )
32  ON_EN_CHANGE( IDC_DRIVERS_EDIT_LAST_NAME, OnChangeDriverData )
33  ON_EN_CHANGE( IDC_DRIVERS_EDIT_CARRIER_NAME, OnChangeDriverData )
34  ON_EN_CHANGE( IDC_DRIVERS_EDIT_CARRIER_ID, OnChangeDriverData )
35  ON_LBN_SELCHANGE( IDC_DRIVERS_LONG_TERM_RULESETS, OnChangeDriverData )
36  ON_LBN_SELCHANGE( IDC_DRIVERS_LOAD_TYPE_RULESETS, OnChangeDriverData )
37  ON_LBN_SELCHANGE( IDC_DRIVERS_TIME_ZONES, OnChangeDriverData )
38  ON_BN_CLICKED( IDOK, OnBnClickedOk )
39  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_ID, OnEnSetfocusLoginEdit )
40  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_ID, OnEnKillfocusLoginEdit )
41  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_PASSWORD, OnEnSetfocusLoginEdit )
42  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_PASSWORD, OnEnKillfocusLoginEdit )
43  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_FIRST_NAME, OnEnSetfocusLoginEdit )
44  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_FIRST_NAME, OnEnKillfocusLoginEdit )
45  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_LAST_NAME, OnEnSetfocusLoginEdit )
46  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_LAST_NAME, OnEnKillfocusLoginEdit )
47  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_CARRIER_NAME, OnEnSetfocusLoginEdit )
48  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_CARRIER_NAME, OnEnKillfocusLoginEdit )
49  ON_EN_SETFOCUS( IDC_DRIVERS_EDIT_CARRIER_ID, OnEnSetfocusLoginEdit )
50  ON_EN_KILLFOCUS( IDC_DRIVERS_EDIT_CARRIER_ID, OnEnKillfocusLoginEdit )
51  ON_CBN_SETFOCUS( IDC_DRIVERS_LONG_TERM_RULESETS, OnEnSetfocusLoginEdit )
52  ON_CBN_KILLFOCUS( IDC_DRIVERS_LONG_TERM_RULESETS, OnEnKillfocusLoginEdit )
53  ON_CBN_SETFOCUS( IDC_DRIVERS_LOAD_TYPE_RULESETS, OnEnSetfocusLoginEdit )
54  ON_CBN_KILLFOCUS( IDC_DRIVERS_LOAD_TYPE_RULESETS, OnEnKillfocusLoginEdit )
55  ON_CBN_SETFOCUS( IDC_DRIVERS_TIME_ZONES, OnEnSetfocusLoginEdit )
56  ON_CBN_KILLFOCUS( IDC_DRIVERS_TIME_ZONES, OnEnKillfocusLoginEdit )
57  ON_LBN_SELCHANGE( IDC_DRIVERS_LST_DRIVERS, OnLbnSelchangeDriverList )
58  ON_LBN_SETFOCUS( IDC_DRIVERS_LST_DRIVERS, OnLbnSetfocusDriverList )
59  ON_LBN_KILLFOCUS( IDC_DRIVERS_LST_DRIVERS, OnLbnKillfocusDriverList )
60 END_MESSAGE_MAP()
61 
62 //----------------------------------------------------------------------
66 //----------------------------------------------------------------------
67 CAobrdDriversDlg::CAobrdDriversDlg
68  (
69  CWnd * aParent,
70  FmiApplicationLayer & aCom
71  )
72  : CDialog( IDD_AOBRD_DRIVERS, aParent )
73  , mCom( aCom )
74  , mSelectedIndex( -1 )
75  , mDriverId( _T("") )
76  , mDriverPassword( _T("") )
77  , mDriverFirstName( _T("") )
78  , mDriverLastName( _T("") )
79  , mDriverCarrierName( _T("") )
80  , mDriverCarrierID( _T("") )
81  , mDriverLongTermRuleset( -1 )
82 #if( FMI_SUPPORT_A615 )
83  , mDriverLoadTypeRuleset( -1 )
84 #endif
85  , mDriverTimeZone( -1 )
86 {
87 }
88 
89 //----------------------------------------------------------------------
91 //----------------------------------------------------------------------
93 {
94 }
95 
96 //----------------------------------------------------------------------
99 //----------------------------------------------------------------------
101  (
102  CDataExchange * aDataExchange
103  )
104 {
105  CDialog::DoDataExchange( aDataExchange );
106  DDX_Control( aDataExchange, IDC_DRIVERS_LST_DRIVERS, mListBox );
107  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_ID, mDriverId );
108  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_PASSWORD, mDriverPassword );
109  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_FIRST_NAME, mDriverFirstName );
110  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_LAST_NAME, mDriverLastName );
111  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_CARRIER_NAME, mDriverCarrierName );
112  DDX_Text( aDataExchange, IDC_DRIVERS_EDIT_CARRIER_ID, mDriverCarrierID );
113  DDX_CBIndex( aDataExchange, IDC_DRIVERS_LONG_TERM_RULESETS, mDriverLongTermRuleset );
114 #if( FMI_SUPPORT_A615 )
115  DDX_CBIndex( aDataExchange, IDC_DRIVERS_LOAD_TYPE_RULESETS, mDriverLoadTypeRuleset );
116 #endif
117  DDX_CBIndex( aDataExchange, IDC_DRIVERS_TIME_ZONES, mDriverTimeZone );
118 }
119 
120 //----------------------------------------------------------------------
126 //----------------------------------------------------------------------
128 {
129  CDialog::OnInitDialog();
130 
131  updateListBox();
132 
133  GetDlgItem( IDC_DRIVERS_SEND_UPDATE )->EnableWindow( FALSE );
134  GetDlgItem( IDC_DRIVERS_BTN_DELETE )->EnableWindow( FALSE );
135  GetDlgItem( IDC_DRIVERS_SHIPMENTS )->EnableWindow( FALSE );
136 
137  SetWindowPos( NULL, 700, 350, 0, 0, SWP_NOSIZE | SWP_NOZORDER );
138 
139  CComboBox * longTermRulesets = (CComboBox*) GetDlgItem( IDC_DRIVERS_LONG_TERM_RULESETS );
140  longTermRulesets->ResetContent();
141  longTermRulesets->AddString(_T("60 hour/7 day"));
142  longTermRulesets->AddString(_T("70 hour/8 day"));
143 
144 #if( FMI_SUPPORT_A615 )
145  CComboBox * loadTypeRulesets = (CComboBox*) GetDlgItem( IDC_DRIVERS_LOAD_TYPE_RULESETS );
146  loadTypeRulesets->ResetContent();
147  loadTypeRulesets->AddString(_T("Property"));
148  loadTypeRulesets->AddString(_T("Passenger"));
149 
150  GetDlgItem( IDC_DRIVERS_SEND_LOGOFF )->EnableWindow( FALSE );
151 #else
152  GetDlgItem( IDC_DRIVERS_LOAD_TYPE_RULESETS )->ShowWindow( SW_HIDE );
153  GetDlgItem( IDC_DRIVERS_LBL_LOAD_TYPE_RULESET )->ShowWindow( SW_HIDE );
154  GetDlgItem( IDC_DRIVERS_SEND_LOGOFF )->ShowWindow( SW_HIDE );
155 #endif
156 
157  CComboBox * timeZones = (CComboBox*) GetDlgItem( IDC_DRIVERS_TIME_ZONES );
158  timeZones->ResetContent();
159  timeZones->AddString(_T("Eastern"));
160  timeZones->AddString(_T("Central"));
161  timeZones->AddString(_T("Mountain"));
162  timeZones->AddString(_T("Pacific"));
163  timeZones->AddString(_T("Alaska"));
164  timeZones->AddString(_T("Hawaii"));
165 
166  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_ID))->LimitText(39);
167  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_PASSWORD))->LimitText(19);
168  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_FIRST_NAME))->LimitText(34);
169  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_LAST_NAME))->LimitText(34);
170  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_CARRIER_NAME))->LimitText(119);
171  ((CEdit*)GetDlgItem(IDC_DRIVERS_EDIT_CARRIER_ID))->LimitText(7);
172 
173  return TRUE;
174 } /* OnInitDialog() */
175 
176 //----------------------------------------------------------------------
178 //----------------------------------------------------------------------
180 {
181  mDriverId = _T("");
182  mDriverPassword = _T("");
183  mDriverFirstName = _T("");
184  mDriverLastName = _T("");
185  mDriverCarrierName = _T("");
186  mDriverCarrierID = _T("");
187  mDriverLongTermRuleset = -1;
188 #if( FMI_SUPPORT_A615 )
189  mDriverLoadTypeRuleset = -1;
190 #endif
191  mDriverTimeZone = -1;
192 } /* clearData() */
193 
194 //----------------------------------------------------------------------
197 //----------------------------------------------------------------------
199 {
200  CString listItem;
201 
202  //must keep track of where the list was scrolled to
203  //since we reset content we must reinitialize these
204  mSelectedIndex = mListBox.GetCurSel();
205  int topIndex = mListBox.GetTopIndex();
206 
207  //reset content and then add current drivers
208  mListBox.ResetContent();
209  FileBackedMap<AobrdDriverItem>::const_iterator iter = mCom.mAOBRDDrivers.begin();
210  for( ; iter != mCom.mAOBRDDrivers.end(); ++iter )
211  {
212  if( iter->second.isValid() )
213  {
214  listItem.Format( _T("%s"), iter->second.getDriverId() );
215  mListBox.AddString( listItem );
216  }
217  }
218 
219  //reset scroll and selection
220  mSelectedIndex = -1;
221 
222  //reset scroll and selection
223  mListBox.SetCurSel( mSelectedIndex );
224  mListBox.SetTopIndex( topIndex );
225 
226 } /* updateListBox() */
227 
228 //----------------------------------------------------------------------
231 //----------------------------------------------------------------------
233 {
234  CListBox * driverListBox = ( CListBox* ) GetDlgItem( IDC_DRIVERS_LST_DRIVERS );
235  mSelectedIndex = driverListBox->GetCurSel();
236 
237  if( mSelectedIndex >= 0 && mSelectedIndex < driverListBox->GetCount() )
238  {
239  const AobrdDriverItem & driver = mCom.mAOBRDDrivers.get( mCom.mAOBRDDrivers.getKeyAt( mSelectedIndex ) );
240  mCom.sendAOBRDDriverProfile( driver );
241  }
242 } /* OnBnClickedSendUpdate() */
243 
244 #if( FMI_SUPPORT_A615 )
245 
246 //----------------------------------------------------------------------
249 //----------------------------------------------------------------------
251 {
252  CListBox * driverListBox = ( CListBox* ) GetDlgItem( IDC_DRIVERS_LST_DRIVERS );
253  mSelectedIndex = driverListBox->GetCurSel();
254 
255  if( mSelectedIndex >= 0 && mSelectedIndex < driverListBox->GetCount() )
256  {
257  const AobrdDriverItem & driver = mCom.mAOBRDDrivers.get( mCom.mAOBRDDrivers.getKeyAt( mSelectedIndex ) );
258  mCom.sendAOBRDDriverLogoff( driver );
259  }
260 } /* OnBnClickedSendLogoff() */
261 
262 #endif
263 
264 //----------------------------------------------------------------------
267 //----------------------------------------------------------------------
269 {
270  UpdateData( TRUE );
271  if( mSelectedIndex >= 0 )
272  {
273  mCom.mAOBRDDrivers.remove( mCom.mAOBRDDrivers.getKeyAt( mSelectedIndex ) );
274  updateListBox();
275  }
276 
277  if( mSelectedIndex < 0 )
278  {
279  GetDlgItem( IDC_DRIVERS_SEND_UPDATE )->EnableWindow( FALSE );
280  GetDlgItem( IDC_DRIVERS_SEND_LOGOFF )->EnableWindow( FALSE );
281  GetDlgItem( IDC_DRIVERS_BTN_DELETE )->EnableWindow( FALSE );
282  clearData();
283  }
284 
285  UpdateData(FALSE);
286 
287 } /* OnBnClickedDelete() */
288 
289 //----------------------------------------------------------------------
292 //----------------------------------------------------------------------
294 {
295  UpdateData( TRUE );
296 
297  char driverId[50];
298  char driverPassword[20];
299  char firstName[50];
300  char lastName[50];
301  char carrierName[50];
302  char carrierID[50];
303 
304  WideCharToMultiByte( CP_UTF8, 0, mDriverId, -1, driverId, sizeof( driverId ), NULL, NULL );
305  WideCharToMultiByte( CP_UTF8, 0, mDriverPassword, -1, driverPassword, sizeof( driverPassword ), NULL, NULL );
306  WideCharToMultiByte( CP_UTF8, 0, mDriverFirstName, -1, firstName, sizeof( firstName ), NULL, NULL );
307  WideCharToMultiByte( CP_UTF8, 0, mDriverLastName, -1, lastName, sizeof( lastName ), NULL, NULL );
308  WideCharToMultiByte( CP_UTF8, 0, mDriverCarrierName, -1, carrierName, sizeof( carrierName ), NULL, NULL );
309  WideCharToMultiByte( CP_UTF8, 0, mDriverCarrierID, -1, carrierID, sizeof( carrierID ), NULL, NULL );
310 
311  AobrdDriverItem & driver = mCom.mAOBRDDrivers.get( driverId );
312  if( ( driver.isValid() ) &&
313  ( ( 0 != driver.getFirstName().Compare(mDriverFirstName) ) ||
314  ( 0 != driver.getLastName().Compare(mDriverLastName) ) ) )
315  {
316  MessageBox( _T( "Driver First and Last name should not be changed since the device uses that information as a key." ), _T( "Error" ), MB_ICONERROR );
317  return;
318  }
319 
320  driver.setPassword( driverPassword );
321  driver.setFirstName( firstName );
322  driver.setLastName( lastName );
323  driver.setCarrierName( carrierName );
324  driver.setCarrierID( carrierID );
325  driver.setLongTermRuleset( (uint16) mDriverLongTermRuleset );
326 #if( FMI_SUPPORT_A615 )
327  driver.setLoadTypeRuleset( (uint16) mDriverLoadTypeRuleset );
328 #endif
329  driver.setTimeZone( (uint16) mDriverTimeZone );
330 
331  mCom.mAOBRDDrivers.put( driver );
332 
333  updateListBox();
334  clearData();
335  UpdateData(FALSE);
336 
337 } /* OnBnClickedSet() */
338 
340 {
341  AobrdDriverItem& driver = mCom.mAOBRDDrivers.get( mCom.mAOBRDDrivers.getKeyAt( mSelectedIndex ) );
342  if( CAobrdDriverShipmentsDlg::ShowShipments( this, &driver ) )
343  {
344  mCom.mAOBRDDrivers.put( driver );
345  }
346 }
347 
348 //----------------------------------------------------------------------
352 //----------------------------------------------------------------------
354 {
355  UpdateData( TRUE );
356  if( ( "" != mDriverId ) && ( "" != mDriverPassword ) &&
357  ( "" != mDriverFirstName ) && ( "" != mDriverLastName ) &&
358  ( "" != mDriverCarrierName ) && ( "" != mDriverCarrierID ) &&
359  ( -1 != mDriverLongTermRuleset ) &&
360 #if( FMI_SUPPORT_A615 )
361  ( -1 != mDriverLoadTypeRuleset ) &&
362 #endif
363  ( -1 != mDriverTimeZone ) )
364  {
365  GetDlgItem( IDC_DRIVERS_BTN_SET )->EnableWindow( TRUE );
366  }
367  else
368  {
369  GetDlgItem( IDC_DRIVERS_BTN_SET )->EnableWindow( FALSE );
370  }
371 } /* OnEnChangeEditBoxes() */
372 
373 
374 //----------------------------------------------------------------------
379 //----------------------------------------------------------------------
381 {
382  CListBox * driverListBox = (CListBox*) GetDlgItem( IDC_DRIVERS_LST_DRIVERS );
383  mSelectedIndex = driverListBox->GetCurSel();
384 
385  if( mSelectedIndex >= 0 && mSelectedIndex < driverListBox->GetCount() )
386  {
387  const AobrdDriverItem& item = mCom.mAOBRDDrivers.get( mCom.mAOBRDDrivers.getKeyAt( mSelectedIndex ) );
388 
389  mDriverId = item.getDriverId();
390  mDriverPassword = item.getPassword();
391  mDriverFirstName = item.getFirstName();
392  mDriverLastName = item.getLastName();
393  mDriverCarrierName = item.getCarrierName();
394  mDriverCarrierID = item.getCarrierID();
395  mDriverLongTermRuleset = item.getLongTermRuleset();
396 #if( FMI_SUPPORT_A615 )
397  mDriverLoadTypeRuleset = item.getLoadTypeRuleset();
398 #endif
399 
400  mDriverTimeZone = item.getTimeZone();
401 
402  UpdateData( FALSE );
403  GetDlgItem( IDC_DRIVERS_SEND_UPDATE )->EnableWindow( TRUE );
404  GetDlgItem( IDC_DRIVERS_SEND_LOGOFF )->EnableWindow( TRUE );
405  GetDlgItem( IDC_DRIVERS_BTN_DELETE )->EnableWindow( TRUE );
406  GetDlgItem( IDC_DRIVERS_SHIPMENTS )->EnableWindow( TRUE );
407 
408  OnChangeDriverData();
409  }
410  else
411  {
412  GetDlgItem( IDC_DRIVERS_SEND_UPDATE )->EnableWindow( FALSE );
413  GetDlgItem( IDC_DRIVERS_SEND_LOGOFF )->EnableWindow( FALSE );
414  GetDlgItem( IDC_DRIVERS_BTN_DELETE )->EnableWindow( FALSE );
415  GetDlgItem( IDC_DRIVERS_SHIPMENTS )->EnableWindow( FALSE );
416  }
417 
418  driverListBox->SetCurSel( mSelectedIndex );
419 }
420 
421 
422 //----------------------------------------------------------------------
425 //----------------------------------------------------------------------
427 {
428  CDialog::OnOK();
429 }
430 
431 //----------------------------------------------------------------------
434 //----------------------------------------------------------------------
436 {
437  CDialog::OnCancel();
438 }
439 
440 //----------------------------------------------------------------------
443 //----------------------------------------------------------------------
445 {
446  CDialog::PostNcDestroy();
447 } /* PostNcDestroy() */
448 
449 //----------------------------------------------------------------------
454 //----------------------------------------------------------------------
456 {
457  SendMessage( DM_SETDEFID, IDC_DRIVERS_BTN_SET );
458 } /* OnEnSetfocusLoginEdit */
459 
460 //----------------------------------------------------------------------
465 //----------------------------------------------------------------------
467 {
468  SendMessage( DM_SETDEFID, IDOK );
469 } /* OnEnKillfocusLoginEdit */
470 
471 //----------------------------------------------------------------------
475 //----------------------------------------------------------------------
477 {
478  SendMessage( DM_SETDEFID, IDC_DRIVERS_SEND_UPDATE );
479 } /* OnLbnSetfocusDriverList */
480 
481 //----------------------------------------------------------------------
485 //----------------------------------------------------------------------
487 {
488  SendMessage( DM_SETDEFID, IDOK );
489 } /* OnLbnKillfocusDriverList */
490 #endif
BOOL isValid() const
Check whether this item is valid.
#define IDC_DRIVERS_TIME_ZONES
Definition: resource.h:408
#define IDC_DRIVERS_EDIT_LAST_NAME
Definition: resource.h:386
afx_msg void OnCancel()
Handler for the Cancel action.
CString getPassword() const
Get item&#39;s password.
static BOOL ShowShipments(CWnd *aParent, AobrdDriverItem *driver)
Main entry point for showing the shipments editor.
#define IDC_DRIVERS_EDIT_ID
Definition: resource.h:379
#define IDC_DRIVERS_EDIT_PASSWORD
Definition: resource.h:378
afx_msg void OnBnClickedShipments()
const_iterator begin()
Iterator positioned at the first element in the map.
Definition: FileBackedMap.h:59
void updateListBox()
Update the drivers list box from the drivers map owned by FmiApplicationLayer.
void setFirstName(const std::string &aFirstName)
Set the first name of this driver.
void setLoadTypeRuleset(const uint16 aRuleset)
Set the load type ruleset of this driver.
afx_msg void OnEnKillfocusLoginEdit()
Handles the kill focus event for the driver ID and password edit boxes.
uint16 getTimeZone() const
Get item&#39;s time zone.
virtual ~CAobrdDriversDlg()
Destructor.
void setCarrierID(const std::string &aCarrierID)
Set the carrier ID of this driver.
CString getDriverId() const
Get the driver ID as a CString.
CString getFirstName() const
Get item&#39;s first name.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
STL namespace.
Dialog allowing the user to manage AOBRD drivers.
#define IDC_DRIVERS_BTN_DELETE
Definition: resource.h:375
const_iterator end()
Iterator positioned after the last element in the map.
Definition: FileBackedMap.h:67
#define FALSE
Definition: garmin_types.h:46
afx_msg void OnBnClickedOk()
Button handler for the OK button.
uint16 getLoadTypeRuleset() const
Get item&#39;s load type ruleset.
afx_msg void OnBnClickedSet()
Button handler for the Set button.
void setTimeZone(const uint16 aTimeZone)
Set the time zone of this driver.
#define TRUE
Definition: garmin_types.h:45
#define IDC_DRIVERS_EDIT_FIRST_NAME
Definition: resource.h:384
afx_msg void OnBnClickedDelete()
Button handler for the Delete button.
afx_msg void OnChangeDriverData()
Edit/Change handler for the driver-specific data controls.
#define IDC_DRIVERS_LOAD_TYPE_RULESETS
Definition: resource.h:410
CString getCarrierName() const
Get item&#39;s carrier name.
#define IDC_DRIVERS_SEND_LOGOFF
Definition: resource.h:392
#define FMI_SUPPORT_A615
If true, app was built with support for A615 protocols.
Definition: fmi.h:69
#define IDC_DRIVERS_EDIT_CARRIER_ID
Definition: resource.h:390
uint16 getLongTermRuleset() const
Get item&#39;s long term ruleset.
BOOL OnInitDialog()
This function is called when the window is created.
#define IDC_DRIVERS_EDIT_CARRIER_NAME
Definition: resource.h:388
Serial communication controller for Garmin and FMI packets.
afx_msg void OnEnSetfocusLoginEdit()
Handles the set focus event for the driver ID and password edit boxes.
afx_msg void OnBnClickedSendUpdate()
Button handler for the Send Update button.
void setLongTermRuleset(const uint16 aRuleset)
Set the long term ruleset of this driver.
CString getLastName() const
Get item&#39;s last name.
afx_msg void OnLbnSetfocusDriverList()
Handles the set focus event for the driver list.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
#define IDC_DRIVERS_BTN_SET
Definition: resource.h:380
afx_msg void OnLbnSelchangeDriverList()
Selection Changed handler for the Driver List box.
Data structure to holds an AOBRD driver info. Used by the FmiApplicationLayer to validate logins when...
#define IDC_DRIVERS_LBL_LOAD_TYPE_RULESET
Definition: resource.h:394
virtual void DoDataExchange(CDataExchange *pDX)
Perform dialog data exchange and validation.
Map whose contents are also saved to a file.
Definition: FileBackedMap.h:32
afx_msg void OnBnClickedSendLogoff()
Button handler for the Send Logoff button.
#define IDC_DRIVERS_SEND_UPDATE
Definition: resource.h:383
afx_msg void OnLbnKillfocusDriverList()
Handles the kill focus event for the driver list.
void setCarrierName(const std::string &aCarrierName)
Set the carrier name of this driver.
void setPassword(const std::string &aPassword)
Set the password of this driver.
void setLastName(const std::string &aLastName)
Set the last name of this driver.
#define IDC_DRIVERS_SHIPMENTS
Definition: resource.h:5
#define IDC_DRIVERS_LST_DRIVERS
Definition: resource.h:381
#define IDD_AOBRD_DRIVERS
Definition: resource.h:50
#define IDC_DRIVERS_LONG_TERM_RULESETS
Definition: resource.h:407
void clearData()
Clear values from the editable fields.
CString getCarrierID() const
Get item&#39;s carrier ID.