|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NAMERECORDS_H__ |
|
20 #define __NAMERECORDS_H__ |
|
21 |
|
22 #include <e32def.h> // For TUint16 |
|
23 #include <e32cmn.h> // For TDesC8 |
|
24 #include <klib.h> // For DBase |
|
25 |
|
26 NONSHARABLE_CLASS ( TNameTable ) |
|
27 { |
|
28 public: |
|
29 TNameTable( const TUint32 aName, const TUint16 aPhonetAddress, const TUint8 aFlags ) |
|
30 :iName(aName), |
|
31 iPhonetAddress(aPhonetAddress), |
|
32 iFlags(aFlags) |
|
33 {} |
|
34 |
|
35 TUint32 iName; |
|
36 TUint16 iPhonetAddress; |
|
37 TUint8 iFlags; |
|
38 }; |
|
39 |
|
40 NONSHARABLE_CLASS (DNameRecords) : public DBase |
|
41 { |
|
42 public: |
|
43 DNameRecords(); |
|
44 ~DNameRecords(); |
|
45 |
|
46 RArray<TNameTable*> iNameTableArray; |
|
47 |
|
48 |
|
49 TUint8 AddName( const TUint32 aName, |
|
50 const TUint16 aPhonetAddress, |
|
51 const TUint8 aFlags ); |
|
52 |
|
53 TUint8 RemoveName( const TUint32 aName ); |
|
54 |
|
55 TInt32 LookupPhonetAddress( const TUint32 aName, TUint16* aPhonetAddress ); |
|
56 |
|
57 RArray <TNameTable*>* GetNameTable(); |
|
58 |
|
59 TInt32 NameQuery( const TUint32 aName, const TUint32 aMask, RArray <TNameTable*> *aResultsArray ); |
|
60 }; |
|
61 |
|
62 #endif /* __NAMERECORDS_H__ */ |