Files
useriam_user_auth/common/executors/include/driver.h
T
Tianshi Liu fced1270dd fix coding issue; get template onRegisterFinish
Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com>
Change-Id: I9672b23d4765122983190b1e5887d7cd7c537dc6
2022-05-25 10:55:36 +08:00

49 lines
1.3 KiB
C++

/*
* Copyright (c) 2022 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 EXECUTOR_DRIVER_H
#define EXECUTOR_DRIVER_H
#include <string>
#include <vector>
#include "nocopyable.h"
#include "executor.h"
#include "idriver_manager.h"
namespace OHOS {
namespace UserIAM {
namespace UserAuth {
class Driver : public NoCopyable {
public:
Driver(const std::string &serviceName, HdiConfig hdiConfig);
~Driver() override = default;
void OnHdiConnect();
void OnHdiDisconnect();
void OnFrameworkReady();
private:
std::recursive_mutex mutex_;
std::string serviceName_;
HdiConfig hdiConfig_;
std::vector<std::shared_ptr<Executor>> executorList_;
};
} // namespace UserAuth
} // namespace UserIAM
} // namespace OHOS
#endif // EXECUTOR_DRIVER_H