• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2008 Esmertec AG.
3  * Copyright (C) 2008 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 package com.android.im.plugin;
18 
19 /**
20  * Defines the configuration names for IMPS engine.
21  */
22 public interface ImpsConfigNames extends ImConfigNames {
23 
24     /**
25      * The version of the protocol.
26      */
27     public static final String VERSION = "imps.version";
28 
29     /**
30      * The data channel banding.
31      */
32     public static final String DATA_CHANNEL = "imps.data-channel";
33 
34     /**
35      * The data channel encoding.
36      */
37     public static final String DATA_ENCODING = "imps.data-encoding";
38 
39     /**
40      * The CIR channel banding.
41      */
42     public static final String CIR_CHANNEL = "imps.cir-channel";
43 
44     /**
45      * The backup CIR channel used when the application is in background.
46      */
47     public static final String BACKUP_CIR_CHANNEL = "imps.backup-cir-channel";
48 
49     /**
50      * The host of the IMPS server.
51      */
52     public static final String HOST = "imps.host";
53 
54     /**
55      * The address for SMS binding.
56      */
57     public static final String SMS_ADDR = "imps.sms.addr";
58 
59     /**
60      * The port number for SMS binding.
61      */
62     public static final String SMS_PORT = "imps.sms.port";
63 
64     /**
65      * The address for the SMS CIR channel.
66      */
67     public static final String SMS_CIR_ADDR = "imps.sms.cir.addr";
68 
69     /**
70      * The port number for SMS CIR channel.
71      */
72     public static final String SMS_CIR_PORT = "imps.sms.cir.port";
73 
74     /**
75      * The client ID.
76      */
77     public static final String CLIENT_ID = "imps.client-id";
78 
79     /**
80      * The MSISDN of the client.
81      */
82     public static final String MSISDN = "imps.msisdn";
83 
84     /**
85      * Determines whether 4-way login is to be used.
86      */
87     public static final String SECURE_LOGIN = "imps.secure-login";
88 
89     /**
90      * Determines whether to send authentication through sms or not.
91      */
92     public static final String SMS_AUTH = "imps.sms-auth";
93 
94     /**
95      * Determines whether only the basic presence will be fetched from the server.
96      */
97     public static final String BASIC_PA_ONLY = "imps.basic-pa-only";
98 
99     /**
100      * Determines whether to poll presence from the server or use subscribe/notify
101      * method.
102      */
103     public static final String POLL_PRESENCE = "imps.poll-presence";
104 
105     /**
106      * The presence polling interval in milliseconds. Only valid when
107      * {@link #POLL_PRESENCE} is set to true.
108      */
109     public static final String PRESENCE_POLLING_INTERVAL = "imps.presence-polling-interval";
110 
111     /**
112      * The full name of the custom presence mapping is to be used. If not set,
113      * the default one will be used.
114      */
115     public static final String CUSTOM_PRESENCE_MAPPING = "imps.custom-presence-mapping";
116 
117     /**
118      * The full name of the custom password digest method is to be used. If not
119      * set, the default one will be used.
120      */
121     public static final String CUSTOM_PASSWORD_DIGEST = "imps.custom-password-digest";
122 
123     /**
124      * Determines whether the provider support user-defined presence text.
125      */
126     public static final String SUPPORT_USER_DEFINED_PRESENCE = "imps.support-user-defined-presence";
127 }
128