/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef AMS_ABILITY_VISIBALE_TEST_DATA #define AMS_ABILITY_VISIBALE_TEST_DATA #include "stpageabilityevent.h" #include #include #include #include "ability_connect_callback_stub.h" #include "ability_connect_callback_proxy.h" #include "abs_shared_result_set.h" #include "ability_loader.h" #include "data_ability_predicates.h" #include "values_bucket.h" #include "common_event.h" #include "common_event_manager.h" namespace OHOS { namespace AppExecFwk { class AmsAbilityVisibleTestData : public Ability { public: ~AmsAbilityVisibleTestData(); protected: virtual void OnStart(const Want &want) override; virtual int Insert(const Uri &uri, const NativeRdb::ValuesBucket &value) override; virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override; virtual int Update(const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) override; virtual std::shared_ptr Query(const Uri &uri, const std::vector &columns, const NativeRdb::DataAbilityPredicates &predicates) override; virtual std::vector GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) override; virtual int OpenFile(const Uri &uri, const std::string &mode) override; private: STPageAbilityEvent pageAbilityEvent; }; } // namespace AppExecFwk } // namespace OHOS #endif // AMS_ABILITY_VISIBALE_TEST_DATA