~binli/ubuntu/vivid/modemmanager/lp1441095

« back to all changes in this revision

Viewing changes to libmm-glib/mm-cdma-manual-activation-properties.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Guido Günther, Michael Biebl
  • Date: 2014-06-25 02:23:09 UTC
  • mfrom: (20.2.2 sid)
  • Revision ID: package-import@ubuntu.com-20140625022309-43papaenj5ikbx3y
Tags: 1.2.0-1
[ Guido Günther ]
* New upstream version 1.2.0 (Closes: #731851)
* Update patches
* Install locale files
* Require newer libqmi
* Update symbols file
* Ship gobject introspection data
* Ship vala bindings

[ Michael Biebl ]
* Use canonical URI for Vcs-Git
* Use gir dh addon
* Update extendend package description (Closes: #744180)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 
2
/*
 
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.
 
7
 *
 
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:
 
12
 *
 
13
 * Copyright (C) 2013 Google Inc.
 
14
 */
 
15
 
 
16
#ifndef MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H
 
17
#define MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H
 
18
 
 
19
#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION)
 
20
#error "Only <libmm-glib.h> can be included directly."
 
21
#endif
 
22
 
 
23
#include <ModemManager.h>
 
24
#include <glib-object.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
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))
 
34
 
 
35
typedef struct _MMCdmaManualActivationProperties MMCdmaManualActivationProperties;
 
36
typedef struct _MMCdmaManualActivationPropertiesClass MMCdmaManualActivationPropertiesClass;
 
37
typedef struct _MMCdmaManualActivationPropertiesPrivate MMCdmaManualActivationPropertiesPrivate;
 
38
 
 
39
/**
 
40
 * MMCdmaManualActivationProperties:
 
41
 *
 
42
 * The #MMCdmaManualActivationProperties structure contains private data and should only be accessed
 
43
 * using the provided API.
 
44
 */
 
45
struct _MMCdmaManualActivationProperties {
 
46
    /*< private >*/
 
47
    GObject parent;
 
48
    MMCdmaManualActivationPropertiesPrivate *priv;
 
49
};
 
50
 
 
51
struct _MMCdmaManualActivationPropertiesClass {
 
52
    /*< private >*/
 
53
    GObjectClass parent;
 
54
};
 
55
 
 
56
GType mm_cdma_manual_activation_properties_get_type (void);
 
57
 
 
58
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new (void);
 
59
 
 
60
gboolean mm_cdma_manual_activation_properties_set_spc           (MMCdmaManualActivationProperties *self,
 
61
                                                                 const gchar *spc,
 
62
                                                                 GError **error);
 
63
void      mm_cdma_manual_activation_properties_set_sid          (MMCdmaManualActivationProperties *self,
 
64
                                                                 guint16 sid);
 
65
gboolean mm_cdma_manual_activation_properties_set_mdn           (MMCdmaManualActivationProperties *self,
 
66
                                                                 const gchar *mdn,
 
67
                                                                 GError **error);
 
68
gboolean mm_cdma_manual_activation_properties_set_min           (MMCdmaManualActivationProperties *self,
 
69
                                                                 const gchar *min,
 
70
                                                                 GError **error);
 
71
gboolean mm_cdma_manual_activation_properties_set_mn_ha_key     (MMCdmaManualActivationProperties *self,
 
72
                                                                 const gchar *mn_ha_key,
 
73
                                                                 GError **error);
 
74
gboolean mm_cdma_manual_activation_properties_set_mn_aaa_key    (MMCdmaManualActivationProperties *self,
 
75
                                                                 const gchar *mn_aaa_key,
 
76
                                                                 GError **error);
 
77
gboolean mm_cdma_manual_activation_properties_set_prl           (MMCdmaManualActivationProperties *self,
 
78
                                                                 const guint8 *prl,
 
79
                                                                 gsize prl_length,
 
80
                                                                 GError **error);
 
81
gboolean mm_cdma_manual_activation_properties_set_prl_bytearray (MMCdmaManualActivationProperties *self,
 
82
                                                                 GByteArray *prl,
 
83
                                                                 GError **error);
 
84
 
 
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,
 
92
                                                                       gsize *prl_len);
 
93
GByteArray   *mm_cdma_manual_activation_properties_peek_prl_bytearray (MMCdmaManualActivationProperties *self);
 
94
GByteArray   *mm_cdma_manual_activation_properties_get_prl_bytearray  (MMCdmaManualActivationProperties *self);
 
95
 
 
96
/*****************************************************************************/
 
97
/* ModemManager/libmm-glib/mmcli specific methods */
 
98
 
 
99
#if defined (_LIBMM_INSIDE_MM) ||    \
 
100
    defined (_LIBMM_INSIDE_MMCLI) || \
 
101
    defined (LIBMM_GLIB_COMPILATION)
 
102
 
 
103
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new_from_string (const gchar *str,
 
104
                                                                                        GError **error);
 
105
MMCdmaManualActivationProperties *mm_cdma_manual_activation_properties_new_from_dictionary (GVariant *dictionary,
 
106
                                                                                            GError **error);
 
107
GVariant *mm_cdma_manual_activation_properties_get_dictionary (MMCdmaManualActivationProperties *self);
 
108
 
 
109
#endif
 
110
 
 
111
G_END_DECLS
 
112
 
 
113
#endif /* MM_CDMA_MANUAL_ACTIVATION_PROPERTIES_H */