some server code

This commit is contained in:
Max-Wilhelm Bruker
2009-11-02 17:35:51 +01:00
parent 6923c98dc2
commit 29bf3d3774
18 changed files with 729 additions and 137 deletions

View File

@@ -22,7 +22,6 @@ bool ProtocolItem::read(QXmlStreamReader *xml)
if (xml->name() == getItemType()) {
extractParameters();
qDebug() << "FERTIG";
deleteLater();
return true;
} else {
QString tagName = xml->name().toString();
@@ -111,6 +110,7 @@ void ProtocolResponse::extractParameters()
void ProtocolResponse::initializeHash()
{
responseHash.insert("ok", RespOk);
responseHash.insert("invalid_command", RespInvalidCommand);
responseHash.insert("name_not_found", RespNameNotFound);
responseHash.insert("login_needed", RespLoginNeeded);
responseHash.insert("context_error", RespContextError);