KeePass MSWifiPlugin
MSWifiImportPlugin.WlanProfile Class Reference

Contains the information of one Wifi-Connection. More...

Inherits MSWifiImportPlugin.Data< T >.

Classes

class  IHV
 
class  MacRandData
 
class  MSMData
 
class  SSIDConfigData
 

Properties

String NameOrSSID [get]
 
DataString name [get, set]
 
DataData< SSIDConfigDatassidConfig = new DataString(PwDefs.TitleField, true) [get, set]
 
DataString connectionType = new DataData<SSIDConfigData>(null, true) [get, set]
 
DataString connectionMode [get, set]
 
DataBool autoSwitch [get, set]
 
DataData< MSMDatamsm = new DataBool(FieldNames.AutoSwitch, false) [get, set]
 
DataData< IHVihv = new DataData<MSMData>(FieldNames.AuthenticationEncryption, false) [get, set]
 
DataData< MacRandDatamacRand = new DataData<IHV>(FieldNames.OuiHeaderOui, false) [get, set]
 
- Properties inherited from MSWifiImportPlugin.Data< T >
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]
 
override bool WriteNecessary [get]
 
virtual bool IsValid [get]
 The data is valid if all mandory subentries are valid More...
 
- Properties inherited from MSWifiImportPlugin.AbstractData
bool IsMandory [get, set]
 If this is true and this is invalid, then its parent is invalid, too. More...
 
String EntryName [get, set]
 Name of the value in the database More...
 
abstract bool WriteNecessary [get]
 Whether the value must be written in the XML-file, i.e. its valid but not empty. More...
 
abstract bool IsValid [get]
 Whether the data is valid, i.e. all mandory subentries have to valid. More...
 

Additional Inherited Members

- Public Member Functions inherited from MSWifiImportPlugin.Data< T >
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...
 
override 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...
 
override bool LoadFrom (PwDatabase db, PwEntry entry)
 Reads a data from a given enty in a database More...
 
override void ClearIn (PwDatabase db, PwEntry entry)
 Deletes the data from a given enty in a database More...
 
override void Clear ()
 Clears the data More...
 
XmlSchema GetSchema ()
 
void WriteXml (XmlWriter writer)
 Writes the data to a XML-file More...
 
void ReadXml (XmlReader reader)
 Reads the data from a XML-file More...
 
bool SaveIn (PwDatabase db, PwEntry entry)
 Saves the data in an entry in a database More...
 
bool LoadFrom (PwDatabase db, PwEntry entry)
 Reads the data from an entry in a database More...
 
void ClearIn (PwDatabase db, PwEntry entry)
 Delete the data from an entry in a database More...
 
void Clear ()
 Deletes the content saved in the data More...
 
- Public Member Functions inherited from MSWifiImportPlugin.AbstractData
XmlSchema GetSchema ()
 Always null More...
 
- Protected Member Functions inherited from MSWifiImportPlugin.AbstractData
 AbstractData (String eName, bool eIsMandory)
 Standard constructor More...
 
- Protected Attributes inherited from MSWifiImportPlugin.Data< T >
bool LastInputValid = false
 Whether the value was valid after setting/reading it the last time. More...
 

Detailed Description

Contains the information of one Wifi-Connection.

By c#-XML-Serialziation each subentry is a child element

We do not explain the values of the entry as they are "completely" explained in the corresponding MS documentation

<remark>We do not use the MS classes for all this stuff as we want a "nicer" way to save it in the KeePass database. If you have an easier/nicer approach, please feal free to contact me.</remark>

Property Documentation

◆ autoSwitch

DataBool MSWifiImportPlugin.WlanProfile.autoSwitch
getset
Initial value:
= new DataString(FieldNames.ConnectionMode, false,
(val) => { return (val.ReadString() == "auto") || (val.ReadString() == "manual"); })

◆ connectionMode

DataString MSWifiImportPlugin.WlanProfile.connectionMode
getset
Initial value:
= new DataString(FieldNames.ConnectionType, true,
(val) => { return (val.ReadString() == "IBSS") || (val.ReadString() == "ESS"); })

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