• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 PRINT_ENTRY_H
17 #define PRINT_ENTRY_H
18 
19 #include <memory>
20 #include <string>
21 #include <stdint.h>
22 
23 #include "ui_content.h"
24 #include "modal_ui_extension_config.h"
25 #include "want.h"
26 #include "ipc_skeleton.h"
27 #include "bundle_mgr_client.h"
28 #include "iremote_object.h"
29 #include "print_utils.h"
30 
31 namespace OHOS::Print {
32 class PrintEntry {
33 public:
34     PrintEntry();
35     ~PrintEntry();
36     static std::shared_ptr<PrintEntry> GetInstance();
37     int32_t StartPrint(const std::vector<std::string>& files);
38     int32_t On(const std::string& type);
39     int32_t Off(const std::string& type);
40 private:
41     int32_t CallSpooler(const std::shared_ptr<AdapterParam> &adapterParam,
42         const std::vector<std::string>& files);
43 };
44 }  // namespace OHOS::Print
45 #endif  // PRINT_ENTRY_H
46