blob: 3508f81689b9d0589f40ca721bc11fa92b5e0f01 [file] [log] [blame]
San Mehatf1b736b2009-10-10 17:22:08 -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
San Mehata2677e42009-12-13 10:40:18 -080017#ifndef _RESPONSECODE_H
18#define _RESPONSECODE_H
San Mehatf1b736b2009-10-10 17:22:08 -070019
San Mehata2677e42009-12-13 10:40:18 -080020class ResponseCode {
San Mehatf1b736b2009-10-10 17:22:08 -070021public:
22 // 100 series - Requestion action was initiated; expect another reply
23 // before proceeding with a new command.
San Mehata19b2502010-01-06 10:33:53 -080024 static const int ActionInitiated = 100;
San Mehatf1b736b2009-10-10 17:22:08 -070025
San Mehat586536c2010-02-16 17:12:00 -080026 static const int VolumeListResult = 110;
27 static const int AsecListResult = 111;
28 static const int StorageUsersListResult = 112;
San Mehatf1b736b2009-10-10 17:22:08 -070029
30 // 200 series - Requested action has been successfully completed
San Mehata19b2502010-01-06 10:33:53 -080031 static const int CommandOkay = 200;
San Mehateba65e92010-01-29 05:15:16 -080032 static const int ShareStatusResult = 210;
San Mehata19b2502010-01-06 10:33:53 -080033 static const int AsecPathResult = 211;
San Mehateba65e92010-01-29 05:15:16 -080034 static const int ShareEnabledResult = 212;
San Mehatf1b736b2009-10-10 17:22:08 -070035
36 // 400 series - The command was accepted but the requested action
37 // did not take place.
San Mehateba65e92010-01-29 05:15:16 -080038 static const int OperationFailed = 400;
39 static const int OpFailedNoMedia = 401;
40 static const int OpFailedMediaBlank = 402;
41 static const int OpFailedMediaCorrupt = 403;
42 static const int OpFailedVolNotMounted = 404;
43 static const int OpFailedVolBusy = 405;
San Mehatf1b736b2009-10-10 17:22:08 -070044
45 // 500 series - The command was not accepted and the requested
46 // action did not take place.
47 static const int CommandSyntaxError = 500;
48 static const int CommandParameterError = 501;
49
50 // 600 series - Unsolicited broadcasts
San Mehata2677e42009-12-13 10:40:18 -080051 static const int UnsolicitedInformational = 600;
52 static const int VolumeStateChange = 605;
53 static const int VolumeMountFailedBlank = 610;
54 static const int VolumeMountFailedDamaged = 611;
55 static const int VolumeMountFailedNoMedia = 612;
56
57 static const int ShareAvailabilityChange = 620;
58
59 static const int VolumeDiskInserted = 630;
60 static const int VolumeDiskRemoved = 631;
61 static const int VolumeBadRemoval = 632;
San Mehatf1b736b2009-10-10 17:22:08 -070062};
63#endif