bluetooth/btstack/linkmgr/eirpublisherlocalname.h
branchRCL_3
changeset 17 32ba20339036
parent 0 29b1cd4cb562
equal deleted inserted replaced
16:9f17f914e828 17:32ba20339036
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    15 
    15 
    16 #ifndef EIRPUBLISHERLOCALNAME_H
    16 #ifndef EIRPUBLISHERLOCALNAME_H
    17 #define EIRPUBLISHERLOCALNAME_H
    17 #define EIRPUBLISHERLOCALNAME_H
    18 
    18 
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include <bluetooth/eirpublisherbase.h>
       
    21 #include <bluetooth/hci/hciconsts.h>
    20 #include <bluetooth/hci/hciconsts.h>
       
    21 #include "eirmansession.h"
       
    22 
       
    23 class CEirManServer;
    22 
    24 
    23 //**********************************
    25 //**********************************
    24 // CEirPublisherLocalName
    26 // CEirPublisherLocalName
    25 //**********************************
    27 //**********************************
    26 /**
    28 /**
    27 Provides functionality to publish 16 bit UUIDs to EIR.
    29 Provides functionality to publish 16 bit UUIDs to EIR.
    28 **/
    30 **/
    29 NONSHARABLE_CLASS(CEirPublisherLocalName) : public CEirPublisherBase
    31 NONSHARABLE_CLASS(CEirPublisherLocalName): public CBase, public MEirInternalSessionNotifier
    30 	{
    32 	{
    31 public:
    33 public:
    32 	static CEirPublisherLocalName* NewL();
    34 	static CEirPublisherLocalName* NewL(CEirManServer& aServer);
    33 	~CEirPublisherLocalName();
    35 	~CEirPublisherLocalName();
    34 	void UpdateName(const TDesC8& aName);
    36 	void UpdateName(const TDesC8& aName);
    35 
    37 
    36 private:
    38 private:
    37 	CEirPublisherLocalName();
    39 	CEirPublisherLocalName();
    38 	void ConstructL();
    40 	void ConstructL(CEirManServer& aServer);
    39 
    41 
    40 	// From MEirPublisherNotifier
    42 	// From MEirInternalSessionNotifier
    41 	virtual void MepnSpaceAvailable(TUint aBytesAvailable);
    43 	virtual void MeisnSpaceAvailable(TUint aBytesAvailable);
    42 	virtual void MepnSetDataError(TInt aResult);
    44 	virtual void MeisnRegisterComplete(TInt aResult);
       
    45 	virtual void MeisnSetDataError(TInt aError);
    43 
    46 
    44 private:
    47 private:
    45 	TBuf8<KHCILocalDeviceNameMaxLength> iLocalName;
    48 	TBuf8<KHCILocalDeviceNameMaxLength> iLocalName;
    46 	HBufC8* iPublishBuf;
    49 	HBufC8* iPublishBuf;
       
    50 	CEirManInternalSession* iSession;
       
    51 	TBool		iTagRegistered;
    47 	};
    52 	};
    48 	
    53 	
    49 #endif	// EIRPUBLISHERLOCALNAME_H
    54 #endif	// EIRPUBLISHERLOCALNAME_H