|
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: |
|
15 * CWmWidgetData , RWidgetDataValues inline function definitions |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef WMWIDGETDATA_INL_ |
|
20 #define WMWIDGETDATA_INL_ |
|
21 |
|
22 /** the HsContent info */ |
|
23 inline CHsContentInfo& CWmWidgetData::HsContentInfo() |
|
24 { return *iHsContentInfo; } |
|
25 |
|
26 /** the HsContent info */ |
|
27 inline const CHsContentInfo& CWmWidgetData::HsContentInfo() const |
|
28 { return *iHsContentInfo; } |
|
29 |
|
30 /** widget name */ |
|
31 inline const TDesC& CWmWidgetData::Name() const |
|
32 { return iHsContentInfo->Name(); } |
|
33 |
|
34 /** widget description */ |
|
35 inline const TDesC& CWmWidgetData::Description() const |
|
36 { return iHsContentInfo->Description(); } |
|
37 |
|
38 /** widget uid */ |
|
39 inline TUid CWmWidgetData::Uid() const |
|
40 { return UidFromString( iHsContentInfo->Uid() ); }; |
|
41 |
|
42 /** cps widget publisher id */ |
|
43 inline const TDesC& CWmWidgetData::PublisherId() const |
|
44 { return iHsContentInfo->PublisherId(); } |
|
45 |
|
46 /** widget type */ |
|
47 inline CWmWidgetData::TWidgetType CWmWidgetData::WidgetType() const |
|
48 { return iWidgetType; } |
|
49 |
|
50 /** running install animation index */ |
|
51 inline TInt CWmWidgetData::InstallAnimationIndex() const |
|
52 { return iInstallAnimationIndex; } |
|
53 |
|
54 /** the logo bitmap */ |
|
55 inline const CFbsBitmap* CWmWidgetData::LogoImage() |
|
56 { return iLogoImage; } |
|
57 |
|
58 /** the logo bitmap */ |
|
59 inline const CFbsBitmap* CWmWidgetData::LogoImageMask() |
|
60 { return iLogoImageMask; } |
|
61 |
|
62 /** whether the widget data is valid or not */ |
|
63 inline TBool CWmWidgetData::IsValid() |
|
64 { return iValid; } |
|
65 |
|
66 /** sets the widget data validity */ |
|
67 inline void CWmWidgetData::SetValid( TBool aValid ) |
|
68 { iValid = aValid; } |
|
69 |
|
70 |
|
71 //From RWidgetDataValues |
|
72 |
|
73 /** returns number of items in the pointer array */ |
|
74 inline TInt RWidgetDataValues::MdcaCount() const |
|
75 { |
|
76 return Count(); |
|
77 } |
|
78 /** returns the pointed widget name */ |
|
79 inline TPtrC16 RWidgetDataValues::MdcaPoint(TInt aIndex) const |
|
80 { |
|
81 const TPtrC16 ptr( (*this)[aIndex]->Name() ); |
|
82 return ptr; |
|
83 } |
|
84 |
|
85 #endif /* WMWIDGETDATA_INL_ */ |