116 TInt CTFxEffect::CachePriority() |
116 TInt CTFxEffect::CachePriority() |
117 { |
117 { |
118 return iCachePriority; |
118 return iCachePriority; |
119 } |
119 } |
120 |
120 |
121 void CTFxEffect::SetWantedTime(const TDesC8& aTime) |
121 void CTFxEffect::SetWantedTimeL(const TDesC8& aTime) |
122 { |
122 { |
123 if (aTime.Length() > 0) |
123 if (aTime.Length() > 0) |
124 { |
124 { |
125 TLex8 lexer(aTime); |
125 TLex8 lexer(aTime); |
126 User::LeaveIfError(lexer.Val(iWantedTime)); |
126 User::LeaveIfError(lexer.Val(iWantedTime)); |
255 } |
255 } |
256 iEffectName = HBufC::NewL(aEffect.Length()*2); |
256 iEffectName = HBufC::NewL(aEffect.Length()*2); |
257 iEffectName->Des().Copy(aEffect); |
257 iEffectName->Des().Copy(aEffect); |
258 } |
258 } |
259 |
259 |
260 void CTFxTransition::SetType(const TDesC8& aType) |
260 void CTFxTransition::SetTypeL(const TDesC8& aType) |
261 { |
261 { |
262 if (aType.Length() > 0) |
262 if (aType.Length() > 0) |
263 { |
263 { |
264 TLex8 lexer(aType); |
264 TLex8 lexer(aType); |
265 User::LeaveIfError(lexer.Val(iType)); |
265 User::LeaveIfError(lexer.Val(iType)); |
704 { |
704 { |
705 RAttribute attribute = aAttributes[count]; |
705 RAttribute attribute = aAttributes[count]; |
706 RTagInfo tag = attribute.Attribute(); |
706 RTagInfo tag = attribute.Attribute(); |
707 if (!tag.LocalName().DesC().CompareF(KEffectNameTag)) |
707 if (!tag.LocalName().DesC().CompareF(KEffectNameTag)) |
708 { |
708 { |
709 iCurrentEffect->SetName(attribute.Value().DesC()); |
709 iCurrentEffect->SetNameL(attribute.Value().DesC()); |
710 } |
710 } |
711 else if (!tag.LocalName().DesC().CompareF(KEffectFileTag)) |
711 else if (!tag.LocalName().DesC().CompareF(KEffectFileTag)) |
712 { |
712 { |
713 iCurrentEffect->SetFilename(attribute.Value().DesC()); |
713 iCurrentEffect->SetFilenameL(attribute.Value().DesC()); |
714 } |
714 } |
715 else if (!tag.LocalName().DesC().CompareF(KEffectWantedTimeTag)) |
715 else if (!tag.LocalName().DesC().CompareF(KEffectWantedTimeTag)) |
716 { |
716 { |
717 iCurrentEffect->SetWantedTime(attribute.Value().DesC()); |
717 iCurrentEffect->SetWantedTimeL(attribute.Value().DesC()); |
718 } |
718 } |
719 else if (!tag.LocalName().DesC().CompareF(KEffectMinTimeTag)) |
719 else if (!tag.LocalName().DesC().CompareF(KEffectMinTimeTag)) |
720 { |
720 { |
721 iCurrentEffect->SetMinTime(attribute.Value().DesC()); |
721 iCurrentEffect->SetMinTimeL(attribute.Value().DesC()); |
722 } |
722 } |
723 else if (!tag.LocalName().DesC().CompareF(KEffectCachePriorityTag)) |
723 else if (!tag.LocalName().DesC().CompareF(KEffectCachePriorityTag)) |
724 { |
724 { |
725 iCurrentEffect->SetCachePriority(attribute.Value().DesC()); |
725 iCurrentEffect->SetCachePriorityL(attribute.Value().DesC()); |
726 } |
726 } |
727 } |
727 } |
728 } |
728 } |
729 |
729 |
730 void CTFXConfigParser::OnSelStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes, TInt /*aErrorCode*/) |
730 void CTFXConfigParser::OnSelStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes, TInt /*aErrorCode*/) |
771 { |
771 { |
772 RAttribute attribute = aAttributes[count]; |
772 RAttribute attribute = aAttributes[count]; |
773 RTagInfo tag = attribute.Attribute(); |
773 RTagInfo tag = attribute.Attribute(); |
774 if (!tag.LocalName().DesC().CompareF(KContextTag)) |
774 if (!tag.LocalName().DesC().CompareF(KContextTag)) |
775 { |
775 { |
776 iCurrentTransition->SetContextId(attribute.Value().DesC()); |
776 iCurrentTransition->SetContextIdL(attribute.Value().DesC()); |
777 } |
777 } |
778 else if (!tag.LocalName().DesC().CompareF(KEffectTag)) |
778 else if (!tag.LocalName().DesC().CompareF(KEffectTag)) |
779 { |
779 { |
780 iCurrentTransition->SetEffectNameL(attribute.Value().DesC()); |
780 iCurrentTransition->SetEffectNameL(attribute.Value().DesC()); |
781 } |
781 } |
782 else if (!tag.LocalName().DesC().CompareF(KUidTag)) |
782 else if (!tag.LocalName().DesC().CompareF(KUidTag)) |
783 { |
783 { |
784 iCurrentTransition->SetUid(attribute.Value().DesC()); |
784 iCurrentTransition->SetUidL(attribute.Value().DesC()); |
785 } |
785 } |
786 else if( !tag.LocalName().DesC().CompareF(KTypeTag)) |
786 else if( !tag.LocalName().DesC().CompareF(KTypeTag)) |
787 { |
787 { |
788 iCurrentTransition->SetType(attribute.Value().DesC()); |
788 iCurrentTransition->SetTypeL(attribute.Value().DesC()); |
789 } |
789 } |
790 } |
790 } |
791 } |
791 } |
792 else if (iParserState == EStateParsingCtrl) |
792 else if (iParserState == EStateParsingCtrl) |
793 { |
793 { |