Home | History | Annotate | Download | only in cat
      1 /*
      2  * Copyright (C) 2007 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.cat;
     18 
     19 public class CatResponseMessage {
     20         CommandDetails mCmdDet = null;
     21         ResultCode mResCode  = ResultCode.OK;
     22         int mUsersMenuSelection = 0;
     23         String mUsersInput  = null;
     24         boolean mUsersYesNoSelection = false;
     25         boolean mUsersConfirm = false;
     26         boolean mIncludeAdditionalInfo = false;
     27         int mAdditionalInfo = 0;
     28         public CatResponseMessage(CatCmdMessage cmdMsg) {
     29             mCmdDet = cmdMsg.mCmdDet;
     30         }
     31 
     32         public void setResultCode(ResultCode resCode) {
     33             mResCode = resCode;
     34         }
     35 
     36         public void setMenuSelection(int selection) {
     37             mUsersMenuSelection = selection;
     38         }
     39 
     40         public void setInput(String input) {
     41             mUsersInput = input;
     42         }
     43 
     44         public void setYesNo(boolean yesNo) {
     45             mUsersYesNoSelection = yesNo;
     46         }
     47 
     48         public void setConfirmation(boolean confirm) {
     49             mUsersConfirm = confirm;
     50         }
     51 
     52         public void setAdditionalInfo(int info) {
     53             mIncludeAdditionalInfo = true;
     54             mAdditionalInfo = info;
     55         }
     56 
     57         CommandDetails getCmdDetails() {
     58             return mCmdDet;
     59         }
     60     }
     61