Lines Matching refs:SchedulerJob

48         void runSetupJob(SchedulerJob &job,
51 … const QUrl &fitsUrl, SchedulerJob::StartupCondition sCond, const QDateTime &sTime,
52 … int16_t sOffset, SchedulerJob::CompletionCondition eCond, const QDateTime &eTime, int eReps,
167SchedulerJob &job, GeoLocation *geo, KStarsDateTime *localTime, const QString &name, int priority, in runSetupJob()
169 const QUrl &fitsUrl, SchedulerJob::StartupCondition sCond, const QDateTime &sTime, in runSetupJob()
170 int16_t sOffset, SchedulerJob::CompletionCondition eCond, const QDateTime &eTime, int eReps, in runSetupJob()
203 case SchedulerJob::START_AT: in runSetupJob()
207 case SchedulerJob::START_CULMINATION: in runSetupJob()
211 case SchedulerJob::START_ASAP: in runSetupJob()
220 case SchedulerJob::FINISH_AT: in runSetupJob()
225 case SchedulerJob::FINISH_REPEAT: in runSetupJob()
230 case SchedulerJob::FINISH_SEQUENCE: in runSetupJob()
235 case SchedulerJob::FINISH_LOOP: in runSetupJob()
242 SchedulerJob::StepPipeline pipe = job.getStepPipeline(); in runSetupJob()
243 …QVERIFY((track && (pipe & SchedulerJob::USE_TRACK)) || (!track && !(pipe & SchedulerJob::USE_TRACK… in runSetupJob()
244 …QVERIFY((focus && (pipe & SchedulerJob::USE_FOCUS)) || (!focus && !(pipe & SchedulerJob::USE_FOCUS… in runSetupJob()
245 …QVERIFY((align && (pipe & SchedulerJob::USE_ALIGN)) || (!align && !(pipe & SchedulerJob::USE_ALIGN… in runSetupJob()
246 …QVERIFY((guide && (pipe & SchedulerJob::USE_GUIDE)) || (!guide && !(pipe & SchedulerJob::USE_GUIDE… in runSetupJob()
251 SchedulerJob job(nullptr); in setupGeoAndTimeTest()
261 Q_DECLARE_METATYPE(SchedulerJob::StartupCondition);
262 Q_DECLARE_METATYPE(SchedulerJob::CompletionCondition);
269 QTest::addColumn<SchedulerJob::StartupCondition>("START_CONDITION"); in setupJobTest_data()
272 QTest::addColumn<SchedulerJob::CompletionCondition>("END_CONDITION"); in setupJobTest_data()
284 << SchedulerJob::START_ASAP << QDateTime() << 0 // start conditions in setupJobTest_data()
285 << SchedulerJob::FINISH_SEQUENCE << QDateTime() << 1 // end conditions in setupJobTest_data()
295 << SchedulerJob::START_AT // start conditions in setupJobTest_data()
298 << SchedulerJob::FINISH_AT // end conditions in setupJobTest_data()
310 << SchedulerJob::START_CULMINATION << QDateTime() << 60 // start conditions in setupJobTest_data()
311 << SchedulerJob::FINISH_REPEAT << QDateTime() << 3 // end conditions in setupJobTest_data()
321 << SchedulerJob::START_ASAP << QDateTime() << 0 // start conditions in setupJobTest_data()
322 << SchedulerJob::FINISH_SEQUENCE << QDateTime() << 1 // end conditions in setupJobTest_data()
334 QFETCH(SchedulerJob::StartupCondition, START_CONDITION); in setupJobTest()
337 QFETCH(SchedulerJob::CompletionCondition, END_CONDITION); in setupJobTest()
348 SchedulerJob job(nullptr); in setupJobTest()
382 SchedulerJob schedJob(nullptr); in loadSequenceQueueTest()
415 SchedulerJob job(nullptr); in estimateJobTimeTest()
419 SchedulerJob::START_ASAP, QDateTime(), 0, in estimateJobTimeTest()
420 SchedulerJob::FINISH_SEQUENCE, QDateTime(), 1, in estimateJobTimeTest()
437 job.setCompletionCondition(SchedulerJob::FINISH_REPEAT); in estimateJobTimeTest()
451 job.setCompletionCondition(SchedulerJob::FINISH_LOOP); in estimateJobTimeTest()
457 job.setCompletionCondition(SchedulerJob::FINISH_AT); in estimateJobTimeTest()
466 job.setStartupCondition(SchedulerJob::START_AT); in estimateJobTimeTest()
473 job.setStartupCondition(SchedulerJob::START_ASAP); in estimateJobTimeTest()
474 job.setCompletionCondition(SchedulerJob::FINISH_SEQUENCE); in estimateJobTimeTest()
503 SchedulerJob job(nullptr); in calculateJobScoreTest()
508 SchedulerJob::START_ASAP, QDateTime(), 0, in calculateJobScoreTest()
509 SchedulerJob::FINISH_SEQUENCE, QDateTime(), 1, in calculateJobScoreTest()
578 SchedulerJob job(nullptr); in evaluateJobsTest()
587 QList<SchedulerJob *> jobs; in evaluateJobsTest()
589 QList<SchedulerJob *> sortedJobs; in evaluateJobsTest()
603 SchedulerJob::START_ASAP, QDateTime(), 0, in evaluateJobsTest()
604 SchedulerJob::FINISH_SEQUENCE, QDateTime(), 1, in evaluateJobsTest()
640 SchedulerJob job1(nullptr); in evaluateJobsTest()
646 SchedulerJob::START_ASAP, QDateTime(), 0, in evaluateJobsTest()
647 SchedulerJob::FINISH_REPEAT, QDateTime(), 2, in evaluateJobsTest()
654 SchedulerJob job2(nullptr); in evaluateJobsTest()
658 SchedulerJob::START_ASAP, QDateTime(), 0, in evaluateJobsTest()
659 SchedulerJob::FINISH_SEQUENCE, QDateTime(), 1, in evaluateJobsTest()
695 SchedulerJob job3(nullptr); in evaluateJobsTest()
700 SchedulerJob::START_ASAP, QDateTime(), 0, in evaluateJobsTest()
701 SchedulerJob::FINISH_REPEAT, QDateTime(), 10, in evaluateJobsTest()
706 SchedulerJob job4(nullptr); in evaluateJobsTest()
710 SchedulerJob::START_ASAP, QDateTime(), 0, in evaluateJobsTest()
711 SchedulerJob::FINISH_SEQUENCE, QDateTime(), 1, in evaluateJobsTest()