odstraneni nekolika gui bugu, pridani librtmp, prepsani parseru na aktualni verzi...
[ctkuk.git] / WebEngineError.cpp
blob00e56d42a6d18bfe690585a23eca5da9e91f4e33
1 #include "WebEngineError.h"
3 #include <QObject>
4 #include <QVector>
6 WebEngineError::WebEngineError(int code)
8 m_code = code;
9 getErrDesc(code);
12 void
13 WebEngineError::getErrDesc(int code)
15 // tr() musim dat s QObject::, protoze trida neni Qt trida (= potomek QObject)
16 static QVector<QString> errTable;
17 if(errTable.size() == 0)
19 errTable.push_back(QObject::tr("Ok.")); // ERR_NO
20 errTable.push_back(QObject::tr("Execution error!")); // ERR_REQUEST
21 errTable.push_back(QObject::tr("Loading parser error!")); // ERR_PARSER
22 errTable.push_back(QObject::tr("Parser error!")); // ERR_PARSING
24 if(code >= errTable.size())
26 m_desc = QObject::tr("Unexpected error!");
28 m_desc = errTable[code];