1 // Copyright (c) 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 // class definition for phone as modem at extension plugin |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef PAMPLUGIN_H |
|
19 #define PAMPLUGIN_H |
|
20 |
|
21 #include <etel3rdparty.h> |
|
22 #include <atextpluginbase.h> |
|
23 |
|
24 |
|
25 class CPamEngine; |
|
26 |
|
27 class CPamPlugin : public CATExtPluginBase |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Two-phased constructor. |
|
33 */ |
|
34 static CPamPlugin* NewL(); |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 ~CPamPlugin(); |
|
40 |
|
41 void NameReqCallback( const TDesC8& aName ); |
|
42 |
|
43 private: |
|
44 //From CATExtPluginBase |
|
45 TBool IsCommandSupported( const TDesC8& aCmd ) ; |
|
46 |
|
47 void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
|
48 void HandleCommandCancel(); |
|
49 TInt NextReplyPartLength(); |
|
50 TInt GetNextPartOfReply( RBuf8& aNextReply ); |
|
51 void ReceiveUnsolicitedResult(); |
|
52 void ReceiveUnsolicitedResultCancel(); |
|
53 void ReportNvramStatusChange( const TDesC8& aNvram ); |
|
54 void ReportExternalHandleCommandError(); |
|
55 void ReportConnectionName( const TDesC8& aName ); |
|
56 |
|
57 private: |
|
58 /** |
|
59 * Read Supported Access points |
|
60 */ |
|
61 void SupportedAccessPointL( RBuf8& aReply ); |
|
62 |
|
63 |
|
64 /** |
|
65 * Read Access points data |
|
66 */ |
|
67 void ReadAccessPointL(TInt aAccessPoint, RBuf8& aReply ); |
|
68 |
|
69 |
|
70 |
|
71 private: |
|
72 |
|
73 TInt HandleRunError(TInt aErr); |
|
74 |
|
75 |
|
76 private: |
|
77 |
|
78 CPamPlugin(); |
|
79 |
|
80 void ConstructL(); |
|
81 |
|
82 |
|
83 private: |
|
84 // Data |
|
85 |
|
86 CPamEngine* iPAMEngine; |
|
87 RBuf8* iReply; |
|
88 }; |
|
89 |
|
90 #endif // PAMPLUGIN_H |
|
91 |
|
92 // End of File |
|