~aleteoryx/muditaos

ref: 57c7672f8f4324526dd63c614b6089fa1a9fc021 muditaos/module-db/Databases/SmsDB.cpp -rw-r--r-- 517 bytes
57c7672f — Piotr Tanski [EGD-4366] Global data cleanup. (#999) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#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()
{}