13 Q_INVOKABLE
explicit VFS_cron(QString crontab);
28 bool matches(quint8 s, quint8 m, quint8 h, quint8 d, quint8 mo, quint8 w, quint16 y);
55 virtual QByteArray
icon();
A class to represent a crontime, which can be matched against a (current) time to see if it is active...
bool valid()
Vailidty of a VFS_cron::crontime.
std::bitset< 60 > _minutes
bitset of minutes
bool _valid
Is the crontime valid?
crontime(QString time="")
QList< quint16 > parseYear(QString y)
Parse the year component of a crontime string.
std::bitset< 7 > _weekdays
bitset of weekdays
QString toString() const
A pretty print version of a crontime.
quint64 parseRange(QString range)
Parse a range component from a crontime string.
std::bitset< 24 > _hours
bitset of hours
QList< quint16 > _years
list of years
std::bitset< 60 > _seconds
bitset of seconds
std::bitset< 32 > _dates
bitset of dates
QString toCrontime() const
Create a parseable crontime string.
bool matches(quint8 s, quint8 m, quint8 h, quint8 d, quint8 mo, quint8 w, quint16 y)
Check if a crontime matches.
QString toCrontimeString(QString which) const
Generate a crontime string component.
quint64 parseField(QString field)
VFS_cron::crontime::parseField.
std::bitset< 13 > _months
bitset of months
VFS_cron will emit diffs to subscribers based on wall-clock time.
virtual void unsubscribe(VFS_request *r)
virtual QString reportDetails()
virtual QByteArray icon()
Return the clock icon from VFS_icons.
virtual void parseCrontab(QString tab)
virtual bool isContainer()
A VFS_cron node cannot contain children, however listing the contents will return the entry list.
virtual void subscribe(VFS_request *r)
virtual void timerEvent(QTimerEvent *event)
Scan the event map for entries that match the current time.
Q_INVOKABLE VFS_cron(QString crontab)
int _cronID
the timerID of the cron node
virtual VFS_node * find(VFS_request *r)
virtual void initialize()
Schedule a start for the scheduler.
virtual void startCron()
Start the scheduler.
virtual void read(VFS_request *r)
Read or list the event entries.
virtual void ls(VFS_request *r)
List all entries in the crontab by name.
QMultiMap< QString, crontime > _crontab
map of "event:crontime" fields
VFS_node is the base class from which all other VFS_node classes derive.
The base class for all requests between nodes.