ResponseCode.h revision d5573d34c8fac49e16b20cf144486125bf940086
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;
28d5573d34c8fac49e16b20cf144486125bf940086San Mehat    static const int TtyListResult             = 113;
29d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
30d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
31d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 200 series - Requested action has been successfully completed
32d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandOkay              = 200;
339d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int TetherStatusResult       = 210;
349d10b341a0ba46f108cb96e46691197d778cbc06San Mehat    static const int IpFwdStatusResult        = 211;
35d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
36d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 400 series - The command was accepted but the requested action
37d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // did not take place.
38d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int OperationFailed = 400;
39d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
40d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 500 series - The command was not accepted and the requested
41d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // action did not take place.
42d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandSyntaxError = 500;
43d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    static const int CommandParameterError = 501;
44d18304287dbabc7835be771400b85d4ae8b63de6San Mehat
45d18304287dbabc7835be771400b85d4ae8b63de6San Mehat    // 600 series - Unsolicited broadcasts
46d18304287dbabc7835be771400b85d4ae8b63de6San Mehat};
47d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#endif
48