MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / ScriptState

Class ScriptState

Extension/Script/scriptbase.h:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 MutexLocker(MutexLocker &);
17};
18struct 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};
35Q_DECLARE_METATYPE(ScriptState)
36
37enum ScriptType

Callers 15

kMatchMethod · 0.85
getURLInfoMethod · 0.85
downloadDanmuMethod · 0.85
ScriptStateMethod · 0.85
loadScriptMethod · 0.85
searchMethod · 0.85
getDetailMethod · 0.85
getEpMethod · 0.85
getTagsMethod · 0.85
matchMethod · 0.85
menuClickMethod · 0.85
loadScriptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected