Knox Tizen Wearable SDK
apn.h
1 /*
2  * Copyright (c) 2000-2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of
7  * SAMSUNG ELECTRONICS ("Confidential Information").
8  * You shall not disclose such Confidential Information and shall
9  * use it only in accordance with the terms of the license agreement
10  * you entered into with SAMSUNG ELECTRONICS.
11  * SAMSUNG make no representations or warranties about the suitability
12  * of the software, either express or implied, including but not
13  * limited to the implied warranties of merchantability, fitness for
14  * a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as
16  * a result of using, modifying or distributing this software or its derivatives.
17  */
18 
19 #ifndef LIBMDM_MDM_APN_H
20 #define LIBMDM_MDM_APN_H
21 
22 #include "mdm_client_type.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
38 typedef enum {
43 
50 typedef struct _apn_settings_t {
51  int id;
52  int authType;
54  char *p_profileName;
55  char *p_apn;
56  char *p_mcc;
57  char *p_mmsPort;
58  char *p_mmsProxy;
59  char *p_mmsc;
60  char *p_mnc;
61  char *p_name;
62  char *p_password;
63  char *p_proxy;
64  char *p_server;
65  char *p_type;
66  char *p_user;
68 
135 MDM_DEPRECATED_API mdm_result_t mdm_create_apn_settings(mdm_apn_auth_type_t authType, char *p_apn, char *p_proxy, char *p_user,
136  char *p_password, char *p_type);
137 
213 MDM_DEPRECATED_API mdm_result_t mdm_delete_apn(int n_id);
214 
286 MDM_DEPRECATED_API mdm_data_t *mdm_get_apn_list(void);
287 
351 MDM_DEPRECATED_API mdm_data_t *mdm_get_apn_settings(int n_id);
352 
417 MDM_DEPRECATED_API mdm_data_t *mdm_get_preferred_apn_settings(void);
418 
501 MDM_DEPRECATED_API mdm_result_t mdm_set_preferred_apn(int n_id);
502 
568 MDM_DEPRECATED_API mdm_result_t mdm_update_apn_settings(int n_id, mdm_apn_auth_type_t authType, char *p_apn, char *p_proxy, char *p_user,
569  char *p_password, char *p_type);
570 
575 #ifdef __cplusplus
576 }
577 #endif
578 
579 #endif // LIBMDM_MDM_APN_H
char * p_mcc
Definition: apn.h:56
char * p_server
Definition: apn.h:64
mdm_result_t mdm_create_apn_settings(mdm_apn_auth_type_t authType, char *p_apn, char *p_proxy, char *p_user, char *p_password, char *p_type)
API to create an APN setting.
mdm_result_t mdm_delete_apn(int n_id)
API to delete an APN setting.
This structure is used to store GList.
mdm_result_t mdm_set_preferred_apn(int n_id)
API to set the preferred APN.
char * p_type
Definition: apn.h:65
char * p_password
Definition: apn.h:62
Apn settings.
Definition: apn.h:50
char * p_proxy
Definition: apn.h:63
mdm_data_t * mdm_get_apn_settings(int n_id)
API to get the settings for a particular APN.
mdm_result_t mdm_update_apn_settings(int n_id, mdm_apn_auth_type_t authType, char *p_apn, char *p_proxy, char *p_user, char *p_password, char *p_type)
API to update an APN setting.
char * p_name
Definition: apn.h:61
mdm_apn_auth_type_t
APN auth type.
Definition: apn.h:38
char * p_user
Definition: apn.h:66
char * p_mmsPort
Definition: apn.h:57
char * p_mmsc
Definition: apn.h:59
mdm_result_t
MDM API result.
char * p_apn
Definition: apn.h:55
mdm_data_t * mdm_get_preferred_apn_settings(void)
API to get the user's preferred APN settings.
int authType
Definition: apn.h:52
char * p_mmsProxy
Definition: apn.h:58
mdm_data_t * mdm_get_apn_list(void)
API to get all of the APN settings from the device.
char * p_profileName
Definition: apn.h:54
char * p_mnc
Definition: apn.h:60