|
1 // Copyright (c) 2002-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 #if !defined(__DBACCESS_H__) |
|
17 #define __DBACCESS_H__ |
|
18 |
|
19 #include <etelmm.h> |
|
20 #include <comms-infras/connectionsettings.h> |
|
21 |
|
22 class CCommDbOverrideSettings; |
|
23 class MServiceChangeObserver; |
|
24 |
|
25 class CCommsDbAccess : public CBase |
|
26 { |
|
27 public: |
|
28 ~CCommsDbAccess(); |
|
29 static CCommsDbAccess* NewL(); |
|
30 static CCommsDbAccess* NewL(TBool); |
|
31 |
|
32 |
|
33 TInt GetConnectionAttempts(); |
|
34 void GetBearerAvailabilityTsyNameL(TDes& aTsyName); |
|
35 void GetCurrentSettingsL(TConnectionSettings& aSettings, TCommDbConnectionDirection aDirection, TUint32 aRank); |
|
36 void SetCurrentSettingsL(const TConnectionSettings& aSettings); |
|
37 TBool IsTelNumLengthZeroForRasConnectionL(TConnectionSettings& aSettings); |
|
38 void GetServiceSettingsL(TConnectionSettings& aSettings); |
|
39 RMobilePhone::TMobilePhoneNetworkMode NetworkMode() const; |
|
40 void SetNetworkMode(RMobilePhone::TMobilePhoneNetworkMode aMode); |
|
41 void GetDesL(const TDesC& aTable, const TDesC& aField, TDes16& aValue); |
|
42 void GetIntL(const TDesC& aTable, const TDesC& aField, TUint32& aValue); |
|
43 void SetOverridesL(CCommDbOverrideSettings* aOverrides); |
|
44 void GetPreferedIapL(TUint32& aIapId, TCommDbConnectionDirection aDirection, TUint32 aRank); |
|
45 TBool DoesIapExistL(TUint32 aIapId); |
|
46 void GetTsyNameL(TDes& aTsyName); |
|
47 |
|
48 void RequestNotificationOfServiceChangeL(MServiceChangeObserver* aObserver); |
|
49 void CancelRequestNotificationOfServiceChange(MServiceChangeObserver* aObserver); |
|
50 |
|
51 |
|
52 |
|
53 protected: |
|
54 CCommsDbAccess(); |
|
55 }; |
|
56 |
|
57 #endif // __DBACCESS_H__ |
|
58 |