|
1 /* |
|
2 * Copyright (c) 2005 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 #include "fcplugininfo.h" |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // CFCPlugInInfo::NewL |
|
24 // Two-phased constructor. |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 CFCPlugInInfo* CFCPlugInInfo::NewL( const TUid& aUid, const TDesC8& aName ) |
|
28 { |
|
29 CFCPlugInInfo* self = new (ELeave) CFCPlugInInfo( aUid ); |
|
30 CleanupStack::PushL(self); |
|
31 self->ConstructL( aName ); |
|
32 CleanupStack::Pop(self); |
|
33 return self; |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CFCPlugInInfo::ConstructL |
|
38 // Symbian 2nd phase constructor. |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 void CFCPlugInInfo::ConstructL( const TDesC8& aName ) |
|
42 { |
|
43 iName = aName.AllocL(); |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CFCPlugInInfo::~CFCPlugInInfo |
|
48 // destructor. |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 CFCPlugInInfo::~CFCPlugInInfo() |
|
52 { |
|
53 delete iName; |
|
54 } |
|
55 |
|
56 // ---------------------------------------------------------------------------- |
|
57 // Constructor |
|
58 // ---------------------------------------------------------------------------- |
|
59 // |
|
60 CFCPlugInInfo::CFCPlugInInfo( const TUid& aUid ): |
|
61 iUid( aUid ) |
|
62 { |
|
63 } |
|
64 |
|
65 // ---------------------------------------------------------------------------- |
|
66 // CFCPlugInInfo::Name |
|
67 // ---------------------------------------------------------------------------- |
|
68 // |
|
69 const TDesC8& CFCPlugInInfo::Name() const |
|
70 { |
|
71 return *iName; |
|
72 } |
|
73 |
|
74 // ---------------------------------------------------------------------------- |
|
75 // CFCPlugInInfo::Uid |
|
76 // ---------------------------------------------------------------------------- |
|
77 // |
|
78 const TUid& CFCPlugInInfo::Uid() const |
|
79 { |
|
80 return iUid; |
|
81 } |
|
82 |
|
83 // End of File |