// 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 namespace db { class Query; class QueryResult; class Interface { public: virtual std::unique_ptr runQuery(std::shared_ptr query); enum class Name { SMS, SMSThread, SMSTemplate, Contact, Alarms, Notes, Calllog, CountryCodes, Notifications, Events, }; }; }; // namespace db constexpr const char *c_str(enum db::Interface::Name db) { switch (db) { case db::Interface::Name::SMS: return "SMS"; case db::Interface::Name::SMSThread: return "SMSThread"; case db::Interface::Name::SMSTemplate: return "SMSTemplate"; case db::Interface::Name::Contact: return "Contact"; case db::Interface::Name::Alarms: return "Alarms"; case db::Interface::Name::Notes: return "Notes"; case db::Interface::Name::Calllog: return "Callog"; case db::Interface::Name::CountryCodes: return "CountryCodes"; case db::Interface::Name::Notifications: return "Notifications"; case db::Interface::Name::Events: return "Events"; }; return ""; }