mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-30 19:27:03 -04:00
* [EGD-2513] new API to create temparary contact entry if cannot be found Calllog should search for contact. * [EGD-2513] #pragma once in all headers file in module-db * [EGD-2513] new constructor for CalllogRecord * [EGD-2513] contact recognition for calllog DB API * [EGD-2513] clean up * [EGD-2513] displaying name and surname call and calllog * [EGD-2513] enum instead bool * [EGD-2513] fix in remporary contact creation * [fix][EGD-2513] missing c_str * [fix][EGD-2513] minor fixes in documentation * [EGD-2513] unified entry read state for both sms and calllog dbs * [EGD-2513] calllog db documentation * [EGD-2513] code reviex fixed in ContactRecord
56 lines
983 B
C++
56 lines
983 B
C++
|
|
/*
|
|
* @file Field.hpp
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 24.05.19
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
class Field
|
|
{
|
|
public:
|
|
Field() : mValue(nullptr)
|
|
{
|
|
}
|
|
|
|
Field(const char *value)
|
|
{
|
|
if (value)
|
|
{
|
|
mValue = value;
|
|
}
|
|
}
|
|
// Field(Field const&);
|
|
|
|
// Field& operator=(Field const&);
|
|
|
|
~Field()
|
|
{
|
|
}
|
|
|
|
const char *GetCString() const;
|
|
std::string GetString() const { return mValue; }
|
|
float GetFloat() const;
|
|
bool GetBool() const;
|
|
double GetDouble() const;
|
|
int8_t GetInt8() const;
|
|
int32_t GetInt32() const;
|
|
uint8_t GetUInt8() const;
|
|
uint16_t GetUInt16() const;
|
|
int16_t GetInt16() const;
|
|
uint32_t GetUInt32() const;
|
|
uint64_t GetUInt64() const;
|
|
int64_t GetInt64() const;
|
|
void SetValue(const char *value);
|
|
|
|
private:
|
|
std::string mValue;
|
|
};
|