src/hbcore/effects/hbeffectfxmldata.cpp
changeset 5 627c4a0fd0e7
parent 0 16d8024aca5e
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
   102 QList<HbEffectFxmlParamData> HbEffectFxmlFilterData::paramData() const
   102 QList<HbEffectFxmlParamData> HbEffectFxmlFilterData::paramData() const
   103 {
   103 {
   104     // Make a regular QList. Note that some of the underlying structures may
   104     // Make a regular QList. Note that some of the underlying structures may
   105     // still stay in shared memory.
   105     // still stay in shared memory.
   106     QList<HbEffectFxmlParamData> paramDataList;
   106     QList<HbEffectFxmlParamData> paramDataList;
   107     foreach (const HbEffectFxmlParamData &data, mFxmlParams) {
   107     foreach(const HbEffectFxmlParamData & data, mFxmlParams) {
   108         paramDataList.append(data);
   108         paramDataList.append(data);
   109     }
   109     }
   110     return paramDataList;
   110     return paramDataList;
   111 }
   111 }
   112 
   112 
   157     mDuration = value;
   157     mDuration = value;
   158 }
   158 }
   159 
   159 
   160 QString HbEffectFxmlParamData::getAttribute(const QString &attrName) const
   160 QString HbEffectFxmlParamData::getAttribute(const QString &attrName) const
   161 {
   161 {
   162     foreach (const HbEffectFxmlAttrListEntry &a, mAttributes) {
   162     foreach(const HbEffectFxmlAttrListEntry & a, mAttributes) {
   163         if (a.mKey == attrName)
   163         if (a.mKey == attrName) {
   164             return a.mValue;
   164             return a.mValue;
       
   165         }
   165     }
   166     }
   166     return QString();
   167     return QString();
   167 }
   168 }
   168 
   169 
   169 void HbEffectFxmlParamData::setAttribute(const QString &attrName, const QString &value)
   170 void HbEffectFxmlParamData::setAttribute(const QString &attrName, const QString &value)
   207 QList<HbKeyFrame> HbEffectFxmlParamData::keyFrames() const
   208 QList<HbKeyFrame> HbEffectFxmlParamData::keyFrames() const
   208 {
   209 {
   209     // Make a regular QList. Note that some of the underlying structures may
   210     // Make a regular QList. Note that some of the underlying structures may
   210     // still stay in shared memory.
   211     // still stay in shared memory.
   211     QList<HbKeyFrame> keyFrameList;
   212     QList<HbKeyFrame> keyFrameList;
   212     foreach (const HbKeyFrame &keyFrame, mKeyFrames) {
   213     foreach(const HbKeyFrame & keyFrame, mKeyFrames) {
   213         keyFrameList.append(keyFrame);
   214         keyFrameList.append(keyFrame);
   214     }
   215     }
   215     return keyFrameList;
   216     return keyFrameList;
   216 }
   217 }
   217 
   218 
   223 QString HbEffectFxmlParamData::startRef() const
   224 QString HbEffectFxmlParamData::startRef() const
   224 {
   225 {
   225     return mStartRef;
   226     return mStartRef;
   226 }
   227 }
   227 
   228 
   228 void HbEffectFxmlParamData::setStartRef(const QString& value)
   229 void HbEffectFxmlParamData::setStartRef(const QString &value)
   229 {
   230 {
   230     mStartRef = value;
   231     mStartRef = value;
   231 }
   232 }
   232 
   233 
   233 QString HbEffectFxmlParamData::endRef() const
   234 QString HbEffectFxmlParamData::endRef() const
   234 {
   235 {
   235     return mEndRef;
   236     return mEndRef;
   236 }
   237 }
   237 
   238 
   238 void HbEffectFxmlParamData::setEndRef(const QString& value)
   239 void HbEffectFxmlParamData::setEndRef(const QString &value)
   239 {
   240 {
   240     mEndRef = value;
   241     mEndRef = value;
   241 }
   242 }
   242 
   243 
   243 bool HbEffectFxmlParamData::loopDefined() const
   244 bool HbEffectFxmlParamData::loopDefined() const
   299 QList<HbEffectFxmlParamData> HbEffectFxmlData::paramData() const
   300 QList<HbEffectFxmlParamData> HbEffectFxmlData::paramData() const
   300 {
   301 {
   301     // Make a regular QList. Note that some of the underlying structures may
   302     // Make a regular QList. Note that some of the underlying structures may
   302     // still stay in shared memory.
   303     // still stay in shared memory.
   303     QList<HbEffectFxmlParamData> paramDataList;
   304     QList<HbEffectFxmlParamData> paramDataList;
   304     foreach (const HbEffectFxmlParamData &data, mFxmlParams) {
   305     foreach(const HbEffectFxmlParamData & data, mFxmlParams) {
   305         paramDataList.append(data);
   306         paramDataList.append(data);
   306     }
   307     }
   307     return paramDataList;
   308     return paramDataList;
   308 }
   309 }
   309 
   310 
   315 QList<HbEffectFxmlFilterData> HbEffectFxmlData::filterData() const
   316 QList<HbEffectFxmlFilterData> HbEffectFxmlData::filterData() const
   316 {
   317 {
   317     // Make a regular QList. Note that some of the underlying structures may
   318     // Make a regular QList. Note that some of the underlying structures may
   318     // still stay in shared memory.
   319     // still stay in shared memory.
   319     QList<HbEffectFxmlFilterData> paramDataList;
   320     QList<HbEffectFxmlFilterData> paramDataList;
   320     foreach (const HbEffectFxmlFilterData &data, mFilters) {
   321     foreach(const HbEffectFxmlFilterData & data, mFilters) {
   321         paramDataList.append(data);
   322         paramDataList.append(data);
   322     }
   323     }
   323     return paramDataList;
   324     return paramDataList;
   324 }
   325 }
   325 
   326 
   326 HbMemoryManager::MemoryType HbEffectFxmlData::memoryType() const
   327 HbMemoryManager::MemoryType HbEffectFxmlData::memoryType() const
   327 {
   328 {
   328     return mMemoryType;
   329     return mMemoryType;
   329 }
   330 }
   330 HbEffectInfo::HbEffectInfo():mItem(0)
   331 HbEffectInfo::HbEffectInfo(): mItem(0)
   331 {
   332 {
   332 
   333 
   333 }
   334 }
   334 
   335 
   335 bool HbEffectInfo::fromTheme() const
   336 bool HbEffectInfo::fromTheme() const
   360 {
   361 {
   361     return mItem;
   362     return mItem;
   362 }
   363 }
   363 bool HbEffectInfo::shared() const
   364 bool HbEffectInfo::shared() const
   364 {
   365 {
   365     return mShared;	
   366     return mShared;
   366 }
   367 }
   367 
   368 
   368 
   369 
   369 void HbEffectInfo::setEffectData(HbEffectFxmlData fxmlData)
   370 void HbEffectInfo::setEffectData(HbEffectFxmlData fxmlData)
   370 {
   371 {