1 /* |
|
2 * Copyright (c) 2002-2004 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: Call Request Manager. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHSRVCALLREQUESTMANAGER_H |
|
20 #define CPHSRVCALLREQUESTMANAGER_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "mphsrvobjectnegotiators.h" |
|
26 #include "mphsrvobjectinitiators.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CPhSrvCallRequest; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Call request manager. |
|
37 * |
|
38 * @since 1.0 |
|
39 */ |
|
40 class CPhSrvCallRequestManager : |
|
41 public CBase, |
|
42 public MPhSrvNegotiatorCall |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Constructor. |
|
48 */ |
|
49 CPhSrvCallRequestManager(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CPhSrvCallRequestManager(); |
|
55 |
|
56 /** |
|
57 * Symbian 2nd phase constructor. |
|
58 */ |
|
59 void ConstructL(); |
|
60 |
|
61 |
|
62 public: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * @see MPhSrvNegotiatorCallBase |
|
66 */ |
|
67 void NegotiatorDialL( |
|
68 const RMessage2& aMessage, |
|
69 const TPhCltCallArgs& aArgs, |
|
70 CPhSrvSubSessionBase& aSubSession ); |
|
71 |
|
72 /** |
|
73 * @see MPhSrvNegotiatorCallBase |
|
74 */ |
|
75 void NegotiatorDialCancel( CPhSrvSubSessionBase& aSubSession ); |
|
76 |
|
77 /** |
|
78 * @see MPhSrvNegotiatorCall |
|
79 */ |
|
80 void SetNegotiatorReadyCall( MPhSrvInitiatorCall& aInitiator ); |
|
81 |
|
82 /** |
|
83 * @see MPhSrvNegotiatorCall |
|
84 */ |
|
85 void SetNegotiatorReadyCallCancel( MPhSrvInitiatorCall& aInitiator ); |
|
86 |
|
87 /** |
|
88 * @see MPhSrvNegotiatorCall |
|
89 */ |
|
90 void SetNegotiatorAttemptedCallResponseValue( |
|
91 TPhCltPhoneResults aResult ); |
|
92 |
|
93 |
|
94 private: // Data |
|
95 |
|
96 // A list of requests made by the external call interface that the phone |
|
97 // app should dial. It completes them sequentially after its finished |
|
98 // the previous call. |
|
99 // Index 0 is reserved for the emergency call. |
|
100 RPointerArray<CPhSrvCallRequest>* iOutstandingRequestsCall; |
|
101 |
|
102 // The object responsible for processing external client call requests. |
|
103 // This is essentially an interface to the phone app engine. |
|
104 MPhSrvInitiatorCall* iCallInitiator; |
|
105 }; |
|
106 |
|
107 |
|
108 #endif // CPHSRVCALLREQUESTMANAGER_H |
|
109 |
|
110 |
|
111 // End of File |
|