1 /* |
|
2 * Copyright (c) 2009-2010 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: Encapsulates RTelServer and RMobilePhone sessions |
|
15 * Interface : Private, CVmbxETelConnection |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_VMBXETELCONNECTION_H |
|
21 #define C_VMBXETELCONNECTION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <voicemailboxdefs.h> |
|
26 #include <etelmm.h> |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 class RTelServer; |
|
30 class RMobilePhone; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Creates connection to RTelServer and opens RMobilePhone |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS( CVmbxETelConnection ): public CBase |
|
39 { |
|
40 |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CVmbxETelConnection* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CVmbxETelConnection(); |
|
52 |
|
53 |
|
54 public: // New functions |
|
55 |
|
56 /** |
|
57 * Returns a reference to the ETel RTelServer |
|
58 * |
|
59 * @return a reference to the ETel RTelServer |
|
60 */ |
|
61 RTelServer& TelServer(); |
|
62 |
|
63 /** |
|
64 * Returns a reference to the ETel RMobilePhone |
|
65 * |
|
66 * @return a reference to the ETel RMobilePhone |
|
67 */ |
|
68 RMobilePhone& Phone(); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * C++ constructor. |
|
74 */ |
|
75 CVmbxETelConnection(); |
|
76 |
|
77 /** |
|
78 * By default Symbian 2nd phase constructor is private. |
|
79 */ |
|
80 void ConstructL(); |
|
81 |
|
82 private: // data |
|
83 |
|
84 /** |
|
85 * The ETel RTelServer |
|
86 */ |
|
87 RTelServer iTelServer; |
|
88 |
|
89 /** |
|
90 * The ETel phone |
|
91 */ |
|
92 RMobilePhone iPhone; |
|
93 }; |
|
94 |
|
95 #endif // C_VMBXETELCONNECTION_H |
|