diff -r 510c70acdbf6 -r 8ccc39f9d787 connectivitylayer/isce/isinameservice_dll/inc/namerecords.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectivitylayer/isce/isinameservice_dll/inc/namerecords.h Thu Jan 14 10:44:58 2010 +0200 @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* +*/ + + +#ifndef __NAMERECORDS_H__ +#define __NAMERECORDS_H__ + +#include // For TUint16 +#include // For TDesC8 +#include // For DBase + +NONSHARABLE_CLASS ( TNameTable ) +{ +public: + TNameTable( const TUint32 aName, const TUint16 aPhonetAddress, const TUint8 aFlags ) + :iName(aName), + iPhonetAddress(aPhonetAddress), + iFlags(aFlags) + {} + + TUint32 iName; + TUint16 iPhonetAddress; + TUint8 iFlags; + }; + +NONSHARABLE_CLASS (DNameRecords) : public DBase +{ +public: + DNameRecords(); + ~DNameRecords(); + + RArray iNameTableArray; + + + TUint8 AddName( const TUint32 aName, + const TUint16 aPhonetAddress, + const TUint8 aFlags ); + + TUint8 RemoveName( const TUint32 aName ); + + TInt32 LookupPhonetAddress( const TUint32 aName, TUint16* aPhonetAddress ); + + RArray * GetNameTable(); + + TInt32 NameQuery( const TUint32 aName, const TUint32 aMask, RArray *aResultsArray ); +}; + +#endif /* __NAMERECORDS_H__ */