|
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: This file contains the header file of the CPELogHandlingProxy |
|
15 * : class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPELOGHANDLINGPROXY_H |
|
21 #define CPELOGHANDLINGPROXY_H |
|
22 |
|
23 //INCLUDES |
|
24 #include "mpeloghandling.h" |
|
25 #include <e32base.h> |
|
26 |
|
27 // CONSTANTS |
|
28 // None. |
|
29 |
|
30 // MACROS |
|
31 // None. |
|
32 |
|
33 // DATA TYPES |
|
34 // None. |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 // None. |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 // None. |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * This proxy class provides for the access to call logging services. |
|
46 * The construction of log handling component is two-fold: |
|
47 * 1) CreateFirstPhaseL() creates the proxy object along with log handling dummy |
|
48 * 2) CreateSecondPhaseL() creates the real subject with capability to log calls |
|
49 * |
|
50 * @lib LogHandling.lib |
|
51 * @since Series60_4.0 |
|
52 */ |
|
53 class CPELogHandlingProxy : public CBase, |
|
54 public MPELogHandling |
|
55 { |
|
56 public: |
|
57 /** |
|
58 * Create log handling proxy and dummy implementation |
|
59 * @return pointer to log handling proxy object, i.e. the handle to |
|
60 * access log handling services |
|
61 */ |
|
62 IMPORT_C static MPELogHandling* CreateFirstPhaseL(); |
|
63 |
|
64 /** |
|
65 * Create log handling sub system |
|
66 * This method creates the actual log handling implementation which |
|
67 * replaces the dummy component in use. The phone model should call this |
|
68 * function as all the critical sub systems already enable emergency call |
|
69 * capabilities. |
|
70 * @param aModel, handle to the owner of this object and phone engine |
|
71 * @param aFsSession, handle to the shared file server session |
|
72 */ |
|
73 IMPORT_C void CreateSecondPhaseL( MPEPhoneModelInternal& aModel, RFs& aFsSession ); |
|
74 |
|
75 public: // From MPELogHandling |
|
76 /** |
|
77 * Destructor. |
|
78 */ |
|
79 IMPORT_C ~CPELogHandlingProxy(); |
|
80 |
|
81 /** |
|
82 * Redirects the function call to either log handling implementation or |
|
83 * log handling dummy implementation. |
|
84 * @param aCallId, call id |
|
85 * @return possible error code. |
|
86 */ |
|
87 IMPORT_C TInt SaveCallEntry( const TInt aCallId ); |
|
88 |
|
89 protected: |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 CPELogHandlingProxy(); |
|
94 |
|
95 /** |
|
96 * Constructor, second phase. |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 private: // data |
|
101 // Handle to log handling implementation |
|
102 MPELogHandling* iLogHandling; |
|
103 // Handle to log handling dummy implementation |
|
104 MPELogHandling* iLogHandlingDummy; |
|
105 }; |
|
106 |
|
107 #endif // CPELOGHANDLINGPROXY_H |
|
108 |
|
109 // End of File |
|
110 |