class Wallet |
|
KDE Wallet
This class implements a generic system-wide Wallet for KDE. This is the ONLY public interface.
Author George Staikos |
|
The standardized name of the form data folder. It is automatically created when a wallet is created, but the user may still delete it so you should check for its existence and recreate it if necessary and desired. |
|
The name of the wallet used to store local passwords. |
|
The name of the wallet used to store network passwords. |
|
The standardized name of the password folder. It is automatically created when a wallet is created, but the user may still delete it so you should check for its existence and recreate it if necessary and desired. |
|
Construct a KWallet object.
Internal
handle - The handle for the wallet. name - The name of the wallet. |
|
Copy a KWallet object. Internal |
|
Request to the wallet service to change the password of
the wallet name.
name - The the wallet to change the password of. w - The window id to associate any dialogs with. |
|
Close the wallet name. The wallet will only be closed
if it is open but not in use (rare), or if it is forced
closed.
name - The name of the wallet to close. force - Set true to force the wallet closed even if it is in use by others. Returns Returns 0 on success, non-zero on error. |
|
Created the folder f.
f - the name of the folder to create Returns Returns true if the folder was successfully created. |
|
Determine the current working folder in the wallet. If the folder name is empty, it is working in the global folder, which is valid but discouraged. Returns Returns the current working folder. |
|
Delete the wallet name. The wallet will be forced closed
first.
name - The name of the wallet to delete. Returns Returns 0 on success, non-zero on error. |
|
Disconnect the application app from wallet.
wallet - The name of the wallet to disconnect. app - The name of the application to disconnect. Returns Returns true on success, false on error. |
|
Return the list of keys of all entries in this folder. Returns Returns an empty list if the wallet is not open, or if the folder is empty. |
|
Determine the type of the entry key in this folder.
key - The key to look up. Returns Returns an enumerated type representing the type of the entry. |
|
Determine if a folder does not exist in a wallet. This
does not require decryption of the wallet.
This is a handy optimization to avoid prompting the user
if your data is certainly not in the wallet.
wallet - The wallet to look in. folder - The folder to look up. Returns Returns true if the folder does NOT exist in the wallet, or the wallet does not exist. |
|
Obtain the list of all folders contained in the wallet. Returns Returns an empty list if the wallet is not open. |
|
Emitted when the folder list is changed in this wallet. |
|
Emitted when a folder in this wallet is removed.
folder - The folder that was removed. |
|
Emitted when a folder in this wallet is updated.
folder - The folder that was updated. |
|
Determine if the current folder has they entry key.
key - The key to search for. Returns Returns true if the folder contains key. |
|
Determine if the folder f exists in the wallet.
f - the name of the folder to check for Returns Returns true if the folder exists in the wallet. |
|
Determine if the KDE wallet is enabled. Normally you do not need to use this because openWallet() will just fail. Returns Returns true if the wallet enabled, else false. |
|
Determine if the wallet name is open by any application.
name - The name of the wallet to check. Returns Returns true if the wallet is open, else false. |
|
Determine if the current wallet is open, and is a valid wallet handle. Returns Returns true if the wallet handle is valid and open. |
|
Determine if an entry in a folder does not exist in a
wallet. This does not require decryption of the wallet.
This is a handy optimization to avoid prompting the user
if your data is certainly not in the wallet.
wallet - The wallet to look in. folder - The folder to look in. key - The key to look up. Returns Returns true if the key does NOT exist in the wallet, or the folder or wallet does not exist. |
|
This closes and locks the current wallet. It will disconnect all applications using the wallet. Returns Returns 0 on success, non-zero on error. |
|
Open the wallet name. The user will be prompted to
allow your application to open the wallet, and may be
prompted for a password. You are responsible for deleting
this object when you are done with it.
name - The name of the wallet to open. ot - If Asynchronous, the call will return immediately with a non-null pointer to an invalid wallet. You must immediately connect the walletOpened() signal to a slot so that you will know when it is opened, or when it fails. w - The window id to associate any dialogs with. Returns Returns a pointer to the wallet if successful, or a null pointer on error or if rejected. |
|
Read the entry key from the current folder.
The entry format is unknown except that it is either a
QByteArray or a QDataStream, which effectively means that
it is anything.
key - The key of the entry to read. value - A buffer to fill with the value. Returns Returns 0 on success, non-zero on error. |
|
Read the entries matching key from the current folder.
The entry format is unknown except that it is either a
QByteArray or a QDataStream, which effectively means that
it is anything.
key - The key of the entry to read. Wildcards are supported. value - A buffer to fill with the value. The key in the map is the entry key. Returns Returns 0 on success, non-zero on error. |
|
Read the map entry key from the current folder.
key - The key of the entry to read. value - A map buffer to fill with the value. Returns Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a map. |
|
Read the map entry key from the current folder.
key - The key of the entry to read. Wildcards are supported. value - A buffer to fill with the value. The key in the map is the entry key. Returns Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a map. |
|
Read the password entry key from the current folder.
key - The key of the entry to read. value - A password buffer to fill with the value. Returns Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a password. |
|
Read the password entry key from the current folder.
key - The key of the entry to read. Wildcards are supported. value - A buffer to fill with the value. The key in the map is the entry key. Returns Returns 0 on success, non-zero on error. Will return an error if the key was not originally written as a password. |
|
Remove the entry key from the current folder.
key - The key to remove. Returns Returns 0 on success, non-zero on error. |
|
Remove the folder f and all its entries from the wallet.
f - the name of the folder to remove Returns Returns true if the folder was successfully removed. |
|
Rename the entry oldName to newName.
oldName - The original key of the entry. newName - The new key of the entry. Returns Returns 0 on success, non-zero on error. |
|
Request to the wallet service to change the password of
the current wallet.
w - The window id to associate any dialogs with. |
|
Set the current working folder to f. The folder must
exist, or this call will fail. Create a folder with
createFolder().
f - the name of the folder to make the working folder Returns Returns true if the folder was successfully set. |
|
This syncs the wallet file on disk with what is in memory. You don't normally need to use this. It happens automatically on close. Returns Returns 0 on success, non-zero on error. |
|
List the applications that are using the wallet wallet.
wallet - The wallet to query. Returns Returns a list of all DCOP application IDs using the wallet. |
|
Internal |
|
Emitted when this wallet is closed. |
|
List all the wallets available. Returns Returns a list of the names of all wallets that are open. |
|
The name of the current wallet. |
|
Emitted when a wallet is opened in asynchronous mode.
success - True if the wallet was opened successfully. |
|
Write key = value as a binary entry to the current
folder. Be careful with this, it could cause inconsistency
in the future since you can put an arbitrary entry type in
place.
key - The key of the new entry. value - The value of the entry. entryType - The type of the entry. Returns Returns 0 on success, non-zero on error. |
|
Write key = value as a binary entry to the current
folder.
key - The key of the new entry. value - The value of the entry. Returns Returns 0 on success, non-zero on error. |
|
Write key = value as a map to the current folder.
key - The key of the new entry. value - The value of the map. Returns Returns 0 on success, non-zero on error. |
|
Write key = value as a password to the current folder.
key - The key of the new entry. value - The value of the password. Returns Returns 0 on success, non-zero on error. |
Unknown | - 0 | - | ||
Password | - | - | ||
Stream | - | - | ||
Map | - | - | ||
Unused | - 0xffff | - |
Synchronous | - 0 | - | ||
Asynchronous | - | - | ||
Path | - | - | ||
OpenTypeUnused | - 0xff | - |