|
1 /* |
|
2 * Copyright (c) 2002 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 * Includes AoC's and CT's commonly needed functions. Multimode ETEL version. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CLogsAocUtil_H |
|
21 #define __CLogsAocUtil_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <etel.h> |
|
25 #include <etelmm.h> |
|
26 #include <e32base.h> |
|
27 #include "CLogsEtelBase.h" |
|
28 #include "MLogsAocUtil.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 // CLASS DECLARATIONS |
|
33 |
|
34 /** |
|
35 * Includes AoC's and CT's commonly needed functions |
|
36 */ |
|
37 class CLogsAocUtil: public CLogsEtelBase, public MLogsAocUtil |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Standard creation function. Creates and returns a new object of |
|
42 * this class. |
|
43 * |
|
44 * @return The pointer of the CLogsAocUtil |
|
45 */ |
|
46 static CLogsAocUtil* NewL( ); |
|
47 |
|
48 /** |
|
49 * Destructor |
|
50 */ |
|
51 ~CLogsAocUtil(); |
|
52 |
|
53 private: |
|
54 /** |
|
55 * Symbian OS Constructor |
|
56 * |
|
57 */ |
|
58 void ConstructL( ); |
|
59 |
|
60 /** |
|
61 * Constructor |
|
62 * |
|
63 */ |
|
64 CLogsAocUtil( ); |
|
65 |
|
66 public: |
|
67 /** |
|
68 * Asks security code |
|
69 * |
|
70 * @return error code |
|
71 */ |
|
72 TInt AskSecCodeL(); |
|
73 |
|
74 /** |
|
75 * Get active call duration |
|
76 * @param aTime duration is set here. |
|
77 * |
|
78 * @return KErrNone or ETEL error code in error. |
|
79 */ |
|
80 TInt GetAirTimeDuration( TTimeIntervalSeconds& aTime ); |
|
81 |
|
82 private: // CActive |
|
83 void RunL(); |
|
84 void DoCancel(); |
|
85 |
|
86 private: |
|
87 // connection is done |
|
88 TBool iEtelConnectOK; |
|
89 |
|
90 /// Telephone servers pointer |
|
91 RTelServer iServer; |
|
92 |
|
93 /// Own: sync. helper in async. requests |
|
94 CActiveSchedulerWait iWait; |
|
95 |
|
96 // Own: async cancel |
|
97 TInt iCancelStatus; |
|
98 }; |
|
99 |
|
100 #endif // __CLogsAocUtil_H |
|
101 |
|
102 // End of file |