1c29fa5a6Sopenharmony_ci/* 2c29fa5a6Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 3c29fa5a6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4c29fa5a6Sopenharmony_ci * you may not use this file except in compliance with the License. 5c29fa5a6Sopenharmony_ci * You may obtain a copy of the License at 6c29fa5a6Sopenharmony_ci * 7c29fa5a6Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8c29fa5a6Sopenharmony_ci * 9c29fa5a6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10c29fa5a6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11c29fa5a6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12c29fa5a6Sopenharmony_ci * See the License for the specific language governing permissions and 13c29fa5a6Sopenharmony_ci * limitations under the License. 14c29fa5a6Sopenharmony_ci */ 15c29fa5a6Sopenharmony_ci 16c29fa5a6Sopenharmony_ci#ifndef INTENTION_SERVICE_H 17c29fa5a6Sopenharmony_ci#define INTENTION_SERVICE_H 18c29fa5a6Sopenharmony_ci 19c29fa5a6Sopenharmony_ci#include "nocopyable.h" 20c29fa5a6Sopenharmony_ci 21c29fa5a6Sopenharmony_ci#include "cooperate_server.h" 22c29fa5a6Sopenharmony_ci#include "drag_server.h" 23c29fa5a6Sopenharmony_ci#include "intention_stub.h" 24c29fa5a6Sopenharmony_ci#include "i_context.h" 25c29fa5a6Sopenharmony_ci#include "socket_server.h" 26c29fa5a6Sopenharmony_ci#include "stationary_server.h" 27c29fa5a6Sopenharmony_ci 28c29fa5a6Sopenharmony_cinamespace OHOS { 29c29fa5a6Sopenharmony_cinamespace Msdp { 30c29fa5a6Sopenharmony_cinamespace DeviceStatus { 31c29fa5a6Sopenharmony_ciclass IntentionService final : public IntentionStub { 32c29fa5a6Sopenharmony_cipublic: 33c29fa5a6Sopenharmony_ci IntentionService(IContext *context); 34c29fa5a6Sopenharmony_ci ~IntentionService() = default; 35c29fa5a6Sopenharmony_ci DISALLOW_COPY_AND_MOVE(IntentionService); 36c29fa5a6Sopenharmony_ci 37c29fa5a6Sopenharmony_ciprivate: 38c29fa5a6Sopenharmony_ci int32_t Enable(Intention intention, MessageParcel &data, MessageParcel &reply) override; 39c29fa5a6Sopenharmony_ci int32_t Disable(Intention intention, MessageParcel &data, MessageParcel &reply) override; 40c29fa5a6Sopenharmony_ci int32_t Start(Intention intention, MessageParcel &data, MessageParcel &reply) override; 41c29fa5a6Sopenharmony_ci int32_t Stop(Intention intention, MessageParcel &data, MessageParcel &reply) override; 42c29fa5a6Sopenharmony_ci int32_t Control(Intention intention, uint32_t id, MessageParcel &data, MessageParcel &reply) override; 43c29fa5a6Sopenharmony_ci int32_t AddWatch(Intention intention, uint32_t id, MessageParcel &data, MessageParcel &reply) override; 44c29fa5a6Sopenharmony_ci int32_t RemoveWatch(Intention intention, uint32_t id, MessageParcel &data, MessageParcel &reply) override; 45c29fa5a6Sopenharmony_ci int32_t SetParam(Intention intention, uint32_t id, MessageParcel &data, MessageParcel &reply) override; 46c29fa5a6Sopenharmony_ci int32_t GetParam(Intention intention, uint32_t id, MessageParcel &data, MessageParcel &reply) override; 47c29fa5a6Sopenharmony_ci 48c29fa5a6Sopenharmony_ci IPlugin* LoadPlugin(Intention intention); 49c29fa5a6Sopenharmony_ci 50c29fa5a6Sopenharmony_ciprivate: 51c29fa5a6Sopenharmony_ci IContext *context_ { nullptr }; 52c29fa5a6Sopenharmony_ci SocketServer socketServer_; 53c29fa5a6Sopenharmony_ci StationaryServer stationary_; 54c29fa5a6Sopenharmony_ci CooperateServer cooperate_; 55c29fa5a6Sopenharmony_ci DragServer drag_; 56c29fa5a6Sopenharmony_ci}; 57c29fa5a6Sopenharmony_ci} // namespace DeviceStatus 58c29fa5a6Sopenharmony_ci} // namespace Msdp 59c29fa5a6Sopenharmony_ci} // namespace OHOS 60c29fa5a6Sopenharmony_ci#endif // INTENTION_SERVICE_H 61