|
1 /* |
|
2 * Copyright (c) 2002 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: It is the client side remote class of call subsession object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef RPHCLTEXTCALL_H |
|
20 #define RPHCLTEXTCALL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include "PhCltTypes.h" |
|
25 #include "RPhCltServer.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TPhCltExtPhoneDialData; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * It is the client side remote class of call subsession object. |
|
34 * |
|
35 * @lib phoneclient.lib |
|
36 * @since 1.0 |
|
37 */ |
|
38 class RPhCltExtCall : public RSubSessionBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * C++ default constructor. |
|
44 */ |
|
45 RPhCltExtCall(); |
|
46 |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 /** |
|
51 * Opens the subsession. |
|
52 * |
|
53 * @param aServer It is the session of which subsession this is. |
|
54 * @return Returns error code. |
|
55 */ |
|
56 TInt Open( RPhCltServer& aServer ); |
|
57 |
|
58 /** |
|
59 * Closes the subsession. |
|
60 */ |
|
61 void Close(); |
|
62 |
|
63 /** |
|
64 * Makes a call (asynchronous). |
|
65 * |
|
66 * @param aStatus It is used to notify the completion of the request. |
|
67 * Then it indicates the success/failure of the |
|
68 * operation. |
|
69 * @param aNumber It is the number to be dialled. |
|
70 * @param aName The name to show in UI. |
|
71 * @param aWindowGroupId It is the id of the window group to be brought |
|
72 * foreground after the call has been ended. |
|
73 * @param aRedial Redial settings |
|
74 * @param aContactId Contact Id to be asked from the phonebook. |
|
75 * @param aAllowNumberShowing Is it allowed to show the number? |
|
76 */ |
|
77 void Dial( |
|
78 TRequestStatus& aStatus, |
|
79 const TPhCltTelephoneNumber& aNumber, |
|
80 const TPhCltNameBuffer& aName, |
|
81 const TInt aWindowGroupId, |
|
82 const TInt aRedial, |
|
83 const TPhCltContactId aContactId, |
|
84 const TBool aAllowNumberShowing ); |
|
85 |
|
86 /** |
|
87 * Makes a call (asynchronous). |
|
88 * |
|
89 * @param aStatus It is used to notify the completion of the request. |
|
90 * Then it indicates the success/failure of the operation. |
|
91 * @param aData The object containing the dial parameters |
|
92 */ |
|
93 void Dial( |
|
94 TRequestStatus& aStatus, |
|
95 const TPhCltExtPhoneDialData& aData); |
|
96 |
|
97 /** |
|
98 * Cancels the dialling request. |
|
99 */ |
|
100 void CancelDial() const; |
|
101 |
|
102 private: |
|
103 |
|
104 // By default, prohibit copy constructor |
|
105 RPhCltExtCall( const RPhCltExtCall& ); |
|
106 // Prohibit assigment operator |
|
107 RPhCltExtCall& operator= ( const RPhCltExtCall& ); |
|
108 |
|
109 private: // Data |
|
110 |
|
111 // Call arguments. |
|
112 TPckgBuf< TPhCltCallArgs > iArgs; |
|
113 }; |
|
114 |
|
115 #endif // RPHCLTEXTCALL_H |
|
116 |
|
117 // End of File |