|
1 /* |
|
2 * Copyright (c) 2008 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: Implements call logging extension plugin for SIP VoIP. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CSVTLOGGING_H |
|
20 #define C_CSVTLOGGING_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <telloggingextension.h> |
|
24 #include "csvtsipuriparser.h" |
|
25 |
|
26 class CSPSettings; |
|
27 class CSvtSettingsHandler; |
|
28 class CRCSEProfileRegistry; |
|
29 |
|
30 /** |
|
31 * Implements call logging extension plugin inteface for SIP VoIP. |
|
32 * |
|
33 * @lib svtlogging.dll |
|
34 * @since S60 v5.1 |
|
35 */ |
|
36 class CSvtLogging : public CTelLoggingExtension |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 static CSvtLogging* NewL(); |
|
42 static CSvtLogging* NewLC(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CSvtLogging(); |
|
48 |
|
49 // from base class CTelLoggingExtension |
|
50 |
|
51 /** |
|
52 * From CTelLoggingExtension. |
|
53 * @see CTelLoggingExtension. |
|
54 */ |
|
55 void InitializeL( TUint aServiceId, const TDesC& aOrigAddress ); |
|
56 |
|
57 /** |
|
58 * From CTelLoggingExtension. |
|
59 * @see CTelLoggingExtension. |
|
60 */ |
|
61 TInt GetPhoneNumber( RBuf& aPhoneNumber ); |
|
62 |
|
63 /** |
|
64 * From CTelLoggingExtension. |
|
65 * @see CTelLoggingExtension. |
|
66 */ |
|
67 TInt GetVoipAddress( RBuf& aVoipAddress ); |
|
68 |
|
69 /** |
|
70 * From CTelLoggingExtension. |
|
71 * @see CTelLoggingExtension. |
|
72 */ |
|
73 TInt GetMyAddress( RBuf& aMyAddress ); |
|
74 |
|
75 /** |
|
76 * From CTelLoggingExtension. |
|
77 * @see CTelLoggingExtension. |
|
78 */ |
|
79 TInt GetRemotePartyName( RBuf& aRemotePartyName ); |
|
80 |
|
81 private: |
|
82 |
|
83 CSvtLogging(); |
|
84 |
|
85 CSvtSettingsHandler* CreateSvtSettingsHandlerL( TUint aServiceId ) const; |
|
86 |
|
87 CSvtSipUriParser::TDomainPartClippingSetting ConvertToUriParserSetting( |
|
88 TInt aDomainClipSetting ) const; |
|
89 |
|
90 CSvtSipUriParser* CreateSipUriParserL( const TDesC& aOrigAddress, |
|
91 TInt aDomainClipSetting ) const; |
|
92 |
|
93 private: // data |
|
94 |
|
95 /** |
|
96 * SIP URI parser. |
|
97 * Own. |
|
98 */ |
|
99 CSvtSipUriParser* iParser; |
|
100 |
|
101 /** |
|
102 * Settings handler. |
|
103 * Own. |
|
104 */ |
|
105 CSvtSettingsHandler* iSettingsHandler; |
|
106 |
|
107 /** |
|
108 * User name if plugin is initialized with SIP user name only. |
|
109 * Own. |
|
110 */ |
|
111 RBuf iSipUserName; |
|
112 |
|
113 }; |
|
114 |
|
115 #endif // C_CSVTLOGGING_H |