OMA enumerations and flags

## OMA enumerations and flags OMA enumerations and flags |

## Synopsis

    enum                QmiOmaSessionType;
    enum                QmiOmaSessionState;
    enum                QmiOmaSessionFailedReason;
    enum                QmiOmaHfaFeatureDoneState;

    const gchar *       qmi_oma_session_type_get_string     (QmiOmaSessionType val);
    const gchar *       qmi_oma_session_state_get_string    (QmiOmaSessionState val);
    const gchar *       qmi_oma_session_failed_reason_get_string
                                                            (QmiOmaSessionFailedReason val);
    const gchar *       qmi_oma_hfa_feature_done_state_get_string
                                                            (QmiOmaHfaFeatureDoneState val);

## Object Hierarchy

      GEnum
       +----QmiOmaSessionType

      GEnum
       +----QmiOmaSessionState

      GEnum
       +----QmiOmaSessionFailedReason

      GEnum
       +----QmiOmaHfaFeatureDoneState

## Description

This section defines enumerations and flags used in the OMA service interface.

## Details

### enum QmiOmaSessionType

    typedef enum {
        QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_DEVICE_CONFIGURE      = 0,
        QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_PRL_UPDATE            = 1,
        QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_HANDS_FREE_ACTIVATION = 2,
        QMI_OMA_SESSION_TYPE_DEVICE_INITIATED_HANDS_FREE_ACTIVATION = 3,
        QMI_OMA_SESSION_TYPE_NETWORK_INITIATED_PRL_UPDATE           = 4,
        QMI_OMA_SESSION_TYPE_NETWORK_INITIATED_DEVICE_CONFIGURE     = 5,
        QMI_OMA_SESSION_TYPE_DEVICE_INITIATED_PRL_UPDATE            = 6
    } QmiOmaSessionType;

Type of OMA-DM session.

`QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_DEVICE_CONFIGURE` | Client-initiated device configure.
`QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_PRL_UPDATE` | Client-initiated PRL update.
`QMI_OMA_SESSION_TYPE_CLIENT_INITIATED_HANDS_FREE_ACTIVATION` | Client-initiated hands free activation.
`QMI_OMA_SESSION_TYPE_DEVICE_INITIATED_HANDS_FREE_ACTIVATION` | Device-initiated hands free activation.
`QMI_OMA_SESSION_TYPE_NETWORK_INITIATED_PRL_UPDATE` | Network-initiated PRL update.
`QMI_OMA_SESSION_TYPE_NETWORK_INITIATED_DEVICE_CONFIGURE` | Network-initiated device configure.
`QMI_OMA_SESSION_TYPE_DEVICE_INITIATED_PRL_UPDATE` | Device-initiated PRL update.

### enum QmiOmaSessionState

    typedef enum {
        QMI_OMA_SESSION_STATE_COMPLETE_INFORMATION_UPDATED             = 0,
        QMI_OMA_SESSION_STATE_COMPLETE_UPDATED_INFORMATION_UNAVAILABLE = 1,
        QMI_OMA_SESSION_STATE_FAILED                                   = 2,
        QMI_OMA_SESSION_STATE_RETRYING                                 = 3,
        QMI_OMA_SESSION_STATE_CONNECTING                               = 4,
        QMI_OMA_SESSION_STATE_CONNECTED                                = 5,
        QMI_OMA_SESSION_STATE_AUTHENTICATED                            = 6,
        QMI_OMA_SESSION_STATE_MDN_DOWNLOADED                           = 7,
        QMI_OMA_SESSION_STATE_MSID_DOWNLOADED                          = 8,
        QMI_OMA_SESSION_STATE_PRL_DOWNLOADED                           = 9,
        QMI_OMA_SESSION_STATE_MIP_PROFILE_DOWNLOADED                   = 10
    } QmiOmaSessionState;

State of the OMA-DM session.

`QMI_OMA_SESSION_STATE_COMPLETE_INFORMATION_UPDATED` | Session complete and information updated.
`QMI_OMA_SESSION_STATE_COMPLETE_UPDATED_INFORMATION_UNAVAILABLE` | Session complete but updated information not available.
`QMI_OMA_SESSION_STATE_FAILED` | Session failed.
`QMI_OMA_SESSION_STATE_RETRYING` | Session retrying.
`QMI_OMA_SESSION_STATE_CONNECTING` | Session connecting.
`QMI_OMA_SESSION_STATE_CONNECTED` | Session connected.
`QMI_OMA_SESSION_STATE_AUTHENTICATED` | Session authenticated.
`QMI_OMA_SESSION_STATE_MDN_DOWNLOADED` | MDN downloaded.
`QMI_OMA_SESSION_STATE_MSID_DOWNLOADED` | MSID downloaded.
`QMI_OMA_SESSION_STATE_PRL_DOWNLOADED` | PRL downloaded.
`QMI_OMA_SESSION_STATE_MIP_PROFILE_DOWNLOADED` | MIP profile downloaded.

### enum QmiOmaSessionFailedReason

    typedef enum {
        QMI_OMA_SESSION_FAILED_REASON_UNKNOWN               = 0,
        QMI_OMA_SESSION_FAILED_REASON_NETWORK_UNAVAILABLE   = 1,
        QMI_OMA_SESSION_FAILED_REASON_SERVER_UNAVAILABLE    = 2,
        QMI_OMA_SESSION_FAILED_REASON_AUTHENTICATION_FAILED = 3,
        QMI_OMA_SESSION_FAILED_REASON_MAX_RETRY_EXCEEDED    = 4,
        QMI_OMA_SESSION_FAILED_REASON_SESSION_CANCELLED     = 5
    } QmiOmaSessionFailedReason;

Session failure reason.

`QMI_OMA_SESSION_FAILED_REASON_UNKNOWN` | Unknown reason.
`QMI_OMA_SESSION_FAILED_REASON_NETWORK_UNAVAILABLE` | Network unavailable.
`QMI_OMA_SESSION_FAILED_REASON_SERVER_UNAVAILABLE` | Server unavailable.
`QMI_OMA_SESSION_FAILED_REASON_AUTHENTICATION_FAILED` | Authentication failed.
`QMI_OMA_SESSION_FAILED_REASON_MAX_RETRY_EXCEEDED` | Maximum retries exceeded.
`QMI_OMA_SESSION_FAILED_REASON_SESSION_CANCELLED` | Session cancelled.

### enum QmiOmaHfaFeatureDoneState

    typedef enum {
        QMI_OMA_HFA_FEATURE_DONE_STATE_NONE      = 0,
        QMI_OMA_HFA_FEATURE_DONE_STATE_SUCCEEDED = 1,
        QMI_OMA_HFA_FEATURE_DONE_STATE_FAILED    = 2
    } QmiOmaHfaFeatureDoneState;

HFA feature done state.

`QMI_OMA_HFA_FEATURE_DONE_STATE_NONE` | None.
`QMI_OMA_HFA_FEATURE_DONE_STATE_SUCCEEDED` | Succeeded.
`QMI_OMA_HFA_FEATURE_DONE_STATE_FAILED` | Failed.

### qmi_oma_session_type_get_string ()

    const gchar *       qmi_oma_session_type_get_string     (QmiOmaSessionType val);

Gets the nickname string for the QmiOmaSessionType specified at `val`.

`val` : | a QmiOmaSessionType.
Returns : | a string with the nickname, or `NULL` if not found. Do not free the returned value. [transfer none]

### qmi_oma_session_state_get_string ()

    const gchar *       qmi_oma_session_state_get_string    (QmiOmaSessionState val);

Gets the nickname string for the QmiOmaSessionState specified at `val`.

`val` : | a QmiOmaSessionState.
Returns : | a string with the nickname, or `NULL` if not found. Do not free the returned value. [transfer none]

### qmi_oma_session_failed_reason_get_string ()

    const gchar *       qmi_oma_session_failed_reason_get_string
                                                            (QmiOmaSessionFailedReason val);

Gets the nickname string for the QmiOmaSessionFailedReason specified at `val`.

`val` : | a QmiOmaSessionFailedReason.
Returns : | a string with the nickname, or `NULL` if not found. Do not free the returned value. [transfer none]

### qmi_oma_hfa_feature_done_state_get_string ()

    const gchar *       qmi_oma_hfa_feature_done_state_get_string
                                                            (QmiOmaHfaFeatureDoneState val);

Gets the nickname string for the QmiOmaHfaFeatureDoneState specified at `val`.

`val` : | a QmiOmaHfaFeatureDoneState.
Returns : | a string with the nickname, or `NULL` if not found. Do not free the returned value. [transfer none]