mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 13:58:00 -05:00
30 lines
681 B
C++
30 lines
681 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
/*
|
|
* @file SmsDB.cpp
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 28.05.19
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#include <module-vfs/vfs.hpp>
|
|
#include "SmsDB.hpp"
|
|
|
|
const char *SmsDB::dbName = USER_PATH("sms.db");
|
|
|
|
SmsDB::SmsDB() : Database(dbName), sms(this), threads(this), templates(this)
|
|
{
|
|
if (sms.create() == false)
|
|
return;
|
|
if (threads.create() == false)
|
|
return;
|
|
if (templates.create() == false)
|
|
return;
|
|
|
|
isInitialized_ = true;
|
|
}
|
|
|
|
SmsDB::~SmsDB()
|
|
{} |