|
1 /* |
|
2 * Copyright (c) 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: This class implements MProEngProfileNameArray |
|
15 * interface. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CPROENGPROFILENAMEARRAYIMPL_H |
|
22 #define CPROENGPROFILENAMEARRAYIMPL_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <MProEngProfileNameArray.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MProEngProfileName; |
|
30 class MProfilesNamesArray; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * This class implements MProEngProfileNameArray interface. |
|
36 * |
|
37 * @lib ProfileEngine.lib |
|
38 * @since 3.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CProEngProfileNameArrayImpl ) |
|
41 : public CBase, |
|
42 public MProEngProfileNameArray |
|
43 { |
|
44 public: // Constructor and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * @param aProfilesNamesArray the internal interface to the profile name |
|
49 * array. Ownership is transferred. |
|
50 */ |
|
51 static CProEngProfileNameArrayImpl* NewL( |
|
52 MProfilesNamesArray* aProfilesNamesArray ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CProEngProfileNameArrayImpl(); |
|
58 |
|
59 public: |
|
60 |
|
61 /** |
|
62 * From MDesCArray |
|
63 */ |
|
64 TInt MdcaCount() const; |
|
65 |
|
66 /** |
|
67 * From MDesCArray |
|
68 */ |
|
69 TPtrC MdcaPoint( TInt aIndex ) const; |
|
70 |
|
71 /** |
|
72 * From MProEngProfileNameArray |
|
73 */ |
|
74 TInt ProfileId( TInt aIndex ) const; |
|
75 |
|
76 /** |
|
77 * From MProEngProfileNameArray |
|
78 */ |
|
79 TInt FindById( TInt aId ) const; |
|
80 |
|
81 /** |
|
82 * From MProEngProfileNameArray |
|
83 */ |
|
84 TInt FindByName( const TDesC& aProfileName ) const; |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * C++ default constructor. |
|
90 */ |
|
91 CProEngProfileNameArrayImpl( MProfilesNamesArray* aProfilesNamesArray ); |
|
92 |
|
93 private: // Data |
|
94 |
|
95 // Own: the real implementation of the profile name array |
|
96 MProfilesNamesArray* iProfilesNamesArray; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CPROENGPROFILENAMEARRAYIMPL_H |
|
101 |
|
102 // End of File |
|
103 |