Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/sql/mymoneystoragesql_p.h
Show First 20 Lines • Show All 886 Lines • ▼ Show 20 Line(s) | 200 | public: | |||
---|---|---|---|---|---|
887 | 887 | | |||
888 | void writeOnlineJobs() | 888 | void writeOnlineJobs() | ||
889 | { | 889 | { | ||
890 | Q_Q(MyMoneyStorageSql); | 890 | Q_Q(MyMoneyStorageSql); | ||
891 | QSqlQuery query(*q); | 891 | QSqlQuery query(*q); | ||
892 | if (!query.exec("DELETE FROM kmmOnlineJobs;")) | 892 | if (!query.exec("DELETE FROM kmmOnlineJobs;")) | ||
893 | throw MYMONEYEXCEPTIONSQL("Clean kmmOnlineJobs table"); | 893 | throw MYMONEYEXCEPTIONSQL("Clean kmmOnlineJobs table"); | ||
894 | 894 | | |||
895 | if (!query.exec("DELETE FROM kmmSepaOrders;")) | | |||
896 | throw MYMONEYEXCEPTIONSQL("Clean kmmSepaOrders table"); | | |||
897 | | ||||
898 | const QList<onlineJob> jobs(m_storage->onlineJobList()); | 895 | const QList<onlineJob> jobs(m_storage->onlineJobList()); | ||
899 | signalProgress(0, jobs.count(), i18n("Inserting online jobs.")); | 896 | signalProgress(0, jobs.count(), i18n("Inserting online jobs.")); | ||
900 | // Create list for onlineJobs which failed and the reason therefor | 897 | // Create list for onlineJobs which failed and the reason therefor | ||
901 | QList<QPair<onlineJob, QString> > failedJobs; | 898 | QList<QPair<onlineJob, QString> > failedJobs; | ||
902 | int jobCount = 0; | 899 | int jobCount = 0; | ||
903 | foreach (const onlineJob& job, jobs) { | 900 | foreach (const onlineJob& job, jobs) { | ||
904 | try { | 901 | try { | ||
905 | q->addOnlineJob(job); | 902 | q->addOnlineJob(job); | ||
▲ Show 20 Lines • Show All 2222 Lines • Show Last 20 Lines |