blob: bb27787f09fdbd65c03852f40a6c73e0de89d490 [file] [log] [blame]
San Mehatd1830422010-01-15 08:02:39 -08001/*
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 _RESPONSECODE_H
18#define _RESPONSECODE_H
19
20class ResponseCode {
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
26 static const int VolumeListResult = 110;
27 static const int AsecListResult = 111;
28
29 // 200 series - Requested action has been successfully completed
30 static const int CommandOkay = 200;
31 static const int ShareAvailabilityResult = 210;
32 static const int AsecPathResult = 211;
33
34 // 400 series - The command was accepted but the requested action
35 // did not take place.
36 static const int OperationFailed = 400;
37
38 // 500 series - The command was not accepted and the requested
39 // action did not take place.
40 static const int CommandSyntaxError = 500;
41 static const int CommandParameterError = 501;
42
43 // 600 series - Unsolicited broadcasts
44 static const int UnsolicitedInformational = 600;
45 static const int VolumeStateChange = 605;
46 static const int VolumeMountFailedBlank = 610;
47 static const int VolumeMountFailedDamaged = 611;
48 static const int VolumeMountFailedNoMedia = 612;
49
50 static const int ShareAvailabilityChange = 620;
51
52 static const int VolumeDiskInserted = 630;
53 static const int VolumeDiskRemoved = 631;
54 static const int VolumeBadRemoval = 632;
55};
56#endif