1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details:
13
* Copyright (C) 2013 Google Inc.
16
#ifndef MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H
17
#define MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H
19
#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION)
20
#error "Only <libmm-glib.h> can be included directly."
23
#include <ModemManager.h>
24
#include <glib-object.h>
28
#define MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES (mm_cdma_manual_activation_properties_get_type ())
29
#define MM_CDMA_MANUAL_ACTIVATION_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES, MMCdmaManualActivationProperties))
30
#define MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES, MMCdmaManualActivationPropertiesClass))
31
#define MM_IS_CDMA_MANUAL_ACTIVATION_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES))
32
#define MM_IS_CDMA_MANUAL_ACTIVATION_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES))
33
#define MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_CDMA_MANUAL_ACTIVATION_PROPERTIES, MMCdmaManualActivationPropertiesClass))
35
typedef struct _MMCdmaManualActivationProperties MMCdmaManualActivationProperties;
36
typedef struct _MMCdmaManualActivationPropertiesClass MMCdmaManualActivationPropertiesClass;
37
typedef struct _MMCdmaManualActivationPropertiesPrivate MMCdmaManualActivationPropertiesPrivate;
40
* MMCdmaManualActivationProperties:
42
* The #MMCdmaManualActivationProperties structure contains private data and should only be accessed
43
* using the provided API.
45
struct _MMCdmaManualActivationProperties {
48
MMCdmaManualActivationPropertiesPrivate *priv;
51
struct _MMCdmaManualActivationPropertiesClass {
56
GType mm_cdma_manual_activation_properties_get_type (void);
58
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new (void);
60
gboolean mm_cdma_manual_activation_properties_set_spc (MMCdmaManualActivationProperties *self,
63
void mm_cdma_manual_activation_properties_set_sid (MMCdmaManualActivationProperties *self,
65
gboolean mm_cdma_manual_activation_properties_set_mdn (MMCdmaManualActivationProperties *self,
68
gboolean mm_cdma_manual_activation_properties_set_min (MMCdmaManualActivationProperties *self,
71
gboolean mm_cdma_manual_activation_properties_set_mn_ha_key (MMCdmaManualActivationProperties *self,
72
const gchar *mn_ha_key,
74
gboolean mm_cdma_manual_activation_properties_set_mn_aaa_key (MMCdmaManualActivationProperties *self,
75
const gchar *mn_aaa_key,
77
gboolean mm_cdma_manual_activation_properties_set_prl (MMCdmaManualActivationProperties *self,
81
gboolean mm_cdma_manual_activation_properties_set_prl_bytearray (MMCdmaManualActivationProperties *self,
85
const gchar *mm_cdma_manual_activation_properties_get_spc (MMCdmaManualActivationProperties *self);
86
guint16 mm_cdma_manual_activation_properties_get_sid (MMCdmaManualActivationProperties *self);
87
const gchar *mm_cdma_manual_activation_properties_get_mdn (MMCdmaManualActivationProperties *self);
88
const gchar *mm_cdma_manual_activation_properties_get_min (MMCdmaManualActivationProperties *self);
89
const gchar *mm_cdma_manual_activation_properties_get_mn_ha_key (MMCdmaManualActivationProperties *self);
90
const gchar *mm_cdma_manual_activation_properties_get_mn_aaa_key (MMCdmaManualActivationProperties *self);
91
const guint8 *mm_cdma_manual_activation_properties_get_prl (MMCdmaManualActivationProperties *self,
93
GByteArray *mm_cdma_manual_activation_properties_peek_prl_bytearray (MMCdmaManualActivationProperties *self);
94
GByteArray *mm_cdma_manual_activation_properties_get_prl_bytearray (MMCdmaManualActivationProperties *self);
96
/*****************************************************************************/
97
/* ModemManager/libmm-glib/mmcli specific methods */
99
#if defined (_LIBMM_INSIDE_MM) || \
100
defined (_LIBMM_INSIDE_MMCLI) || \
101
defined (LIBMM_GLIB_COMPILATION)
103
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new_from_string (const gchar *str,
105
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new_from_dictionary (GVariant *dictionary,
107
GVariant *mm_cdma_manual_activation_properties_get_dictionary (MMCdmaManualActivationProperties *self);
113
#endif /* MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H */