Globals.h 1.9 KB
Newer Older
1 2
namespace RingClientUWP
{
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

namespace ViewModel
{
namespace NotifyStrings
{
const std::vector<std::string> notifySmartPanelItem = {
    "_isSelected",
    "_contactStatus",
    "_lastTime",
    "_presenceStatus",
    "_displayName",
    "_name",
    "_bestName",
    "_bestName2",
    "notificationNewMessage",
    "_unreadMessages",
    "_unreadContactRequest",
    "_trustStatus" };
const std::vector<std::string> notifyContactRequestItem = {
    "_isSelected" };
const std::vector<std::string> notifyAccountItem = { "nothing" };
    /*"_isSelected",
    "_unreadMessages",
    "_unreadContactRequests",
    "_sipUsername",
    "_sipHostname",
    "_bestName",
    "_bestName2",
    "name_",
    "ringID_",
    "_registrationState",
    "_upnpState",
    "_autoAnswer",
    "_dhtPublicInCalls",
    "_turnEnabled",
    "accountType_",
    "accountID_",
    "_deviceId",
    "_deviceName",
    "_active" };*/
const std::vector<std::string> notifyConversation = { "" };
}
}

47
/* public enumerations. */
48 49
public enum class CallStatus {
    NONE,
50
    OUTGOING_REQUESTED,
51 52 53
    INCOMING_RINGING,
    OUTGOING_RINGING,
    SEARCHING,
54 55
    IN_PROGRESS,
    PAUSED,
56
    PEER_PAUSED,
57
    ENDED,
58
    TERMINATING,
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
    CONNECTED,
    AUTO_ANSWERING
};

public enum class DeviceRevocationResult {
    SUCCESS,
    INVALID_PASSWORD,
    INVALID_CERTIFICATE
};

public enum class TrustStatus {
    UNKNOWN,
    INCOMING_CONTACT_REQUEST,
    INGNORED,
    BLOCKED,
    CONTACT_REQUEST_SENT,
    TRUSTED
};

public enum class RegistrationState {
    UNKNOWN,
    TRYING,
    REGISTERED,
    UNREGISTERED
83
};
84

Nicolas Jager's avatar
Nicolas Jager committed
85 86 87 88 89 90 91
public enum class LookupStatus {
    SUCCESS,
    INVALID_NAME,
    NOT_FOUND,
    ERRORR // one cannot simply use ERROR
};

Nicolas Jager's avatar
Nicolas Jager committed
92
public enum class ContactStatus {
93
    WAITING_FOR_ACTIVATION,
Nicolas Jager's avatar
Nicolas Jager committed
94 95 96
    READY
};

97 98 99
/* public enumerations. */
constexpr bool DEBUG_ON = true;

100
}