• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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_ROSEN_SCREEN_SESSION_MANAGER_LITE_PROXY_H
17 #define OHOS_ROSEN_SCREEN_SESSION_MANAGER_LITE_PROXY_H
18 
19 #include "screen_session_manager_lite_interface.h"
20 
21 #include "iremote_proxy.h"
22 
23 namespace OHOS {
24 namespace Rosen {
25 
26 class ScreenSessionManagerLiteProxy : public IRemoteProxy<IScreenSessionManagerLite> {
27 public:
ScreenSessionManagerLiteProxy(const sptr<IRemoteObject> & impl)28     explicit ScreenSessionManagerLiteProxy(const sptr<IRemoteObject>& impl)
29         : IRemoteProxy<IScreenSessionManagerLite>(impl) {}
30 
31     ~ScreenSessionManagerLiteProxy() = default;
32 
33     virtual DMError RegisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
34         DisplayManagerAgentType type) override;
35     virtual DMError UnregisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
36         DisplayManagerAgentType type) override;
37 
38     FoldDisplayMode GetFoldDisplayMode() override;
39     void SetFoldDisplayMode(const FoldDisplayMode displayMode) override;
40     bool IsFoldable() override;
41     FoldStatus GetFoldStatus() override;
42     virtual sptr<DisplayInfo> GetDefaultDisplayInfo() override;
43     virtual sptr<DisplayInfo> GetDisplayInfoById(DisplayId displayId) override;
44     virtual sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) override;
45 private:
46     static inline BrokerDelegator<ScreenSessionManagerLiteProxy> delegator_;
47 };
48 
49 } // namespace Rosen
50 } // namespace OHOS
51 
52 #endif // OHOS_ROSEN_SCREEN_SESSION_MANAGER_LITE_PROXY_H