C# Class WikiFunctions.Profiles.AWBProfiles

Mostra file Open project: reedy/AutoWikiBrowser Class Usage Examples

Private Properties

Property Type Description
AWBProfiles System.Collections.Generic
AddEditProfile void
GetFirstFreeID int
GetProfileIDs List
RegistryGetAndDecryptValue string
RegistryGetValue string
RegistryGetWritableKey RegistryKey
RegistrySetValue void
SetProfilePassword void

Public Methods

Method Description
DeleteProfile ( int id ) : void

Deletes a specific profile from the registry

GetPassword ( int id ) : string

Gets the decrypted password of a specified profile

GetProfile ( int id ) : AWBProfile

Gets a Specified Profile from the Registry

GetProfile ( string userName ) : AWBProfile

Gets a profile

GetProfiles ( ) : List

Gets all the Saved Profiles from the Registry

GetUsername ( int id ) : string

Gets the decrypted username of a specified profile

ResetTempPassword ( ) : void

Sets the temporary password to ""

SetPassword ( int id, string password ) : void

Set/Change the password of the specified profile

Private Methods

Method Description
AWBProfiles ( ) : System.Collections.Generic
AddEditProfile ( AWBProfile profile ) : void

Writes a new or modified Profile to the registry

GetFirstFreeID ( ) : int

Gets the ID number of the first free Profile Slot

GetProfileIDs ( ) : List

Gets a List of all the Profile IDs

RegistryGetAndDecryptValue ( string suffix, object defaultValue ) : string
RegistryGetValue ( string suffix, object defaultValue ) : string
RegistryGetWritableKey ( int keyNameSuffix ) : RegistryKey
RegistrySetValue ( int keyNameSuffix, string valueName, string value ) : void
SetProfilePassword ( int id, string password ) : void

Sets the Profile Password in the Registry

Method Details

DeleteProfile() public static method

Deletes a specific profile from the registry
public static DeleteProfile ( int id ) : void
id int
return void

GetPassword() public static method

Gets the decrypted password of a specified profile
public static GetPassword ( int id ) : string
id int Profile ID
return string

GetProfile() public static method

Gets a Specified Profile from the Registry
public static GetProfile ( int id ) : AWBProfile
id int Profile ID to get
return AWBProfile

GetProfile() public static method

Gets a profile
public static GetProfile ( string userName ) : AWBProfile
userName string Profile username
return AWBProfile

GetProfiles() public static method

Gets all the Saved Profiles from the Registry
public static GetProfiles ( ) : List
return List

GetUsername() public static method

Gets the decrypted username of a specified profile
public static GetUsername ( int id ) : string
id int Profile ID
return string

ResetTempPassword() public static method

Sets the temporary password to ""
public static ResetTempPassword ( ) : void
return void

SetPassword() public static method

Set/Change the password of the specified profile
public static SetPassword ( int id, string password ) : void
id int Profile ID
password string Password
return void