blob: 57c99c2273d390b07a90c4331e5afb94482f688e [file] [log] [blame]
San Mehat8d3fc3f2009-05-12 14:36:32 -07001/*
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 _ERRORCODE_H
18#define _ERRORCODE_H
19
20class ErrorCode {
21public:
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 Mehat82a21162009-05-12 17:26:28 -070026 static const int WifiScanResult = 125;
27 static const int WifiNetworkList = 126;
28
San Mehat5d6d4172009-05-14 15:00:06 -070029 static const int VariableRead = 127;
30 static const int VariableWrite = 128;
31
San Mehat8d3fc3f2009-05-12 14:36:32 -070032 // 200 series - Requested action has been successfully completed
33 static const int CommandOkay = 200;
34
35 // 400 series - The command was accepted but the requested action
36 // did not take place.
37 static const int OperationFailed = 400;
38
39 // 500 series - The command was not accepted and the requested
40 // action did not take place.
41 static const int CommandSyntaxError = 500;
San Mehat82a21162009-05-12 17:26:28 -070042 static const int CommandParameterError = 501;
San Mehat8d3fc3f2009-05-12 14:36:32 -070043
44 // 600 series - Unsolicited broadcasts
45 static const int UnsolicitedInformational = 600;
46};
47#endif