com.trolltech.qt.network
Class QSslSocket.SslMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.network.QSslSocket.SslMode
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QSslSocket

public static final class QSslSocket.SslMode
extends java.lang.Enum
implements QtEnumerator

Describes the connection modes available for QSslSocket.

See Also:
Serialized Form

Field Summary
static QSslSocket.SslMode SslClientMode
          The socket is a client-side SSL socket.
static QSslSocket.SslMode SslServerMode
          The socket is a server-side SSL socket.
static QSslSocket.SslMode UnencryptedMode
          The socket is unencrypted.
 
Method Summary
static QSslSocket.SslMode resolve(int value)
          Returns the QSslSocket$SslMode 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 QSslSocket.SslMode valueOf(java.lang.String name)
           
static QSslSocket.SslMode[] 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

UnencryptedMode

public static final QSslSocket.SslMode UnencryptedMode
The socket is unencrypted. Its behavior is identical to QTcpSocket.


SslClientMode

public static final QSslSocket.SslMode SslClientMode
The socket is a client-side SSL socket. It is either alreayd encrypted, or it is in the SSL handshake phase (see QSslSocket::isEncrypted()).


SslServerMode

public static final QSslSocket.SslMode SslServerMode
The socket is a server-side SSL socket. It is either already encrypted, or it is in the SSL handshake phase (see QSslSocket::isEncrypted()).

Method Detail

values

public static QSslSocket.SslMode[] values()

valueOf

public static QSslSocket.SslMode 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

resolve

public static QSslSocket.SslMode resolve(int value)
Returns the QSslSocket$SslMode constant with the specified int.