MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / WizDayOnce

Method WizDayOnce

src/database/WizDatabase.cpp:1628–1640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1626}
1627
1628bool WizDatabase::WizDayOnce(const QString& strName)
1629{
1630 WizDatabase* db = personalDatabase();
1631 QString strDate = db->meta("WizDayOnce", strName);
1632 QDateTime curDt = QDateTime::currentDateTime();
1633 db->setMeta("WizDayOnce", strName, curDt.toString(Qt::ISODate));
1634
1635 if (strDate.isEmpty())
1636 return true;
1637
1638 QDateTime dt = QDateTime::fromString(strDate, Qt::ISODate);
1639 return dt.daysTo(curDt) >= 1;
1640}
1641
1642long WizDatabase::getLocalFlags(const QString& strObjectGUID,
1643 const QString& strObjectType)

Callers

nothing calls this directly

Calls 4

metaMethod · 0.80
isEmptyMethod · 0.80
setMetaMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected