KeePass MSWifiPlugin
MSWifiImportPlugin.DataString Class Reference

A string data More...

Inherits MSWifiImportPlugin.Data< ProtectedString >.

Public Member Functions

 DataString (String eName, bool eIsMandory=false, DValidValue isValid=null)
 Constructor More...
 
 DataString (String eName, List< String > validValues)
 Constructor (mandory=false= More...
 
 DataString (String eName, bool eIsMandory, List< String > validValues)
 Constructor More...
 
String ReadString ()
 Returns the (unprotected!) string saved in the data if the data is valid or null otherwise More...
 
- Public Member Functions inherited from MSWifiImportPlugin.Data< ProtectedString >
delegate T DFctFromString (ProtectedString val)
 A Function translating a string (from a .xml-file or from a db entry) to the value More...
 
delegate ProtectedString DFctToString (T val, bool protect)
 A function translating the value to a string (to write it to a db entry) More...
 
delegate bool DValidString (ProtectedString val)
 Whether the given string can be translated to a valid data More...
 
delegate bool DValidValue (T val)
 Is the value of the data is valid More...
 
 Data (DFctFromString fromString, DFctToString toString, String eName, bool eIsMandory=false, DValidString isValidString=null, DValidValue isValid=null)
 Standard constructor More...
 
bool IsValidValue (T val)
 Whether a given value would be a valid one if this is set to it. More...
 
bool IsValidValueString (ProtectedString val)
 Whether a given string would give a valid value if this is set to it. More...
 
override void WriteXml (XmlWriter writer)
 Writes the data to a XML-file More...
 
void WriteXml (XmlWriter writer)
 Writes the data to a XML-file More...
 
override void ReadXml (XmlReader reader)
 Reads the data from a XML-file More...
 
void ReadXml (XmlReader reader)
 Reads the data from a XML-file More...
 
override bool ExistsIn (PwDatabase db, PwEntry entry)
 Checks whether the data is contained in a given entry More...
 
override bool SaveIn (PwDatabase db, PwEntry entry)
 Writes a data to a given enty in a database More...
 
bool SaveIn (PwDatabase db, PwEntry entry)
 Saves the data in an entry in a database More...
 
override bool LoadFrom (PwDatabase db, PwEntry entry)
 Reads a data from a given enty in a database More...
 
bool LoadFrom (PwDatabase db, PwEntry entry)
 Reads the data from an entry in a database More...
 
override void ClearIn (PwDatabase db, PwEntry entry)
 Deletes the data from a given enty in a database More...
 
void ClearIn (PwDatabase db, PwEntry entry)
 Delete the data from an entry in a database More...
 
override void Clear ()
 Clears the data More...
 
void Clear ()
 Deletes the content saved in the data More...
 
XmlSchema GetSchema ()
 

Additional Inherited Members

- Protected Attributes inherited from MSWifiImportPlugin.Data< ProtectedString >
bool LastInputValid
 Whether the value was valid after setting/reading it the last time. More...
 
- Properties inherited from MSWifiImportPlugin.Data< ProtectedString >
DFctFromString FctFromString [get, set]
 The FctFromString for the given data More...
 
DFctToString FctToString [get, set]
 The FctToString for the given data More...
 
DValidString FctIsValidString [get, set]
 The ValidString for the given data More...
 
DValidValue FctIsValid [get, set]
 The ValidValue for the given data More...
 
Value [get, set]
 The value saved in the data More...
 
override bool IsValid [get]
 
virtual bool IsValid [get]
 The data is valid if all mandory subentries are valid More...
 
override bool WriteNecessary [get]
 

Detailed Description

A string data

Constructor & Destructor Documentation

◆ DataString() [1/3]

MSWifiImportPlugin.DataString.DataString ( String  eName,
bool  eIsMandory = false,
DValidValue  isValid = null 
)

Constructor

Parameters
eNameName of the value in the database
eIsMandoryWhether the datas parent is only valid if the data is valid.
isValidfctIsValid with T=ProtectedString

◆ DataString() [2/3]

MSWifiImportPlugin.DataString.DataString ( String  eName,
List< String >  validValues 
)

Constructor (mandory=false=

Parameters
eNameName of the value in the database
validValuesThe value is valid if it is contained in this list

◆ DataString() [3/3]

MSWifiImportPlugin.DataString.DataString ( String  eName,
bool  eIsMandory,
List< String >  validValues 
)

Constructor

Parameters
eNameName of the value in the database
eIsMandoryWhether the datas parent is only valid if the data is valid.
validValuesThe value is valid if it is contained in this list

Member Function Documentation

◆ ReadString()

String MSWifiImportPlugin.DataString.ReadString ( )

Returns the (unprotected!) string saved in the data if the data is valid or null otherwise

Returns
The unprotected string in the data or null (if this is invalid)

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