Home | History | Annotate | Download | only in telephony
      1 /*
      2  * Copyright (C) 2010 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.internal.telephony;
     18 
     19 public class UUSInfo {
     20 
     21     /*
     22      * User-to-User signaling Info activation types derived from 3GPP 23.087
     23      * v8.0
     24      */
     25 
     26     public static final int UUS_TYPE1_IMPLICIT = 0;
     27 
     28     public static final int UUS_TYPE1_REQUIRED = 1;
     29 
     30     public static final int UUS_TYPE1_NOT_REQUIRED = 2;
     31 
     32     public static final int UUS_TYPE2_REQUIRED = 3;
     33 
     34     public static final int UUS_TYPE2_NOT_REQUIRED = 4;
     35 
     36     public static final int UUS_TYPE3_REQUIRED = 5;
     37 
     38     public static final int UUS_TYPE3_NOT_REQUIRED = 6;
     39 
     40     /*
     41      * User-to-User Signaling Information data coding schemes. Possible values
     42      * for Octet 3 (Protocol Discriminator field) in the UUIE. The values have
     43      * been specified in section 10.5.4.25 of 3GPP TS 24.008
     44      */
     45 
     46     public static final int UUS_DCS_USP = 0; /* User specified protocol */
     47 
     48     public static final int UUS_DCS_OSIHLP = 1; /* OSI higher layer protocol */
     49 
     50     public static final int UUS_DCS_X244 = 2; /* X.244 */
     51 
     52     public static final int UUS_DCS_RMCF = 3; /*
     53                                                * Reserved for system management
     54                                                * convergence function
     55                                                */
     56 
     57     public static final int UUS_DCS_IA5c = 4; /* IA5 characters */
     58 
     59     private int uusType;
     60 
     61     private int uusDcs;
     62 
     63     private byte[] uusData;
     64 
     65     public UUSInfo() {
     66         this.uusType = UUS_TYPE1_IMPLICIT;
     67         this.uusDcs = UUS_DCS_IA5c;
     68         this.uusData = null;
     69     }
     70 
     71     public UUSInfo(int uusType, int uusDcs, byte[] uusData) {
     72         this.uusType = uusType;
     73         this.uusDcs = uusDcs;
     74         this.uusData = uusData;
     75     }
     76 
     77     public int getDcs() {
     78         return uusDcs;
     79     }
     80 
     81     public void setDcs(int uusDcs) {
     82         this.uusDcs = uusDcs;
     83     }
     84 
     85     public int getType() {
     86         return uusType;
     87     }
     88 
     89     public void setType(int uusType) {
     90         this.uusType = uusType;
     91     }
     92 
     93     public byte[] getUserData() {
     94         return uusData;
     95     }
     96 
     97     public void setUserData(byte[] uusData) {
     98         this.uusData = uusData;
     99     }
    100 }
    101