38 MultiByteToWideChar( CP_UTF8, 0,
mDriverId.c_str(), -1, tcharName, 50 );
39 driverId.SetString( tcharName );
60 CString driverPassword;
62 MultiByteToWideChar( CP_UTF8, 0,
mDriverPassword.c_str(), -1, tcharName, 50 );
63 driverPassword.SetString( tcharName );
65 return driverPassword;
82 while( aStream.peek() !=
'\0' && !aStream.eof() )
84 aStream.read( &temp, 1 );
91 while( aStream.peek() !=
'\n' && !aStream.eof() )
93 aStream.read( &temp, 1 );
150 const std::string & aPassword
165 std::ofstream &aStream
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 setValid(BOOL aValid=TRUE)
Set this item as valid.
void setParent(FileBackedMap< DriverLoginItem > *aParent)
Set the parent map of this item.
DriverLoginItem()
Constructor.
void readFromStream(std::istream &aStream)
Read a DriverLoginItem from an input stream.
BOOL mIsValid
True if this list item is mIsValid.
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's ID.
void save()
Save the map to disk.
void setPassword(const std::string &aPassword)
Set the password of this driver.
virtual ~DriverLoginItem()
Destructor.