A class to represent a crontime, which can be matched against a (current) time to see if it is active.
More...
A class to represent a crontime, which can be matched against a (current) time to see if it is active.
- See also
- VFS_cron
Definition at line 23 of file VFS_cron.h.
◆ crontime()
VFS_cron::crontime::crontime |
( |
QString |
spec = "" | ) |
|
◆ matches()
bool VFS_cron::crontime::matches |
( |
quint8 |
s, |
|
|
quint8 |
m, |
|
|
quint8 |
h, |
|
|
quint8 |
d, |
|
|
quint8 |
mo, |
|
|
quint8 |
w, |
|
|
quint16 |
y |
|
) |
| |
Check if a crontime matches.
- Parameters
-
s | Seconds |
m | Minutes |
h | Hours |
d | Date |
mo | Month |
w | Weekday |
y | Year |
- Returns
- boolean match
Definition at line 614 of file VFS_cron.cpp.
◆ parseField()
quint64 VFS_cron::crontime::parseField |
( |
QString |
field | ) |
|
|
private |
◆ parseRange()
quint64 VFS_cron::crontime::parseRange |
( |
QString |
range | ) |
|
|
private |
Parse a range component from a crontime string.
- Parameters
-
- Returns
- A bit mask as a quint64 representing the range
Definition at line 497 of file VFS_cron.cpp.
◆ parseYear()
QList< quint16 > VFS_cron::crontime::parseYear |
( |
QString |
y | ) |
|
|
private |
Parse the year component of a crontime string.
- Parameters
-
- Returns
- A list of applicable years for the crontime event
Definition at line 543 of file VFS_cron.cpp.
◆ toCrontime()
QString VFS_cron::crontime::toCrontime |
( |
| ) |
const |
Create a parseable crontime string.
- Returns
- A VFS_cron parseable crontime string
Definition at line 667 of file VFS_cron.cpp.
◆ toCrontimeString()
QString VFS_cron::crontime::toCrontimeString |
( |
QString |
which | ) |
const |
|
private |
Generate a crontime string component.
- Parameters
-
- Returns
- The parseable value range of a component
Definition at line 688 of file VFS_cron.cpp.
◆ toString()
QString VFS_cron::crontime::toString |
( |
| ) |
const |
A pretty print version of a crontime.
- Returns
- The pretty string
Definition at line 636 of file VFS_cron.cpp.
◆ valid()
bool VFS_cron::crontime::valid |
( |
| ) |
|
◆ _dates
std::bitset<32> VFS_cron::crontime::_dates |
|
private |
◆ _hours
std::bitset<24> VFS_cron::crontime::_hours |
|
private |
◆ _minutes
std::bitset<60> VFS_cron::crontime::_minutes |
|
private |
◆ _months
std::bitset<13> VFS_cron::crontime::_months |
|
private |
◆ _seconds
std::bitset<60> VFS_cron::crontime::_seconds |
|
private |
◆ _valid
bool VFS_cron::crontime::_valid |
|
private |
Is the crontime valid?
Definition at line 34 of file VFS_cron.h.
◆ _weekdays
std::bitset<7> VFS_cron::crontime::_weekdays |
|
private |
bitset of weekdays
Definition at line 41 of file VFS_cron.h.
◆ _years
QList<quint16> VFS_cron::crontime::_years |
|
private |
The documentation for this class was generated from the following files: