114cf0368Sopenharmony_ci/*
214cf0368Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
314cf0368Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
414cf0368Sopenharmony_ci * you may not use this file except in compliance with the License.
514cf0368Sopenharmony_ci * You may obtain a copy of the License at
614cf0368Sopenharmony_ci *
714cf0368Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
814cf0368Sopenharmony_ci *
914cf0368Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1014cf0368Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1114cf0368Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1214cf0368Sopenharmony_ci * See the License for the specific language governing permissions and
1314cf0368Sopenharmony_ci * limitations under the License.
1414cf0368Sopenharmony_ci */
1514cf0368Sopenharmony_ci
1614cf0368Sopenharmony_ci#ifndef UDMF_SYSTEM_DEFINED_APPITEM_H
1714cf0368Sopenharmony_ci#define UDMF_SYSTEM_DEFINED_APPITEM_H
1814cf0368Sopenharmony_ci
1914cf0368Sopenharmony_ci#include "system_defined_record.h"
2014cf0368Sopenharmony_ci#include "visibility.h"
2114cf0368Sopenharmony_ci
2214cf0368Sopenharmony_cinamespace OHOS {
2314cf0368Sopenharmony_cinamespace UDMF {
2414cf0368Sopenharmony_ciclass API_EXPORT SystemDefinedAppItem : public SystemDefinedRecord {
2514cf0368Sopenharmony_cipublic:
2614cf0368Sopenharmony_ci    SystemDefinedAppItem();
2714cf0368Sopenharmony_ci    SystemDefinedAppItem(UDType type, ValueType value);
2814cf0368Sopenharmony_ci
2914cf0368Sopenharmony_ci    int64_t GetSize() override;
3014cf0368Sopenharmony_ci
3114cf0368Sopenharmony_ci    std::string GetAppId() const;
3214cf0368Sopenharmony_ci    void SetAppId(const std::string &appId);
3314cf0368Sopenharmony_ci    std::string GetAppName() const;
3414cf0368Sopenharmony_ci    void SetAppName(const std::string &appName);
3514cf0368Sopenharmony_ci    std::string GetAppIconId() const;
3614cf0368Sopenharmony_ci    void SetAppIconId(const std::string &appIconId);
3714cf0368Sopenharmony_ci    std::string GetAppLabelId() const;
3814cf0368Sopenharmony_ci    void SetAppLabelId(const std::string &appLabelId);
3914cf0368Sopenharmony_ci    std::string GetBundleName() const;
4014cf0368Sopenharmony_ci    void SetBundleName(const std::string &bundleName);
4114cf0368Sopenharmony_ci    std::string GetAbilityName() const;
4214cf0368Sopenharmony_ci    void SetAbilityName(const std::string &abilityName);
4314cf0368Sopenharmony_ci    void SetItems(UDDetails &details);
4414cf0368Sopenharmony_ci    UDDetails GetItems();
4514cf0368Sopenharmony_ci    void InitObject() override;
4614cf0368Sopenharmony_ci
4714cf0368Sopenharmony_ci    static bool CheckValue(const ValueType &value);
4814cf0368Sopenharmony_ciprivate:
4914cf0368Sopenharmony_ci    std::string appId_;
5014cf0368Sopenharmony_ci    std::string appName_;
5114cf0368Sopenharmony_ci    std::string appIconId_;
5214cf0368Sopenharmony_ci    std::string appLabelId_;
5314cf0368Sopenharmony_ci    std::string bundleName_;
5414cf0368Sopenharmony_ci    std::string abilityName_;
5514cf0368Sopenharmony_ci};
5614cf0368Sopenharmony_ci} // namespace UDMF
5714cf0368Sopenharmony_ci} // namespace OHOS
5814cf0368Sopenharmony_ci#endif // UDMF_SYSTEM_DEFINED_APPITEM_H
59