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