mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 13:58:00 -05:00
33 lines
684 B
C++
33 lines
684 B
C++
|
|
/*
|
|
* @file ContactsDB.cpp
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 28.05.19
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#include "ContactsDB.hpp"
|
|
|
|
const char *ContactsDB::dbName = "sys/contacts.db";
|
|
|
|
ContactsDB::ContactsDB() : Database(dbName), contacts(this), name(this), number(this), ringtones(this), address(this)
|
|
{
|
|
|
|
if (contacts.Create() == false)
|
|
return;
|
|
if (name.Create() == false)
|
|
return;
|
|
if (number.Create() == false)
|
|
return;
|
|
if (ringtones.Create() == false)
|
|
return;
|
|
if (address.Create() == false)
|
|
return;
|
|
|
|
isInitialized = true;
|
|
}
|
|
|
|
ContactsDB::~ContactsDB()
|
|
{} |