Splitted dbmsglib for each class separate .h/.cpp
This commit is contained in:
38
messagingcorelib/dbmsgfieldbase.cpp
Normal file
38
messagingcorelib/dbmsgfieldbase.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user