1 /* |
|
2 * Copyright (c) 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: Declarations for class CPhoneHandlerCallArray |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHONEHANDLERCALLARRAY_H |
|
20 #define CPHONEHANDLERCALLARRAY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class TCallInfo; |
|
25 class MCall; |
|
26 |
|
27 /** |
|
28 * Handles call adding |
|
29 * |
|
30 * @lib phonecmdhandler.dll |
|
31 */ |
|
32 class CPhoneHandlerCallArray: public CBase |
|
33 { |
|
34 |
|
35 public: //Constructors and descructor |
|
36 |
|
37 /** |
|
38 * Two-phased constructing for the array. |
|
39 * |
|
40 */ |
|
41 static CPhoneHandlerCallArray* NewL( ); |
|
42 |
|
43 /** |
|
44 * C++ default destructor |
|
45 */ |
|
46 ~CPhoneHandlerCallArray( ); |
|
47 |
|
48 /** |
|
49 * Add call to array |
|
50 * @param aCall call to be added |
|
51 * @return result of appending |
|
52 */ |
|
53 void AddL( const MCall* aCall ); |
|
54 |
|
55 /** |
|
56 * Remove call from array |
|
57 * @param aCall call to be removed |
|
58 * @return result of removal |
|
59 */ |
|
60 TInt Remove( TCallInfo* aCall ); |
|
61 |
|
62 /** |
|
63 * Get call count. |
|
64 */ |
|
65 TInt CallCount( ); |
|
66 |
|
67 /** |
|
68 * Get call by state. |
|
69 */ |
|
70 TCallInfo* CallByState( TInt state ); |
|
71 |
|
72 /** |
|
73 * Finds call pointer specified by call index. |
|
74 * @param aCallIndex |
|
75 * @return corresponding call pointer or NULL if not found. |
|
76 */ |
|
77 TCallInfo* FindCall( TInt aCallIndex ); |
|
78 |
|
79 /** |
|
80 * Get connected call count. |
|
81 */ |
|
82 TInt ConnectedCallCount( ); |
|
83 |
|
84 /** |
|
85 * Get existing call count. |
|
86 */ |
|
87 TInt ExistingCallCount(); |
|
88 |
|
89 private: |
|
90 /** |
|
91 * C++ default constructor |
|
92 */ |
|
93 CPhoneHandlerCallArray( ); |
|
94 |
|
95 private: // data |
|
96 |
|
97 /** |
|
98 * Pointer array of call objects. |
|
99 */ |
|
100 RPointerArray<TCallInfo> iCallArray; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // CPHONEHANDLERCALLARRAY_H |
|