San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 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 | #ifndef _RESPONSECODE_H |
| 18 | #define _RESPONSECODE_H |
| 19 | |
| 20 | class ResponseCode { |
| 21 | public: |
| 22 | // 100 series - Requestion action was initiated; expect another reply |
| 23 | // before proceeding with a new command. |
San Mehat | 9d10b34 | 2010-01-18 09:51:02 -0800 | [diff] [blame] | 24 | static const int ActionInitiated = 100; |
| 25 | static const int InterfaceListResult = 110; |
| 26 | static const int TetherInterfaceListResult = 111; |
| 27 | static const int TetherDnsFwdTgtListResult = 112; |
San Mehat | d5573d3 | 2010-01-19 17:19:41 -0800 | [diff] [blame] | 28 | static const int TtyListResult = 113; |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 29 | |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 30 | |
| 31 | // 200 series - Requested action has been successfully completed |
| 32 | static const int CommandOkay = 200; |
San Mehat | 9d10b34 | 2010-01-18 09:51:02 -0800 | [diff] [blame] | 33 | static const int TetherStatusResult = 210; |
| 34 | static const int IpFwdStatusResult = 211; |
San Mehat | 1bdac9e | 2010-01-21 14:03:06 -0800 | [diff] [blame] | 35 | static const int PanStatusResult = 212; |
San Mehat | 01fed78 | 2010-01-23 06:47:59 -0800 | [diff] [blame] | 36 | static const int InterfaceGetCfgResult = 213; |
Dmitry Shmidt | 5af38c3 | 2010-02-10 11:10:39 -0800 | [diff] [blame] | 37 | static const int SoftapStatusResult = 214; |
Robert Greenwalt | 67c5753 | 2010-02-17 17:42:37 -0800 | [diff] [blame^] | 38 | static const int UsbRNDISStatusResult = 215; |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 39 | |
| 40 | // 400 series - The command was accepted but the requested action |
| 41 | // did not take place. |
| 42 | static const int OperationFailed = 400; |
| 43 | |
| 44 | // 500 series - The command was not accepted and the requested |
| 45 | // action did not take place. |
| 46 | static const int CommandSyntaxError = 500; |
| 47 | static const int CommandParameterError = 501; |
| 48 | |
| 49 | // 600 series - Unsolicited broadcasts |
Robert Greenwalt | 67c5753 | 2010-02-17 17:42:37 -0800 | [diff] [blame^] | 50 | static const int InterfaceChange = 600; |
San Mehat | d183042 | 2010-01-15 08:02:39 -0800 | [diff] [blame] | 51 | }; |
| 52 | #endif |