Files
MuditaOS/module-db/Databases/ContactsDB.hpp
jimmorrisson 6711e02bad [EGD-4446] Change: new filesystem handling implementation in module db. (#1052)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module database. It also contains minor fixes in module-db.
2020-12-05 10:40:27 +01:00

50 lines
1.1 KiB
C++

// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <Database/Database.hpp>
#include <Tables/ContactsTable.hpp>
#include <Tables/ContactsNameTable.hpp>
#include <Tables/ContactsNumberTable.hpp>
#include <Tables/ContactsRingtonesTable.hpp>
#include <Tables/ContactsAddressTable.hpp>
#include <Tables/ContactsGroups.hpp>
class ContactsDB : public Database
{
public:
ContactsDB(const char *name);
~ContactsDB() = default;
ContactsTable contacts;
ContactsNameTable name;
ContactsNumberTable number;
ContactsRingtonesTable ringtones;
ContactsAddressTable address;
ContactsGroupsTable groups;
static uint32_t favouritesGroupId()
{
return favouritesId;
}
static uint32_t iceGroupId()
{
return iceId;
}
static uint32_t blockedGroupId()
{
return blockedId;
}
static uint32_t temporaryGroupId()
{
return temporaryId;
}
private:
static uint32_t favouritesId;
static uint32_t iceId;
static uint32_t blockedId;
static uint32_t temporaryId;
};