|
1 /** |
|
2 * Copyright (c) 2004-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 "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 * Comms Data Utilities exported by CommsDat in addition to general database access activities. |
|
16 * All Data PublishedAll |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file CCommsDatUtilImpl.h |
|
25 */ |
|
26 |
|
27 #if (!defined CCOMMSDATUTILIMPL_H) |
|
28 #define CCOMMSDATUTILIMPL_H |
|
29 |
|
30 #include <dial.h> |
|
31 |
|
32 const TText KStarChar='*'; |
|
33 const TText KPlusChar='+'; |
|
34 |
|
35 NONSHARABLE_CLASS(CCommsDatUtilImpl) : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 CCommsDatUtilImpl(){} |
|
40 ~CCommsDatUtilImpl(); |
|
41 |
|
42 |
|
43 void ResolvePhoneNumberL(TDesC& aNumber, TDes& aDialString, TParseMode aDialParseMode, TUint32 aLocationId, TUint32 aChargecardId); |
|
44 void ResolvePhoneNumberFromDatabaseL(TDesC& aNumber, TDes& aDialString, TParseMode aDialParseMode, TUint32 aLocationId, TUint32 aChargecardId); |
|
45 TInt CheckReadCapability( const TDesC& aField, const RMessagePtr2* aMessage ); |
|
46 TInt CheckWriteCapability( const TDesC& aField, const RMessagePtr2* aMessage ); |
|
47 |
|
48 private: |
|
49 void PopulateDialLocationL(TUint32 aId, TDialLocation& aLocation); |
|
50 void PopulateChargeCardL(TUint32 aId, TChargeCard& aChargeCard); |
|
51 |
|
52 private: |
|
53 CommsDat::CMDBSession* idbSession; |
|
54 }; |
|
55 |
|
56 #endif |