| 57 | } |
| 58 | |
| 59 | void Database::process() |
| 60 | { |
| 61 | qDebug("Starting database_thread: 0x%016" PRIxPTR, (uintptr_t)QThread::currentThreadId()); |
| 62 | clear(); |
| 63 | cancel_operation = false; |
| 64 | int count = create(); |
| 65 | cancel_operation = false; |
| 66 | QTextStream(stdout) << "Total entries added to the database: " << count << Qt::endl; |
| 67 | if(count < 0) { |
| 68 | clear(); |
| 69 | } |
| 70 | emit updated(count); |
| 71 | mutex.unlock(); |
| 72 | } |
| 73 | |
| 74 | void Database::cancelOperation() |
| 75 | { |
nothing calls this directly
no outgoing calls
no test coverage detected