ResponseCode.h revision 9d10b341a0ba46f108cb96e46691197d778cbc06
1d18304287dbabc7835be771400b85d4ae8b63de6San Mehat/*
2d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Copyright (C) 2008 The Android Open Source Project
3d18304287dbabc7835be771400b85d4ae8b63de6San Mehat *
4d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Licensed under the Apache License, Version 2.0 (the "License");
5d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * you may not use this file except in compliance with the License.
6d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * You may obtain a copy of the License at
7d18304287dbabc7835be771400b85d4ae8b63de6San Mehat *
8d18304287dbabc7835be771400b85d4ae8b63de6San Mehat *      http://www.apache.org/licenses/LICENSE-2.0
9d18304287dbabc7835be771400b85d4ae8b63de6San Mehat *
10d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Unless required by applicable law or agreed to in writing, software
11d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * distributed under the License is distributed on an "AS IS" BASIS,
12d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * See the License for the specific language governing permissions and
14d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * limitations under the License.
15d18304287dbabc7835be771400b85d4ae8b63de6San Mehat */
16d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
17d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#ifndef _RESPONSECODE_H
18d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#define _RESPONSECODE_H
19d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
20d18304287dbabc7835be771400b85d4ae8b63de6San Mehatclass ResponseCode {
21d18304287dbabc7835be771400b85d4ae8b63de6San Mehatpublic:
22d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 100 series - Requestion action was initiated; expect another reply
23d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // before proceeding with a new command.
249d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int ActionInitiated           = 100;
259d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int InterfaceListResult       = 110;
269d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int TetherInterfaceListResult = 111;
279d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int TetherDnsFwdTgtListResult = 112;
28d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
29d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
30d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 200 series - Requested action has been successfully completed
31d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandOkay              = 200;
329d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int TetherStatusResult       = 210;
339d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int IpFwdStatusResult        = 211;
34d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
35d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 400 series - The command was accepted but the requested action
36d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // did not take place.
37d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int OperationFailed = 400;
38d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
39d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 500 series - The command was not accepted and the requested
40d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // action did not take place.
41d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandSyntaxError = 500;
42d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandParameterError = 501;
43d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
44d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 600 series - Unsolicited broadcasts
45d18304287dbabc7835be771400b85d4ae8b63de6San Mehat};
46d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#endif
47