mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
implement script function
This commit is contained in:
@ -233,6 +233,19 @@ ExtScript::ScriptData ExtScript::run(const int time)
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::tryDelete()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=0; i<dirs.count(); i++) {
|
||||
QString fileName = dirs[i] + QDir::separator() + name;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Remove file" << fileName << QFile::remove(fileName);
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Remove file" << fileName + QString(".conf") <<
|
||||
QFile::remove(fileName + QString(".conf"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::writeConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -58,6 +58,7 @@ public:
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
ScriptData run(const int time);
|
||||
void tryDelete();
|
||||
void writeConfiguration();
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user