Home | History | Annotate | Download | only in net
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef WIFICOND_NET_MLME_EVENT_HANDLER_H_
     18 #define WIFICOND_NET_MLME_EVENT_HANDLER_H_
     19 
     20 #include <functional>
     21 #include <memory>
     22 
     23 #include <wificond/net/mlme_event.h>
     24 
     25 namespace android {
     26 namespace wificond {
     27 
     28 // Abstract class for handling mlme events.
     29 class MlmeEventHandler {
     30  public:
     31   virtual ~MlmeEventHandler() {}
     32 
     33   virtual void OnConnect(std::unique_ptr<MlmeConnectEvent> event) = 0;
     34   virtual void OnRoam(const std::unique_ptr<MlmeRoamEvent> event) = 0;
     35   virtual void OnAssociate(std::unique_ptr<MlmeAssociateEvent> event) = 0;
     36   virtual void OnDisconnect(std::unique_ptr<MlmeDisconnectEvent> event) = 0;
     37   virtual void OnDisassociate(std::unique_ptr<MlmeDisassociateEvent> event) = 0;
     38 
     39 };
     40 
     41 }  // namespace wificond
     42 }  // namespace android
     43 
     44 #endif  // WIFICOND_NET_MLME_EVENT_HANDLER_H_
     45