1 /* |
|
2 * Copyright (c) 2003 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: This file contains the header file of the CPELogExternalData class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPELOGEXTERNALDATA_H |
|
20 #define CPELOGEXTERNALDATA_H |
|
21 |
|
22 //INCLUDES |
|
23 #include <pevirtualengine.h> |
|
24 |
|
25 // CONSTANTS |
|
26 // None. |
|
27 |
|
28 // MACROS |
|
29 // None. |
|
30 |
|
31 // DATA TYPES |
|
32 // None. |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 // None. |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class CPELogInfo; |
|
39 class CPELogHandling; |
|
40 class CRepository; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 class CPELogExternalData : public CBase |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Two-phased constructor |
|
50 */ |
|
51 static CPELogExternalData* NewL( CPELogHandling& aOwner ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 /***************************************************** |
|
57 * Series 60 Customer / REPOSITORY |
|
58 * Series 60 REPOSITORY API |
|
59 *****************************************************/ |
|
60 virtual ~CPELogExternalData(); |
|
61 |
|
62 protected: |
|
63 |
|
64 /** |
|
65 * C++ default constructor. |
|
66 */ |
|
67 CPELogExternalData( CPELogHandling& aOwner ); |
|
68 |
|
69 /** |
|
70 * Constructor, second phase. |
|
71 */ |
|
72 /***************************************************** |
|
73 * Series 60 Customer / REPOSITORY |
|
74 * Series 60 REPOSITORY API |
|
75 *****************************************************/ |
|
76 void ConstructL(); |
|
77 |
|
78 public: |
|
79 |
|
80 /** |
|
81 * Update call timers value. |
|
82 * @since N/A |
|
83 * @param CPELogInfo aCallInfo, call information. |
|
84 * @return None. |
|
85 */ |
|
86 void UpdateCallTimers( const CPELogInfo& aLogInfo ); |
|
87 |
|
88 /** |
|
89 * Update line specific last call timers. |
|
90 * @since since S90 1.1 |
|
91 * @param CPELogInfo aLogInfo, call information. |
|
92 * @return None. |
|
93 */ |
|
94 /***************************************************** |
|
95 * Series 60 Customer / REPOSITORY |
|
96 * Series 60 REPOSITORY API |
|
97 *****************************************************/ |
|
98 void UpdateLastCallTimerByLine( const CPELogInfo& aLogInfo ); |
|
99 |
|
100 /** |
|
101 * Update the last call timer when no calls left. |
|
102 * @since since S90 1.1 |
|
103 * @param CPELogInfo aLogInfo, call information. |
|
104 * @return in multicall case duration from start of first to end of last. |
|
105 */ |
|
106 /***************************************************** |
|
107 * Series 60 Customer / REPOSITORY |
|
108 * Series 60 REPOSITORY API |
|
109 *****************************************************/ |
|
110 TInt UpdateLastCallTimer( const CPELogInfo& aLogInfo ); |
|
111 |
|
112 /** |
|
113 * Increase missed call's counter value. |
|
114 * @since N/A |
|
115 * @param None. |
|
116 * @return None. |
|
117 */ |
|
118 /***************************************************** |
|
119 * Series 60 Customer / REPOSITORY |
|
120 * Series 60 REPOSITORY API |
|
121 *****************************************************/ |
|
122 void IncreaseMissedCallValue( const TInt aCallId ); |
|
123 |
|
124 /** |
|
125 * Set first call start time. |
|
126 * @since N/A |
|
127 * @param: TTime aFirstCallStartTime |
|
128 * @return: None. |
|
129 */ |
|
130 void SetFirstCallStartTime( const TTime& aFirstCallStartTime ); |
|
131 |
|
132 private: |
|
133 /** |
|
134 * Update call timers value. |
|
135 * @since since S90 1.1 |
|
136 * @param aTimer Timer key |
|
137 * @param aDuration Call duration |
|
138 * @param aRepository Repository to use |
|
139 * @return None. |
|
140 */ |
|
141 /***************************************************** |
|
142 * Series 60 Customer / REPOSITORY |
|
143 * Series 60 REPOSITORY API |
|
144 *****************************************************/ |
|
145 void UpdateTimer( const TUint32 aTimer, TInt aDuration, |
|
146 CRepository& aRepository ); |
|
147 |
|
148 private: |
|
149 // Owner of the object. |
|
150 CPELogHandling& iOwner; |
|
151 // First call start time |
|
152 TTime iFirstCallStartTime; |
|
153 // Repository |
|
154 /***************************************************** |
|
155 * Series 60 Customer / REPOSITORY |
|
156 * Series 60 REPOSITORY API |
|
157 *****************************************************/ |
|
158 CRepository* iRepository; |
|
159 }; |
|
160 |
|
161 #endif // CPELOGSHANDLER_H |
|
162 |
|
163 // End of File |
|
164 |
|