// Copyright 2010 Google Inc. All Rights Reserved.
// Author: wink@google.com (Wink Saville)

package ril_proto;

option java_package='com.android.internal.telephony.ril_proto';
option java_outer_classname='RilCtrlCmds';

import "ril.proto";

enum CtrlCmd {
  CTRL_CMD_ECHO = 0;
  CTRL_CMD_GET_RADIO_STATE      = 1;
  CTRL_CMD_SET_RADIO_STATE      = 2;
  CTRL_CMD_SET_MT_CALL          = 1001;
  CTRL_CMD_HANGUP_CONN_REMOTE   = 1002;
  CTRL_CMD_SET_CALL_TRANSITION_FLAG = 1003;
  CTRL_CMD_SET_CALL_ALERT           = 1004;
  CTRL_CMD_SET_CALL_ACTIVE          = 1005;
  CTRL_CMD_ADD_DIALING_CALL         = 1006;  // this command is for testing
}

enum CtrlStatus {
    CTRL_STATUS_OK = 0;
    CTRL_STATUS_ERR = 1;
}

// request of setting radio state
message CtrlReqRadioState {
  required ril_proto.RadioState state = 1;
}

// response of set/get radio state
message CtrlRspRadioState {
  required ril_proto.RadioState state = 1;
}

// 1001: request of creating an incoming call
message CtrlReqSetMTCall {
  required string phone_number         = 1;  // Phone number to display
}

// 1002: request of hangup a connection for the given disconnection cause
message CtrlHangupConnRemote {
  required int32 connection_id          = 1; // connection id
  required int32 call_fail_cause        = 2; // call failure cause
}

// 1003: set call transition flag: true for controlled transition
//                                 false for auto-transition
message CtrlSetCallTransitionFlag {
  required bool flag                    = 1;
}

// 1006: Add a dialing call
message CtrlReqAddDialingCall {
  required string phone_number          = 1; // phone number
}