mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Add the new sysadm-lifepreserver class, with example listCron()
function so we can test
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
||||
#include <sysadm-lifepreserver.h>
|
||||
#include <sysadm-network.h>
|
||||
|
||||
int main( int argc, char ** argv )
|
||||
@@ -47,6 +48,12 @@ int main( int argc, char ** argv )
|
||||
qDebug() << " - Static Gateway:" << set.staticGateway;
|
||||
qDebug() << " - Allow Secure Wifi:" << set.wifisecurity;
|
||||
}
|
||||
|
||||
// LP tests
|
||||
qDebug() << "Life-Preserver::listCron()";
|
||||
QList<QStringList> cronSnaps = sysadm::LifePreserver::listCron();
|
||||
for ( int i = 0; i < cronSnaps.size(); i++)
|
||||
qDebug() << cronSnaps.at(i);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user