| 78 | } |
| 79 | |
| 80 | int CDatabaseFilter::Clear() |
| 81 | { |
| 82 | QSqlQuery query(GetDatabase()); |
| 83 | query.prepare("DELETE FROM " + m_szTableName); |
| 84 | bool bRet = query.exec(); |
| 85 | if (!bRet) { |
| 86 | qCritical(log) << "Failed to clear:" |
| 87 | << query.lastError().text() |
| 88 | << "Sql:" << query.executedQuery(); |
| 89 | return -1; |
| 90 | } |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | bool CDatabaseFilter::isEmpty() |
| 95 | { |
nothing calls this directly
no outgoing calls
no test coverage detected