KeePass MSWifiPlugin
|
Basic class for our import/export providers. We need that as both share a large set of methods. More...
Inherits FileFormatProvider.
Inherited by MSWifiImportPlugin.MSWifiSystem, and MSWifiImportPlugin.MSWifiXML.
Public Types | |
enum | BehaviourForExEntry { BehaviourForExEntry.ASK_USER = 0, BehaviourForExEntry.REPLACE, BehaviourForExEntry.RENAME_NEW_ONE, BehaviourForExEntry.CANCEL_WITHOUT_ERROR, BehaviourForExEntry.CANCEL_WITH_ERROR } |
This defines the behaviour when we try to insert an entry which already exists. More... | |
Public Member Functions | |
PwEntry | ExistingEntryInGroup (PwGroup inGroup, WlanProfile wlan) |
Searches in a given group (non-recursively) for an existing entry for a given wifi information. More... | |
PwGroup | GetStandardGroup (PwDatabase pwStorage, bool askUserIfDoesntExist=true) |
Searches for the basic group. This is "WLan" in the root group. More... | |
PwEntry | ImportTo (WlanProfile wlan, PwDatabase pwStorage, PwGroup group, BehaviourForExEntry behaviour=BehaviourForExEntry.ASK_USER, IStatusLogger slLogger=null, double totalProcents=60, double minProcents=20) |
Imports a wlan connection information to the database. If the entry already exists, then the parameter behaviour defines the behaviour More... | |
bool | Export (PwDatabase pwStorage, PwEntry entry, Stream sOutput, IStatusLogger slLogger=null, double totalProcents=60, double minProcents=20) |
Exports a wlan connection information from the database to a .xml profil. More... | |
Properties | |
override String | ApplicationGroup [get] |
>FileFormatProvider More... | |
Basic class for our import/export providers. We need that as both share a large set of methods.
|
strong |
This defines the behaviour when we try to insert an entry which already exists.
PwEntry MSWifiImportPlugin.MSWifi.ExistingEntryInGroup | ( | PwGroup | inGroup, |
WlanProfile | wlan | ||
) |
Searches in a given group (non-recursively) for an existing entry for a given wifi information.
inGroup | In which group do we search? |
wlan | The wifi information, we are looking for |
bool MSWifiImportPlugin.MSWifi.Export | ( | PwDatabase | pwStorage, |
PwEntry | entry, | ||
Stream | sOutput, | ||
IStatusLogger | slLogger = null , |
||
double | totalProcents = 60 , |
||
double | minProcents = 20 |
||
) |
Exports a wlan connection information from the database to a .xml profil.
pwStorage | The database in which the key lies |
entry | The entry which we want to export |
soutput | Where to print to the xml structure (via serialization) |
slLogger | Where we log to (can be null) |
totalProcents | If we parsed completely, how many (additional) procents of the total progress did we finish? (Senseless if slLogger = null) |
minProcents | How many procents of the total progress were already finished |
Note that minProcents + totalProcents has to be less than or equal to 100.
Note furthermore that nothing is written to soutput if an error occured
PwGroup MSWifiImportPlugin.MSWifi.GetStandardGroup | ( | PwDatabase | pwStorage, |
bool | askUserIfDoesntExist = true |
||
) |
Searches for the basic group. This is "WLan" in the root group.
pwStorage | The Database in which we look for the group. |
askUserIfDoesntExist | Do we ask the user whether we create the group, if it does not exist so far? Otherwise, we create the group without asking. |
PwEntry MSWifiImportPlugin.MSWifi.ImportTo | ( | WlanProfile | wlan, |
PwDatabase | pwStorage, | ||
PwGroup | group, | ||
BehaviourForExEntry | behaviour = BehaviourForExEntry.ASK_USER , |
||
IStatusLogger | slLogger = null , |
||
double | totalProcents = 60 , |
||
double | minProcents = 20 |
||
) |
Imports a wlan connection information to the database. If the entry already exists, then the parameter behaviour defines the behaviour
wlan | The new wifi connection informations |
pwStorage | The database in which the group lies |
group | The group to which we add the entry |
behaviour | What do we do if the entry already exists? |
slLogger | Where we log to (can be null) |
totalProcents | If we parsed completely, how many (additional) procents of the total progress did we finish? (Senseless if slLogger = null) |
minProcents | How many procents of the total progress were already finished |
Note that minProcents + totalProcents has to be less than or equal to 100.
|
get |
>FileFormatProvider