1 /* 2 * Copyright (C) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef VIBRATE_TYPE_H 17 #define VIBRATE_TYPE_H 18 19 namespace OHOS { 20 namespace Media { 21 // vibrate system default setting 22 enum VibrateType : int32_t { 23 VIBRATE_TYPE_INVALID = -1, 24 VIBRATE_TYPE_STANDARD = 1, 25 VIBRATE_TYPE_GENTLE, 26 VIBRATE_TYPE_SALARM, 27 VIBRATE_TYPE_SRINGTONE, 28 VIBRATE_TYPE_SNOTIFICATION, 29 VIBRATE_TYPE_GALARM, 30 VIBRATE_TYPE_GRINGTONE, 31 VIBRATE_TYPE_GNOTIFICATION, 32 VIBRATE_TYPE_MAX, 33 }; 34 35 enum VibratePlayMode : int32_t { 36 VIBRATE_PLAYMODE_NONE = 0, 37 VIBRATE_PLAYMODE_SYNC, 38 VIBRATE_PLAYMODE_CLASSIC, 39 }; 40 41 // default value 42 const int32_t VIBRATE_ID_DEFAULT = -1; 43 const std::string DISPLAY_LANGUAGE_DEFAULT = ""; 44 const int32_t VIBRATE_TYPE_DEFAULT = -1; 45 46 /** Supported vibrate types */ 47 const std::string VIBRATE_CONTAINER_TYPE_JSON = "json"; 48 } // namespace Media 49 } // namespace OHOS 50 51 #endif // VIBRATE_TYPE_H 52