|
1 /* |
|
2 * Copyright (c) 2006 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: Connection Method interface class. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMCONNECTIONMETHODINFO_H |
|
19 #define CMCONNECTIONMETHODINFO_H |
|
20 |
|
21 #include <cmpluginbaseeng.h> |
|
22 |
|
23 /** |
|
24 * Acts as a connection method that has no bearer type. |
|
25 * Client applications can query connection method, but non-bearer specific |
|
26 * attributes by calling RCmManager/Ext::GetConnectionMethodInfoXXXL() |
|
27 * functions. |
|
28 * Modification and update of a connetion method is not supported. |
|
29 * Common records of a connection method are loaded, and kept in memory |
|
30 * as long as the client application queries attribute of another connection |
|
31 * method. |
|
32 * |
|
33 * @lib cmmanager.lib |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCmConnectionMethodInfo ) : public CCmPluginBaseEng |
|
37 { |
|
38 public: |
|
39 |
|
40 static CCmConnectionMethodInfo* NewL( TCmPluginInitParam *aInitParam ); |
|
41 |
|
42 static CCmConnectionMethodInfo* NewLC( TCmPluginInitParam *aInitParam ); |
|
43 |
|
44 virtual ~CCmConnectionMethodInfo(); |
|
45 |
|
46 virtual CCmPluginBaseEng* |
|
47 CreateInstanceL( TCmPluginInitParam& /*aInitParam*/ ) const; |
|
48 virtual CCmPluginBaseEng* CreateCopyL() const; |
|
49 |
|
50 public: // new functions |
|
51 |
|
52 virtual TUint32 GetConnectionInfoIntL( const TUint32 aIapId, |
|
53 const TUint32 aAttribute ); |
|
54 |
|
55 virtual TBool GetConnectionInfoBoolL( const TUint32 aIapId, |
|
56 const TUint32 aAttribute ); |
|
57 |
|
58 virtual HBufC* GetConnectionInfoStringL( const TUint32 aIapId, |
|
59 const TUint32 aAttribute ); |
|
60 |
|
61 virtual HBufC8* GetConnectionInfoString8L( const TUint32 aIapId, |
|
62 const TUint32 aAttribute ); |
|
63 |
|
64 virtual void AdditionalReset(){}; |
|
65 |
|
66 void ResetIfInMemory( CCmPluginBaseEng* aCM ); |
|
67 |
|
68 private: // from CCmPluginBaseEng |
|
69 |
|
70 virtual TInt RunSettingsL(); |
|
71 virtual TBool InitializeWithUiL( TBool aManuallyConfigure ); |
|
72 virtual TBool CanHandleIapIdL( TUint32 aIapId ) const; |
|
73 virtual TBool CanHandleIapIdL( CommsDat::CCDIAPRecord* aIapRecord ) const; |
|
74 virtual void CopyAdditionalDataL( CCmPluginBaseEng* aDestInst ); |
|
75 |
|
76 private: |
|
77 |
|
78 virtual void ServiceRecordIdLC( HBufC* &aServiceName, |
|
79 TUint32& aRecordId ); |
|
80 virtual void BearerRecordIdLC( HBufC* &aBearerName, |
|
81 TUint32& aRecordId ); |
|
82 virtual void CreateNewServiceRecordL(); |
|
83 |
|
84 void ResetAndLoadL( TUint32 aIapId ); |
|
85 |
|
86 private: |
|
87 |
|
88 CCmConnectionMethodInfo( TCmPluginInitParam *aInitParam ); |
|
89 |
|
90 void ConstructL(); |
|
91 |
|
92 private: // new functions |
|
93 |
|
94 private: // data |
|
95 }; |
|
96 |
|
97 |
|
98 #endif // CMCONNECTIONMETHODINFO_H |