Imported existing sources

This commit is contained in:
0xFEEDC0DE64 committed 2018-09-15 20:49:15 +02:00
1 parent 3aa39af9e3
commit a62aa7ec5a
17 files changed
+544

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
#include "dbmsgfieldbase.h"
DbMsgFieldBase::DbMsgFieldBase() :
m_hasValue(false), m_touched(false)
{
}
DbMsgFieldBase::~DbMsgFieldBase()
{
}
bool DbMsgFieldBase::hasValue() const
{
return m_hasValue;
}
void DbMsgFieldBase::clear()
{
m_hasValue = false;
}
bool DbMsgFieldBase::touched() const
{
return m_touched;
}
void DbMsgFieldBase::setTouched(bool touched)
{
m_touched = touched;
}
void DbMsgFieldBase::setHasValue(bool hasValue)
{
if(m_hasValue && !hasValue)
clear();
else
m_hasValue = hasValue;
}