Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

QueryDialog Class Reference

The dialog shown when we setup (add or change) the user. More...

#include <query_dialog.h>

Inheritance diagram for QueryDialog::

List of all members.

Public Types

enum  Result {
  OK = 0, ABORTED = 1, COULD_NOT_CONNECT_SERVER = 2, COULD_NOT_CONNECT_DATABASE = 3,
  INVALID_NICKNAME = 4, USER_NOT_FOUND = 5, INVALID_PASSWORD = 6, COULD_NOT_UPDATE_DATABASE = 7,
  USER_ALREADY_EXISTS = 8, MAP_DOES_NOT_EXISTS = 9, SOLUTION_IS_INVALID = 10, LEVEL_NOT_SOLVED = 11,
  TOO_MANY_USERS = 12
}

Public Methods

 QueryDialog (QString const &caption, QString const &text, KURL const &server, QString const &proxy, int proxy_port, QString const &script, QString const &query, QWidget *parent=0)
Result result () const
QString resultText () const
QString data () const
int version () const

Protected Slots

void read ()
void closed ()
void error ()
void connected ()
void connectToHost ()

Private Attributes

QString m_server_data
QSocket * m_socket
QString m_script
QString m_query
Result m_result
QString m_path
QString m_host
int m_port
QString m_data
int m_version

Detailed Description

The dialog shown when we setup (add or change) the user.

Author:
Ralf Schmelter (ralfs@pc2a.chemie.uni-dortmund.de).
Version:
0.1


Member Enumeration Documentation

enum QueryDialog::Result
 

Defines the result of the query operation.

Enumeration values:
OK   Everything was ok.
ABORTED   The query was aborted.
COULD_NOT_CONNECT_SERVER   The server could not be connected.
COULD_NOT_CONNECT_DATABASE   The databae could not be connected.
INVALID_NICKNAME   The nickname is invalid.
USER_NOT_FOUND   The user is not found.
INVALID_PASSWORD   The password is invalid.
COULD_NOT_UPDATE_DATABASE   The database could not be updated.
USER_ALREADY_EXISTS   The user already exists.
MAP_DOES_NOT_EXISTS   The map does not exists.
SOLUTION_IS_INVALID   The solution is invalid.
LEVEL_NOT_SOLVED   You haven't solved the level.
TOO_MANY_USERS   To many users.


Constructor & Destructor Documentation

QueryDialog::QueryDialog QString const & caption,
QString const & text,
KURL const & server,
QString const & proxy,
int proxy_port,
QString const & script,
QString const & query,
QWidget * parent = 0
 

Creates the dialog.

Parameters:
caption   The caption of the dialog.
text   The text of the dialog.
server   The url of the server.
proxy   The host of the proxy to use (empty if we don't use one).
proxy_port   The port of the proxy.
script   The script to use.
query   The query to use.
parent   The parent of the dialog.


Member Function Documentation

void QueryDialog::closed [protected, slot]
 

Called when the socket was closed.

void QueryDialog::connectToHost [protected, slot]
 

Called when we should connect to the server.

void QueryDialog::connected [protected, slot]
 

Called when the connection is established.

QString QueryDialog::data const
 

Returns the data from the query.

void QueryDialog::error [protected, slot]
 

Called when an error occured.

void QueryDialog::read [protected, slot]
 

Called to read from the socket.

Result QueryDialog::result const
 

Returns the result of the query.

QString QueryDialog::resultText const
 

Returns a human readable version of the result.

int QueryDialog::version const
 

Returns the version of the server.


Member Data Documentation

QString QueryDialog::m_data [private]
 

The data received.

QString QueryDialog::m_host [private]
 

The server host.

QString QueryDialog::m_path [private]
 

The server path.

int QueryDialog::m_port [private]
 

The server port.

QString QueryDialog::m_query [private]
 

The query.

Result QueryDialog::m_result [private]
 

The result.

QString QueryDialog::m_script [private]
 

The script.

QString QueryDialog::m_server_data [private]
 

The data from the server.

QSocket* QueryDialog::m_socket [private]
 

The socket to use.

int QueryDialog::m_version [private]
 

The server version.


The documentation for this class was generated from the following file:
Generated at Sun Jan 6 18:49:12 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001