style and consistency:

* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
This commit is contained in:
Klaus Basan
2014-01-07 23:00:39 +00:00
committed by Mathew Sutcliffe
parent b5c3a5543f
commit bb61654a29
80 changed files with 846 additions and 753 deletions

View File

@@ -21,6 +21,18 @@ namespace BlackMisc
class CUser : public BlackMisc::CValueObject
{
public:
/*!
* \brief Properties by index
*/
enum ColumnIndex
{
IndexEmail,
IndexId,
IndexPassword,
IndexRealName
};
/*!
* Default constructor.
*/
@@ -46,13 +58,13 @@ namespace BlackMisc
* Get full name.
* \return
*/
QString getRealname() const { return m_realname; }
QString getRealName() const { return m_realname; }
/*!
* \brief setRealname
* \brief setRealName
* \param realname
*/
void setRealname(const QString &realname) { m_realname = realname.trimmed(); }
void setRealName(const QString &realname) { m_realname = realname.trimmed(); }
/*!
* Get password
@@ -82,7 +94,7 @@ namespace BlackMisc
* \brief Valid real name?
* \return
*/
bool hasValidRealname() const { return !this->m_realname.isEmpty(); }
bool hasValidRealName() const { return !this->m_realname.isEmpty(); }
/*!
* \brief Valid id?
@@ -151,6 +163,20 @@ namespace BlackMisc
*/
void syncronizeData(CUser &otherUser);
/*!
* \brief Property by index
* \param index
* \return
*/
QVariant propertyByIndex(int index) const;
/*!
* \brief Property by index
* \param variant
* \param index
*/
void propertyByIndex(const QVariant &variant, int index);
protected:
/*!
* \brief Rounded value as string