| 16 | MutexLocker(MutexLocker &); |
| 17 | }; |
| 18 | struct ScriptState |
| 19 | { |
| 20 | enum StateCode |
| 21 | { |
| 22 | S_NORM, S_BUSY, S_ERROR |
| 23 | }; |
| 24 | ScriptState():state(S_NORM){} |
| 25 | ScriptState(const QString &e):info(e) {state = (info.isEmpty()?S_NORM:S_ERROR);} |
| 26 | ScriptState(const char *e) {ScriptState(QString(e));} |
| 27 | ScriptState(StateCode c, const QString &i=""):state(c), info(i) {} |
| 28 | operator QString() {return info;} |
| 29 | operator bool() {return state==S_NORM;} |
| 30 | bool isBusy() const { return state == S_BUSY; } |
| 31 | |
| 32 | StateCode state; |
| 33 | QString info; |
| 34 | }; |
| 35 | Q_DECLARE_METATYPE(ScriptState) |
| 36 | |
| 37 | enum ScriptType |
no outgoing calls
no test coverage detected