com.trolltech.qt.core
Class QUrl.FormattingOption

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.core.QUrl.FormattingOption
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QUrl

public static final class QUrl.FormattingOption
extends java.lang.Enum
implements QtEnumerator

The formatting options define how the URL is formatted when written out as text. Note that the case folding rules in Nameprep, which QUrl conforms to, require host names to always be converted to lower case, regardless of the Qt::FormattingOptions used.

See Also:
Serialized Form

Field Summary
static QUrl.FormattingOption None
          The format of the URL is unchanged.
static QUrl.FormattingOption RemoveAuthority
           
static QUrl.FormattingOption RemoveFragment
           
static QUrl.FormattingOption RemovePassword
          Any password in the URL is removed.
static QUrl.FormattingOption RemovePath
          The URL's path is removed, leaving only the scheme, host address, and port (if present).
static QUrl.FormattingOption RemovePort
          Any specified port is removed from the URL.
static QUrl.FormattingOption RemoveQuery
          The query part of the URL (following a '?' character) is removed.
static QUrl.FormattingOption RemoveScheme
          The scheme is removed from the URL.
static QUrl.FormattingOption RemoveUserInfo
          Any user information in the URL is removed.
static QUrl.FormattingOption StripTrailingSlash
          The trailing slash is removed if one is present.
 
Method Summary
static QUrl.FormattingOptions createQFlags(QUrl.FormattingOption[] values)
          This function creates a com.trolltech.qt.core.QUrl$FormattingOptions with the specified com.trolltech.qt.core.QUrl$FormattingOption[] QUrl$FormattingOption values set.
static QUrl.FormattingOption resolve(int value)
          Returns the QUrl$FormattingOption constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QUrl.FormattingOption valueOf(java.lang.String name)
           
static QUrl.FormattingOption[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

None

public static final QUrl.FormattingOption None
The format of the URL is unchanged.


RemoveScheme

public static final QUrl.FormattingOption RemoveScheme
The scheme is removed from the URL.


RemovePassword

public static final QUrl.FormattingOption RemovePassword
Any password in the URL is removed.


RemoveUserInfo

public static final QUrl.FormattingOption RemoveUserInfo
Any user information in the URL is removed.


RemovePort

public static final QUrl.FormattingOption RemovePort
Any specified port is removed from the URL.


RemoveAuthority

public static final QUrl.FormattingOption RemoveAuthority

RemovePath

public static final QUrl.FormattingOption RemovePath
The URL's path is removed, leaving only the scheme, host address, and port (if present).


RemoveQuery

public static final QUrl.FormattingOption RemoveQuery
The query part of the URL (following a '?' character) is removed.


RemoveFragment

public static final QUrl.FormattingOption RemoveFragment

StripTrailingSlash

public static final QUrl.FormattingOption StripTrailingSlash
The trailing slash is removed if one is present.

Method Detail

values

public static QUrl.FormattingOption[] values()

valueOf

public static QUrl.FormattingOption valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

createQFlags

public static QUrl.FormattingOptions createQFlags(QUrl.FormattingOption[] values)
This function creates a com.trolltech.qt.core.QUrl$FormattingOptions with the specified com.trolltech.qt.core.QUrl$FormattingOption[] QUrl$FormattingOption values set.


resolve

public static QUrl.FormattingOption resolve(int value)
Returns the QUrl$FormattingOption constant with the specified int.