|
1 /* |
|
2 * Copyright (c) 2007 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: Class for implementing Call Restrictions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SVPSUPPLEMENTARYSERVICES_H |
|
20 #define SVPSUPPLEMENTARYSERVICES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <badesca.h> |
|
25 #include <centralrepository.h> |
|
26 |
|
27 #include "svpconsts.h" |
|
28 #include "svpsslogcall.h" |
|
29 #include "svputdefs.h" |
|
30 |
|
31 /** |
|
32 * SVP supplementary services |
|
33 * |
|
34 * Handles Do Not Disturb and anonymous call barring cases. |
|
35 * |
|
36 * @lib svp.dll |
|
37 * @since S60 3.2 |
|
38 */ |
|
39 // DATA TYPES |
|
40 enum TCheckingState |
|
41 { |
|
42 ESVPIdle, |
|
43 ESVPAllowingDail, |
|
44 ESVPMakingCallLog, |
|
45 ESVPCheckingAnonymousToDial, |
|
46 ESVPCheckingAnonymousToLog, |
|
47 ESVPRejectingCall, |
|
48 ESVPError |
|
49 }; |
|
50 class CSVPSupplementaryServices : public CBase |
|
51 { |
|
52 |
|
53 public: // Constructors and destructor |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 static CSVPSupplementaryServices* NewL(); |
|
58 static CSVPSupplementaryServices* NewLC(); |
|
59 |
|
60 /** |
|
61 * For sending response to incoming INVITE. |
|
62 * @since S60 3.2 |
|
63 * @param aHeaders SIP headers. |
|
64 * @return type of restriction. |
|
65 */ |
|
66 TSupplementaryServicesEvent CheckRestrictionsL( |
|
67 CDesC8Array& aHeaders); |
|
68 |
|
69 /** |
|
70 * Destructor. |
|
71 */ |
|
72 virtual ~CSVPSupplementaryServices(); |
|
73 |
|
74 private: |
|
75 |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 */ |
|
80 CSVPSupplementaryServices(); |
|
81 |
|
82 /** |
|
83 * By default Symbian 2nd phase constructor is private. |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 private: // Data |
|
88 |
|
89 /** |
|
90 * Supplementary Services event |
|
91 */ |
|
92 TSupplementaryServicesEvent iSSEvent; |
|
93 |
|
94 /** |
|
95 * Instance of CSSLogCall for call logging (DND) |
|
96 */ |
|
97 CSVPSSLogCall* iLogCall; |
|
98 |
|
99 /** |
|
100 * Instance of Central Repository |
|
101 */ |
|
102 CRepository* iRichCallRepository; |
|
103 |
|
104 private: |
|
105 |
|
106 // For testing |
|
107 SVP_UT_DEFS |
|
108 |
|
109 }; |
|
110 |
|
111 #endif // SVPSUPPLEMENTARYSERVICES_H |
|
112 |