* implement interval to extupgrade (ApiVer = 1) (fix #45)

* improve extscript logic
* add cache values to both of them
This commit is contained in:
arcan1s
2015-02-24 00:02:59 +03:00
parent 4cee2535ee
commit bcf26156d1
14 changed files with 118 additions and 72 deletions

View File

@ -44,12 +44,6 @@ public:
nothing,
stderr2stdout
};
typedef struct {
bool active;
QString name;
QString output;
bool refresh;
} ScriptData;
explicit ExtScript(QWidget *parent = 0, const QString scriptName = QString(),
const QStringList directories = QStringList(), const bool debugCmd = false);
@ -80,7 +74,7 @@ public:
public slots:
void readConfiguration();
ScriptData run(const int time);
QString run();
int showConfiguration();
int tryDelete();
void writeConfiguration();
@ -100,6 +94,8 @@ private:
bool m_output = true;
QString m_prefix = QString("");
Redirect m_redirect = nothing;
int times = 0;
QString value = QString();
};