
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */

#include "enum-types.h"
#include "calls-account.h"
#include "calls-call.h"
#include "calls-manager.h"
#include "calls-ringer.h"
#include "calls-ussd.h"

#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)

/* enumerations from "calls-account.h" */

GType
calls_account_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_ACCOUNT_STATE_UNKNOWN), "CALLS_ACCOUNT_STATE_UNKNOWN", "unknown" },
        { C_ENUM (CALLS_ACCOUNT_STATE_INITIALIZING), "CALLS_ACCOUNT_STATE_INITIALIZING", "initializing" },
        { C_ENUM (CALLS_ACCOUNT_STATE_DEINITIALIZING), "CALLS_ACCOUNT_STATE_DEINITIALIZING", "deinitializing" },
        { C_ENUM (CALLS_ACCOUNT_STATE_CONNECTING), "CALLS_ACCOUNT_STATE_CONNECTING", "connecting" },
        { C_ENUM (CALLS_ACCOUNT_STATE_ONLINE), "CALLS_ACCOUNT_STATE_ONLINE", "online" },
        { C_ENUM (CALLS_ACCOUNT_STATE_DISCONNECTING), "CALLS_ACCOUNT_STATE_DISCONNECTING", "disconnecting" },
        { C_ENUM (CALLS_ACCOUNT_STATE_OFFLINE), "CALLS_ACCOUNT_STATE_OFFLINE", "offline" },
        { C_ENUM (CALLS_ACCOUNT_STATE_ERROR), "CALLS_ACCOUNT_STATE_ERROR", "error" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsAccountState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
calls_account_state_reason_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_UNKNOWN), "CALLS_ACCOUNT_STATE_REASON_UNKNOWN", "unknown" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_INITIALIZATION_STARTED), "CALLS_ACCOUNT_STATE_REASON_INITIALIZATION_STARTED", "initialization-started" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_INITIALIZED), "CALLS_ACCOUNT_STATE_REASON_INITIALIZED", "initialized" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_DEINITIALIZATION_STARTED), "CALLS_ACCOUNT_STATE_REASON_DEINITIALIZATION_STARTED", "deinitialization-started" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_DEINITIALIZED), "CALLS_ACCOUNT_STATE_REASON_DEINITIALIZED", "deinitialized" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_NO_CREDENTIALS), "CALLS_ACCOUNT_STATE_REASON_NO_CREDENTIALS", "no-credentials" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_CONNECT_STARTED), "CALLS_ACCOUNT_STATE_REASON_CONNECT_STARTED", "connect-started" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_CONNECTION_TIMEOUT), "CALLS_ACCOUNT_STATE_REASON_CONNECTION_TIMEOUT", "connection-timeout" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_CONNECTION_DNS_ERROR), "CALLS_ACCOUNT_STATE_REASON_CONNECTION_DNS_ERROR", "connection-dns-error" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_AUTHENTICATION_FAILURE), "CALLS_ACCOUNT_STATE_REASON_AUTHENTICATION_FAILURE", "authentication-failure" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_CONNECTED), "CALLS_ACCOUNT_STATE_REASON_CONNECTED", "connected" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_DISCONNECT_STARTED), "CALLS_ACCOUNT_STATE_REASON_DISCONNECT_STARTED", "disconnect-started" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_DISCONNECTED), "CALLS_ACCOUNT_STATE_REASON_DISCONNECTED", "disconnected" },
        { C_ENUM (CALLS_ACCOUNT_STATE_REASON_INTERNAL_ERROR), "CALLS_ACCOUNT_STATE_REASON_INTERNAL_ERROR", "internal-error" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsAccountStateReason"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "calls-call.h" */

GType
calls_call_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_CALL_STATE_UNKNOWN), "CALLS_CALL_STATE_UNKNOWN", "unknown" },
        { C_ENUM (CALLS_CALL_STATE_ACTIVE), "CALLS_CALL_STATE_ACTIVE", "active" },
        { C_ENUM (CALLS_CALL_STATE_HELD), "CALLS_CALL_STATE_HELD", "held" },
        { C_ENUM (CALLS_CALL_STATE_DIALING), "CALLS_CALL_STATE_DIALING", "dialing" },
        { C_ENUM (CALLS_CALL_STATE_ALERTING), "CALLS_CALL_STATE_ALERTING", "alerting" },
        { C_ENUM (CALLS_CALL_STATE_INCOMING), "CALLS_CALL_STATE_INCOMING", "incoming" },
        { C_ENUM (CALLS_CALL_STATE_DISCONNECTED), "CALLS_CALL_STATE_DISCONNECTED", "disconnected" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsCallState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
calls_call_type_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_CALL_TYPE_UNKNOWN), "CALLS_CALL_TYPE_UNKNOWN", "unknown" },
        { C_ENUM (CALLS_CALL_TYPE_CELLULAR), "CALLS_CALL_TYPE_CELLULAR", "cellular" },
        { C_ENUM (CALLS_CALL_TYPE_SIP_VOICE), "CALLS_CALL_TYPE_SIP_VOICE", "sip-voice" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsCallType"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "calls-manager.h" */

GType
calls_manager_flags_get_type (void)
{
    static gsize gtype_id = 0;
    static const GFlagsValue values[] = {
        { C_FLAGS (CALLS_MANAGER_FLAGS_UNKNOWN), "CALLS_MANAGER_FLAGS_UNKNOWN", "unknown" },
        { C_FLAGS (CALLS_MANAGER_FLAGS_HAS_CELLULAR_PROVIDER), "CALLS_MANAGER_FLAGS_HAS_CELLULAR_PROVIDER", "has-cellular-provider" },
        { C_FLAGS (CALLS_MANAGER_FLAGS_HAS_CELLULAR_MODEM), "CALLS_MANAGER_FLAGS_HAS_CELLULAR_MODEM", "has-cellular-modem" },
        { C_FLAGS (CALLS_MANAGER_FLAGS_HAS_VOIP_PROVIDER), "CALLS_MANAGER_FLAGS_HAS_VOIP_PROVIDER", "has-voip-provider" },
        { C_FLAGS (CALLS_MANAGER_FLAGS_HAS_VOIP_ACCOUNT), "CALLS_MANAGER_FLAGS_HAS_VOIP_ACCOUNT", "has-voip-account" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_flags_register_static (g_intern_static_string ("CallsManagerFlags"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "calls-ringer.h" */

GType
calls_ring_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_RING_STATE_INACTIVE), "CALLS_RING_STATE_INACTIVE", "inactive" },
        { C_ENUM (CALLS_RING_STATE_RINGING), "CALLS_RING_STATE_RINGING", "ringing" },
        { C_ENUM (CALLS_RING_STATE_RINGING_SOFT), "CALLS_RING_STATE_RINGING_SOFT", "ringing-soft" },
        { C_ENUM (CALLS_RING_STATE_ERROR), "CALLS_RING_STATE_ERROR", "error" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsRingState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "calls-ussd.h" */

GType
calls_ussd_state_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (CALLS_USSD_STATE_UNKNOWN), "CALLS_USSD_STATE_UNKNOWN", "unknown" },
        { C_ENUM (CALLS_USSD_STATE_IDLE), "CALLS_USSD_STATE_IDLE", "idle" },
        { C_ENUM (CALLS_USSD_STATE_ACTIVE), "CALLS_USSD_STATE_ACTIVE", "active" },
        { C_ENUM (CALLS_USSD_STATE_USER_RESPONSE), "CALLS_USSD_STATE_USER_RESPONSE", "user-response" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("CallsUssdState"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* Generated data ends here */

