1e1c44949Sopenharmony_ci/*
2e1c44949Sopenharmony_ci * Copyright (C) 2024 Huawei Device Co., Ltd.
3e1c44949Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4e1c44949Sopenharmony_ci * you may not use this file except in compliance with the License.
5e1c44949Sopenharmony_ci * You may obtain a copy of the License at
6e1c44949Sopenharmony_ci *
7e1c44949Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8e1c44949Sopenharmony_ci *
9e1c44949Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10e1c44949Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11e1c44949Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12e1c44949Sopenharmony_ci * See the License for the specific language governing permissions and
13e1c44949Sopenharmony_ci * limitations under the License.
14e1c44949Sopenharmony_ci */
15e1c44949Sopenharmony_ci
16e1c44949Sopenharmony_ci#ifndef CALL_SETTING_ABILITY_CONNECTION_H
17e1c44949Sopenharmony_ci#define CALL_SETTING_ABILITY_CONNECTION_H
18e1c44949Sopenharmony_ci
19e1c44949Sopenharmony_ci#include "ability_connection.h"
20e1c44949Sopenharmony_ci
21e1c44949Sopenharmony_cinamespace OHOS {
22e1c44949Sopenharmony_cinamespace Telephony {
23e1c44949Sopenharmony_ciclass CallSettingAbilityConnection : public AAFwk::AbilityConnectionStub {
24e1c44949Sopenharmony_cipublic:
25e1c44949Sopenharmony_ci    CallSettingAbilityConnection(const std::string &commandStr)
26e1c44949Sopenharmony_ci    {
27e1c44949Sopenharmony_ci        commandStr_ = commandStr;
28e1c44949Sopenharmony_ci    }
29e1c44949Sopenharmony_ci
30e1c44949Sopenharmony_ci    virtual ~CallSettingAbilityConnection() = default;
31e1c44949Sopenharmony_ci
32e1c44949Sopenharmony_ci    void OnAbilityConnectDone(const AppExecFwk::ElementName &element,
33e1c44949Sopenharmony_ci        const sptr<IRemoteObject> &remoteObject, int32_t resultCode) override;
34e1c44949Sopenharmony_ci    void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int32_t resultCode) override;
35e1c44949Sopenharmony_ci
36e1c44949Sopenharmony_ciprivate:
37e1c44949Sopenharmony_ci    std::string commandStr_;
38e1c44949Sopenharmony_ci};
39e1c44949Sopenharmony_ci} // namespace Telephony
40e1c44949Sopenharmony_ci} // namespace OHOS
41e1c44949Sopenharmony_ci
42e1c44949Sopenharmony_ci#endif // CALL_SETTING_ABILITY_CONNECTION_H