| 259 | } |
| 260 | |
| 261 | bool MacroScheduleEntry::ShouldTrigger(const QDateTime &now) const |
| 262 | { |
| 263 | if (!enabled) { |
| 264 | return false; |
| 265 | } |
| 266 | if (IsExpired()) { |
| 267 | return false; |
| 268 | } |
| 269 | if (!startDateTime.isValid()) { |
| 270 | return false; |
| 271 | } |
| 272 | const QDateTime next = NextTriggerTime(); |
| 273 | if (!next.isValid()) { |
| 274 | return false; |
| 275 | } |
| 276 | return next <= now; |
| 277 | } |
| 278 | |
| 279 | void MacroScheduleEntry::MarkTriggered(const QDateTime &now) |
| 280 | { |
no outgoing calls
no test coverage detected