/*
 *   Copyright (c) 2020 Project CHIP Authors
 *   All rights reserved.
 *
 *   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 ANDROID_BLE_APPLICATION_DELEGATE_H
#define ANDROID_BLE_APPLICATION_DELEGATE_H

#include <ble/BleApplicationDelegate.h>

typedef void (*NotifyChipConnectionClosedCallback)(BLE_CONNECTION_OBJECT connObj);

class AndroidBleApplicationDelegate : public chip::Ble::BleApplicationDelegate
{
public:
    NotifyChipConnectionClosedCallback NotifyChipConnectionClosedCb;

    AndroidBleApplicationDelegate();

    void NotifyChipConnectionClosed(BLE_CONNECTION_OBJECT connObj);

    void SetNotifyChipConnectionClosedCallback(NotifyChipConnectionClosedCallback cb);
};

#endif /* ANDROID_BLE_APPLICATION_DELEGATE_H */
