|
1 /* |
|
2 * Copyright (c) 2006-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMMPBLIST_H |
|
21 #define CMMPBLIST_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cmmtsyobjectlist.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CMmPhoneTsy; |
|
28 class CMmPhoneBookStoreTsy; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * This class provides the means for the Phone object (CMmPhoneTsy class) to |
|
34 * keep track of opened phonebooks. When a phonebook object is opened it should |
|
35 * be put on the Phone's PBList. |
|
36 */ |
|
37 NONSHARABLE_CLASS( CMmPBList ) : public CMmTsyObjectList |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param CMmPhoneTsy* aMmPhone pointer to the Phone |
|
44 * @return created CallList object |
|
45 */ |
|
46 static CMmPBList* NewL( CMmPhoneTsy* aMmPhone ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CMmPBList(); |
|
52 |
|
53 public: // New functions |
|
54 |
|
55 /** |
|
56 * Returns the PBStore that has the given index in container |
|
57 * |
|
58 * @param aIndex index of the PBStore which is to be returned. |
|
59 * @return PBStore object |
|
60 */ |
|
61 virtual CMmPhoneBookStoreTsy* GetMmPBByIndex( const TInt aIndex ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CMmPBList(); |
|
69 |
|
70 /** |
|
71 * Class attributes are created in ConstructL |
|
72 */ |
|
73 void ConstructL(); |
|
74 }; |
|
75 |
|
76 #endif // CMMPBLIST_H |
|
77 |
|
78 // End of file |