1 /* 2 * Copyright (c) 2022 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 OHOS_MEMORY_MEMMGR_ACCOUNT_PRIORITY_INFO_H 17 #define OHOS_MEMORY_MEMMGR_ACCOUNT_PRIORITY_INFO_H 18 19 #include <string> 20 #include "os_account_info.h" 21 22 namespace OHOS { 23 namespace Memory { 24 class AccountPriorityInfo { 25 public: 26 AccountPriorityInfo(int id, std::string name, AccountSA::OsAccountType type, bool isActived); 27 int GetId(); 28 void SetId(int id); 29 std::string GetName(); 30 void SetName(std::string name); 31 AccountSA::OsAccountType GetType(); 32 void SetType(AccountSA::OsAccountType type); 33 bool GetIsActived(); 34 void SetIsActived(bool isActived); 35 int GetPriority(); 36 void SetPriority(int priority); 37 38 private: 39 int id_; 40 std::string name_; 41 AccountSA::OsAccountType type_; 42 bool isActived_; 43 int priority_; 44 }; 45 } // namespace Memory 46 } // namespace OHOS 47 48 #endif // OHOS_MEMORY_MEMMGR_ACCOUNT_PRIORITY_H