#include <query_dialog.h>
Inheritance diagram for QueryDialog::
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 |
|
|
Creates the dialog.
|
|
Called when the socket was closed.
|
|
Called when we should connect to the server.
|
|
Called when the connection is established.
|
|
Returns the data from the query.
|
|
Called when an error occured.
|
|
Called to read from the socket.
|
|
Returns the result of the query.
|
|
Returns a human readable version of the result.
|
|
Returns the version of the server.
|
|
The data received.
|
|
The server host.
|
|
The server path.
|
|
The server port.
|
|
The query.
|
|
The result.
|
|
The script.
|
|
The data from the server.
|
|
The socket to use.
|
|
The server version.
|