bluetoothcommsprofiles/btpan/bnep/MLinkManager.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef __MLINKMANAGER_H
       
    22 #define __MLINKMANAGER_H 
       
    23 
       
    24 #include <e32def.h>
       
    25 
       
    26 class RBnepControl;
       
    27 
       
    28 /**
       
    29    Interface between the BNEP link object and the BNEP channel manager object.
       
    30 */
       
    31 class MLinkManager 
       
    32     {
       
    33 public:
       
    34     virtual void Execute (RBnepControl* aCommand) = 0;
       
    35     virtual void RemoteDeviceDisconnect (TInt aError) = 0;
       
    36     TBool AwaitingResponse () const;
       
    37     void SetAwaitingResponse (TBool value);
       
    38 private: 
       
    39     TBool iAwaitingResponse;
       
    40     };
       
    41 
       
    42 inline TBool MLinkManager::AwaitingResponse () const
       
    43     {
       
    44     return iAwaitingResponse;
       
    45     }
       
    46 
       
    47 inline void MLinkManager::SetAwaitingResponse (TBool value)
       
    48     {
       
    49     iAwaitingResponse = value;
       
    50     }
       
    51 
       
    52 
       
    53 #endif