bluetoothcommsprofiles/btpan/bnep/RBnepControl.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 23:28:24 +0300
branchRCL_3
changeset 25 99439b07e980
parent 0 29b1cd4cb562
permissions -rw-r--r--
Revision: 201031 Kit: 201035

// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @internalComponent
*/

#ifndef __RBNEPCONTROL_H
#define __RBNEPCONTROL_H 

#include <es_mbuf.h>
#include "BnepTypes.h"

class TSglQueLink;

/**
   A BNEP Command.
   Used to encapsulate a BNEP control message of any type.
*/
NONSHARABLE_CLASS(RBnepControl) : public RMBufChain  
    {
public:
    typedef enum 
        { 
        KControlTypeOffset = 0,
        KControlResponseOffset = 1
        } Constants;

    TBnepControlType ControlType ();

public:
    TSglQueLink iLink;
    };

inline TBnepControlType RBnepControl::ControlType ()
    {
    return static_cast<TBnepControlType>(First()->Get(0));
    }


#endif