Imported existing sources
This commit is contained in:
1 parent
3aa39af9e3
commit
a62aa7ec5a
17 files changed
+544
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user