San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [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 | |
San Mehat | c4a895b | 2009-06-23 21:10:57 -0700 | [diff] [blame] | 17 | #ifndef _RESPONSECODE_H |
| 18 | #define _RESPONSECODE_H |
San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [diff] [blame] | 19 | |
San Mehat | c4a895b | 2009-06-23 21:10:57 -0700 | [diff] [blame] | 20 | class ResponseCode { |
San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [diff] [blame] | 21 | public: |
| 22 | // 100 series - Requestion action was initiated; expect another reply |
| 23 | // before proceeding with a new command. |
| 24 | static const int ActionInitiated = 100; |
| 25 | |
San Mehat | 82a2116 | 2009-05-12 17:26:28 -0700 | [diff] [blame] | 26 | static const int WifiScanResult = 125; |
| 27 | static const int WifiNetworkList = 126; |
| 28 | |
San Mehat | 3c5a6f0 | 2009-05-22 15:36:13 -0700 | [diff] [blame] | 29 | static const int PropertyRead = 127; |
| 30 | static const int PropertySet = 128; |
| 31 | static const int PropertyList = 129; |
San Mehat | 5d6d417 | 2009-05-14 15:00:06 -0700 | [diff] [blame] | 32 | |
San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [diff] [blame] | 33 | // 200 series - Requested action has been successfully completed |
| 34 | static const int CommandOkay = 200; |
| 35 | |
| 36 | // 400 series - The command was accepted but the requested action |
| 37 | // did not take place. |
| 38 | static const int OperationFailed = 400; |
| 39 | |
| 40 | // 500 series - The command was not accepted and the requested |
| 41 | // action did not take place. |
| 42 | static const int CommandSyntaxError = 500; |
San Mehat | 82a2116 | 2009-05-12 17:26:28 -0700 | [diff] [blame] | 43 | static const int CommandParameterError = 501; |
San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [diff] [blame] | 44 | |
| 45 | // 600 series - Unsolicited broadcasts |
| 46 | static const int UnsolicitedInformational = 600; |
San Mehat | c4a895b | 2009-06-23 21:10:57 -0700 | [diff] [blame] | 47 | static const int DhcpStateChange = 605; |
| 48 | static const int SupplicantStateChange = 610; |
| 49 | static const int ScanResultsReady = 615; |
| 50 | static const int LinkSpeedChange = 620; |
| 51 | static const int RssiChange = 625; |
San Mehat | 8d3fc3f | 2009-05-12 14:36:32 -0700 | [diff] [blame] | 52 | }; |
| 53 | #endif |