~aleteoryx/muditaos

ref: 196c02686ae5b344e6814800b7cb8aa2473f15ea muditaos/module-db/Common/Common.hpp -rw-r--r-- 1.5 KiB
196c0268 — Przemyslaw Brudny [EGD-2395] Added BottomTop orientation support for listView. Created SMSThreadViewWindow and SMSOutputWidget. MessagesStyle moved from global Style.hpp. Fixes in Text. ListView fixes, BoxLayout callback for requestedSize. Added smsInput into list. Drafts handling added. 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * @file Common.hpp
 * @author Mateusz Piesta (mateusz.piesta@mudita.com)
 * @date 28.05.19
 * @brief
 * @copyright Copyright (C) 2019 mudita.com
 * @details
 */
#pragma once

#include <cstdint> // for uint32_t
/**
 * Types of sms message
 */
enum class SMSType : uint32_t
{
    DRAFT   = 0x01,
    FAILED  = 0x02,
    INBOX   = 0x04,
    OUTBOX  = 0x08,
    QUEUED  = 0x10,
    INPUT   = 0x12,
    UNKNOWN = 0xFF
};

enum class EntryState
{
    ALL,   /// read and unread (by user) entries
    READ,  /// only read (by user) entries
    UNREAD /// only unread (by user) entries
};

enum class ContactNumberType
{
    CELL = 0, /*!< ID defines that number is a cellphone number. */
    HOME,     /*!< ID defines that number is a home number. */
    WORK,     /*!< ID defines that number belongs to predefined work number’s group. */
    FAKS,     /*!< ID defines that number if a faks number. */
    PAGER,    /*!< ID defines that number is a pager number. */
    OTHER     /*!< ID defines that number is for device other than defined above. */
};

enum class ContactAddressType
{
    HOME = 0, /*!< ID defines that address is home address. */
    WORK,     /*!< ID defines that address is work address. */
    OTHER     /*!< ID defines that address doesn’t belong to any of the types defined above. */
};

enum class SettingsLanguage
{
    ENGLISH = 0x01,
    POLISH  = 0x02,
    GERMAN  = 0x04,
    SPANISH = 0x08,

};

enum class SettingsPinMode
{
    ALWAYS = 0,
    DAYS   = 1
};