org.kde.koala

Class AuthInfo

public class AuthInfo extends Object implements QtSupport

This class is intended to make it easier to prompt for, cache and retrieve authorization information. When using this class to cache, retrieve or prompt authentication information, you only need to set the necessary attributes. For example, to check whether a password is already cached, the only required information is the URL of the resource and optionally whether or not a path match should be performed. Similarly, to prompt for password you only need to optionally set the prompt, username (if already supplied), comment and commentLabel fields. SPECIAL NOTE: If you extend this class to add additional parameters do not forget to overload the stream insertion and extraction operators ("<<" and ">>") so that the added data can be correctly serialzed.

Author: Dawit Alemayehu

UNKNOWN: A two way messaging class for passing authentication information.

Constructor Summary
protected AuthInfo(Class dummy)
AuthInfo()
Default constructor.
AuthInfo(AuthInfo info)
Copy constructor.
Method Summary
booleanisModified()
Use this method to check if the object was modified.
voidsetModified(boolean flag)
Use this method to indicate that this object has been modified.

Constructor Detail

AuthInfo

protected AuthInfo(Class dummy)

AuthInfo

public AuthInfo()
Default constructor.

UNKNOWN: Default constructor.

AuthInfo

public AuthInfo(AuthInfo info)
Copy constructor.

UNKNOWN: Copy constructor.

Method Detail

isModified

public boolean isModified()
Use this method to check if the object was modified.

Returns: true if the object has been modified

UNKNOWN: Use this method to check if the object was modified.

setModified

public void setModified(boolean flag)
Use this method to indicate that this object has been modified.

Parameters: flag true to mark the object as modified, false to clear

UNKNOWN: Use this method to indicate that this object has been modified.