Garmin Fleet Management Controller  2.19.0
DriverLoginItem.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * DriverLoginItem.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef DRIVERLOGINITEM_H
11 #define DRIVERLOGINITEM_H
12 
13 #include <string>
14 
15 #include "ClientListItem.h"
16 
22  public ClientListItem
23 {
24 public:
25  typedef std::string key_type;
26 
28  virtual ~DriverLoginItem();
29 
30  CString getDriverId() const;
31 
32  const key_type & getId() const;
33  CString getPassword() const;
34 
35  void readFromStream ( std::istream &aStream );
36  void save();
37  void setId(const key_type & aId);
39 
40  void setPassword( const std::string & aPassword );
41  void writeToStream ( std::ofstream &aStream ) const;
42 
43 private:
45  std::string mDriverId;
46 
48  std::string mDriverPassword;
49 
52 
53 };
54 
55 #endif
void save()
Save this item.
CString getDriverId() const
Get the driver ID as a CString.
FileBackedMap< DriverLoginItem > * mParent
The map that this DriverLoginItem is a part of.
std::string mDriverId
The driver ID, UTF8 encoded.
void writeToStream(std::ofstream &aStream) const
Write a DriverLoginItem to an output stream.
void setParent(FileBackedMap< DriverLoginItem > *aParent)
Set the parent map of this item.
DriverLoginItem()
Constructor.
std::string key_type
Stores the name associated with a list item that is sent to the client.
void readFromStream(std::istream &aStream)
Read a DriverLoginItem from an input stream.
void setId(const key_type &aId)
Set the ID (key) of this item.
std::string mDriverPassword
The driver password, UTF8 encoded.
CString getPassword() const
Set the ID (key) of this item.
const key_type & getId() const
Get item&#39;s ID.
void setPassword(const std::string &aPassword)
Set the password of this driver.
Data structure to holds an allowed driver login (ID and password). Used by the FmiApplicationLayer to...
virtual ~DriverLoginItem()
Destructor.