MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / isEmpty

Method isEmpty

Src/Database/DatabaseFilter.cpp:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool CDatabaseFilter::isEmpty()
95{
96 QSqlQuery query(GetDatabase());
97 query.prepare("SELECT `key` FROM " + m_szTableName);
98 bool bRet = query.exec();
99 if(!bRet) {
100 qCritical(log) << "Failed to isEmpty:"
101 << query.lastError().text()
102 << "Sql:" << query.executedQuery();
103 return true;
104 }
105 return !query.next();
106}
107
108int CDatabaseFilter::OnProcess(std::function<int (const QString &)> cb, bool bErrExit)
109{

Callers 15

FrmActive.cppFile · 0.45
slotCustomContextMenuMethod · 0.45
mainwindow.cppFile · 0.45
slotOpenFileMethod · 0.45
StartMethod · 0.45
slotFinishedMethod · 0.45
SetSecureLevelMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected