|
1 /* |
|
2 * Copyright (c) 2008-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: Observes CCE |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCCEOBSERVER_H |
|
20 #define CCCEOBSERVER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <mcceobserver.h> |
|
24 |
|
25 class MPECallInitialiser; |
|
26 class MPEPhoneModelInternal; |
|
27 |
|
28 /** |
|
29 * Observes CCE |
|
30 * |
|
31 * @lib callhandling.lib |
|
32 * @since S60 v5.1 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CPECCEObserver ): public CBase, public MCCEObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 static CPECCEObserver* NewL( |
|
39 MPECallInitialiser& aCallInitialiser, |
|
40 MPEPhoneModelInternal& aPhoneModel ); |
|
41 |
|
42 static CPECCEObserver* NewLC( |
|
43 MPECallInitialiser& aCallInitialiser, |
|
44 MPEPhoneModelInternal& aPhoneModel ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CPECCEObserver(); |
|
50 |
|
51 /** |
|
52 * ?description |
|
53 * |
|
54 * @since S60 ?S60_version |
|
55 * @param ?arg1 ?description |
|
56 * @param ?arg2 ?description |
|
57 * @return ?description |
|
58 */ |
|
59 |
|
60 // Methods from base class MCCEObserver |
|
61 |
|
62 /** |
|
63 * @see MCCEObserver::IncomingCall |
|
64 */ |
|
65 void IncomingCall( MCCECall& aCall ); |
|
66 |
|
67 /** |
|
68 * @see MCCEObserver::IncomingCall |
|
69 */ |
|
70 void MOCallCreated( MCCECall& aCall ); |
|
71 |
|
72 /** |
|
73 * @see MCCEObserver::ConferenceCallCreated |
|
74 */ |
|
75 void ConferenceCallCreated( MCCEConferenceCall& aConferenceCall ); |
|
76 |
|
77 /** |
|
78 * @see MCCEObserver::IncomingCall |
|
79 */ |
|
80 void DataPortName( TName& aPortName ); |
|
81 |
|
82 private: |
|
83 |
|
84 CPECCEObserver( |
|
85 MPECallInitialiser& aCallInitialiser, |
|
86 MPEPhoneModelInternal& aPhoneModel ); |
|
87 |
|
88 void NotifyCallInitialiser( MCCECall& aCall ); |
|
89 |
|
90 private: // data |
|
91 |
|
92 /** |
|
93 * Incoming and external call initialiser |
|
94 */ |
|
95 MPECallInitialiser& iCallInitialiser; |
|
96 |
|
97 /** |
|
98 * Phone model |
|
99 */ |
|
100 MPEPhoneModelInternal& iPhoneModel; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // CCCEOBSERVER_H |