bluetooth/btstack/linkmgr/eirpublisherlocalname.h
changeset 0 29b1cd4cb562
child 17 32ba20339036
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2008-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 #ifndef EIRPUBLISHERLOCALNAME_H
       
    17 #define EIRPUBLISHERLOCALNAME_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <bluetooth/eirpublisherbase.h>
       
    21 #include <bluetooth/hci/hciconsts.h>
       
    22 
       
    23 //**********************************
       
    24 // CEirPublisherLocalName
       
    25 //**********************************
       
    26 /**
       
    27 Provides functionality to publish 16 bit UUIDs to EIR.
       
    28 **/
       
    29 NONSHARABLE_CLASS(CEirPublisherLocalName) : public CEirPublisherBase
       
    30 	{
       
    31 public:
       
    32 	static CEirPublisherLocalName* NewL();
       
    33 	~CEirPublisherLocalName();
       
    34 	void UpdateName(const TDesC8& aName);
       
    35 
       
    36 private:
       
    37 	CEirPublisherLocalName();
       
    38 	void ConstructL();
       
    39 
       
    40 	// From MEirPublisherNotifier
       
    41 	virtual void MepnSpaceAvailable(TUint aBytesAvailable);
       
    42 	virtual void MepnSetDataError(TInt aResult);
       
    43 
       
    44 private:
       
    45 	TBuf8<KHCILocalDeviceNameMaxLength> iLocalName;
       
    46 	HBufC8* iPublishBuf;
       
    47 	};
       
    48 	
       
    49 #endif	// EIRPUBLISHERLOCALNAME_H