equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2007 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: Encapsulates uid and name. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CFUIDNAMEPAIR_H |
|
20 #define CFUIDNAMEPAIR_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * |
|
27 */ |
|
28 /** |
|
29 * Encapsulates uid name pair definition. |
|
30 * |
|
31 * @lib |
|
32 * @since S60 v4.0 |
|
33 */ |
|
34 class CCFUidNamePair : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Two phased constructor. |
|
40 * |
|
41 * @since S60 4.0 |
|
42 * @param aUid Uid. |
|
43 * @param aName Name. |
|
44 * @return CCFUidNamePair* |
|
45 */ |
|
46 static CCFUidNamePair* NewL( |
|
47 const TUid& aUid, |
|
48 const TDesC& aName ); |
|
49 static CCFUidNamePair* NewLC( |
|
50 const TUid& aUid, |
|
51 const TDesC& aName ); |
|
52 |
|
53 virtual ~CCFUidNamePair(); |
|
54 |
|
55 public: |
|
56 |
|
57 /** |
|
58 * Returns uid. |
|
59 * |
|
60 * @since S60 4.0 |
|
61 * @param None |
|
62 * @return const TUid& |
|
63 */ |
|
64 const TUid& Uid() const; |
|
65 |
|
66 /** |
|
67 * Returns name. |
|
68 * |
|
69 * @since S60 4.0 |
|
70 * @param None |
|
71 * @return const TDesC& |
|
72 */ |
|
73 const TDesC& Name() const; |
|
74 |
|
75 private: |
|
76 |
|
77 CCFUidNamePair( const TUid& aUid ); |
|
78 |
|
79 void ConstructL( const TDesC& aName ); |
|
80 |
|
81 private: // Data |
|
82 |
|
83 // Uid. |
|
84 TUid iUid; |
|
85 |
|
86 // Name. |
|
87 HBufC* iName; |
|
88 }; |
|
89 |
|
90 typedef RPointerArray< CCFUidNamePair > RUidNamePointerArray; |
|
91 |
|
92 #endif // CFUIDNAMEPAIR_H |