• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 FRAMEWORKS_INPUTMETHOD_CONTROLLER_INCLUDE_INPUT_CLIENT_IMPL_H
17 #define FRAMEWORKS_INPUTMETHOD_CONTROLLER_INCLUDE_INPUT_CLIENT_IMPL_H
18 
19 #include "iinput_client.h"
20 #include "input_client_stub.h"
21 #include "iremote_object.h"
22 #include "notify_service_impl.h"
23 #include "on_input_stop_notify_proxy.h"
24 
25 namespace OHOS {
26 namespace MiscServices {
27 class InputClientServiceImpl final : public InputClientStub,
28     public std::enable_shared_from_this<InputClientServiceImpl> {
29     DISALLOW_COPY_AND_MOVE(InputClientServiceImpl);
30 
31 public:
32     InputClientServiceImpl();
33     ~InputClientServiceImpl();
34     ErrCode OnInputReady(const sptr<IRemoteObject> &agent, const BindImeInfo &imeInfo) override;
35     ErrCode OnInputStop(bool isStopInactiveClient, const sptr<IRemoteObject> &object) override;
36     ErrCode OnInputStopAsync(bool isStopInactiveClient) override;
37     ErrCode OnSwitchInput(const Property& property, const SubProperty& subProperty) override;
38     ErrCode OnPanelStatusChange(const uint32_t status, const ImeWindowInfo& info) override;
39     ErrCode NotifyInputStart(uint32_t callingWndId, int32_t requestKeyboardReason) override;
40     ErrCode NotifyInputStop() override;
41     ErrCode DeactivateClient() override;
42     ErrCode OnImeMirrorStop(const sptr<IRemoteObject> &object) override;
43 };
44 }  // namespace MiscServices
45 }  // namespace OHOS
46 #endif // FRAMEWORKS_INPUTMETHOD_CONTROLLER_INCLUDE_INPUT_CLIENT_IMPL_H