Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/sql/mymoneystoragesql.cpp
Show First 20 Lines • Show All 1374 Lines • ▼ Show 20 Line(s) | 1350 | { | |||
---|---|---|---|---|---|
1375 | int progress = 0; | 1375 | int progress = 0; | ||
1376 | QMap<QString, onlineJob> jobList; | 1376 | QMap<QString, onlineJob> jobList; | ||
1377 | 1377 | | |||
1378 | while (query.next()) { | 1378 | while (query.next()) { | ||
1379 | const QString& id = query.value(0).toString(); | 1379 | const QString& id = query.value(0).toString(); | ||
1380 | onlineTask *const task = d->createOnlineTaskObject(query.value(1).toString(), id, *this); | 1380 | onlineTask *const task = d->createOnlineTaskObject(query.value(1).toString(), id, *this); | ||
1381 | onlineJob job = onlineJob(task, id); | 1381 | onlineJob job = onlineJob(task, id); | ||
1382 | job.setJobSend(query.value(2).toDateTime()); | 1382 | job.setJobSend(query.value(2).toDateTime()); | ||
1383 | onlineJob::sendingState state; | 1383 | eMyMoney::OnlineJob::sendingState state; | ||
1384 | const QString stateString = query.value(4).toString(); | 1384 | const QString stateString = query.value(4).toString(); | ||
1385 | if (stateString == "acceptedByBank") | 1385 | if (stateString == "acceptedByBank") | ||
1386 | state = onlineJob::acceptedByBank; | 1386 | state = eMyMoney::OnlineJob::sendingState::acceptedByBank; | ||
1387 | else if (stateString == "rejectedByBank") | 1387 | else if (stateString == "rejectedByBank") | ||
1388 | state = onlineJob::rejectedByBank; | 1388 | state = eMyMoney::OnlineJob::sendingState::rejectedByBank; | ||
1389 | else if (stateString == "abortedByUser") | 1389 | else if (stateString == "abortedByUser") | ||
1390 | state = onlineJob::abortedByUser; | 1390 | state = eMyMoney::OnlineJob::sendingState::abortedByUser; | ||
1391 | else if (stateString == "sendingError") | 1391 | else if (stateString == "sendingError") | ||
1392 | state = onlineJob::sendingError; | 1392 | state = eMyMoney::OnlineJob::sendingState::sendingError; | ||
1393 | else // includes: stateString == "noBankAnswer" | 1393 | else // includes: stateString == "noBankAnswer" | ||
1394 | state = onlineJob::noBankAnswer; | 1394 | state = eMyMoney::OnlineJob::sendingState::noBankAnswer; | ||
1395 | 1395 | | |||
1396 | job.setBankAnswer(state, query.value(4).toDateTime()); | 1396 | job.setBankAnswer(state, query.value(4).toDateTime()); | ||
1397 | job.setLock(query.value(5).toString() == QLatin1String("Y") ? true : false); | 1397 | job.setLock(query.value(5).toString() == QLatin1String("Y") ? true : false); | ||
1398 | jobList.insert(job.id(), job); | 1398 | jobList.insert(job.id(), job); | ||
1399 | if (d->m_displayStatus) | 1399 | if (d->m_displayStatus) | ||
1400 | d->signalProgress(++progress, 0); | 1400 | d->signalProgress(++progress, 0); | ||
1401 | } | 1401 | } | ||
1402 | return jobList; | 1402 | return jobList; | ||
▲ Show 20 Lines • Show All 1454 Lines • Show Last 20 Lines |