homescreenapp/serviceproviders/hsmenuserviceprovider/tsrc/t_hsmenuserviceprovider/inc/caitemmodel.h
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
   106     {
   106     {
   107         mDataIndex = index;
   107         mDataIndex = index;
   108         mDataRole = role;
   108         mDataRole = role;
   109         return mDataResult;
   109         return mDataResult;
   110     }
   110     }
       
   111 
   111     void setAutoUpdate(bool autoUpdate)
   112     void setAutoUpdate(bool autoUpdate)
   112     {
   113     {
   113         mIsAutoUpdateResult = autoUpdate;
   114         mIsAutoUpdateResult = autoUpdate;
   114     }
   115     }
       
   116 
   115     void setSecondLineVisibility(bool secondLineVisible)
   117     void setSecondLineVisibility(bool secondLineVisible)
   116     {
   118     {
   117         mSecondLineVisibilityResult = secondLineVisible;
   119         mSecondLineVisibilityResult = secondLineVisible;
   118     }
   120     }
       
   121 
   119     bool secondLineVisibility() const
   122     bool secondLineVisibility() const
   120     {
   123     {
   121         return mSecondLineVisibilityResult;
   124         return mSecondLineVisibilityResult;
   122     }
   125     }
   123     
   126     
   140     
   143     
   141     QSizeF getIconSize() const
   144     QSizeF getIconSize() const
   142     {
   145     {
   143         return mGetIconSizeResult;
   146         return mGetIconSizeResult;
   144     }
   147     }
       
   148     
   145     void updateModel(){}
   149     void updateModel(){}
       
   150     
   146     void setParentId(int parentId)
   151     void setParentId(int parentId)
   147     {
   152     {
   148         Q_UNUSED(parentId);
   153         Q_UNUSED(parentId);
   149     }
   154     }
       
   155     
   150     void setFlagsOn(const EntryFlags &onFlags) 
   156     void setFlagsOn(const EntryFlags &onFlags) 
   151     {
   157     {
   152         Q_UNUSED(onFlags);
   158         Q_UNUSED(onFlags);
   153     }
   159     }
       
   160     
   154     void setFlagsOff(const EntryFlags &offFlags) 
   161     void setFlagsOff(const EntryFlags &offFlags) 
   155     {
   162     {
   156         Q_UNUSED(offFlags);
   163         Q_UNUSED(offFlags);
   157     }
   164     }
       
   165     
   158     QSharedPointer<CaEntry> entry(const QModelIndex &index) const 
   166     QSharedPointer<CaEntry> entry(const QModelIndex &index) const 
   159     {
   167     {
   160         Q_UNUSED(index);
   168         Q_UNUSED(index);
   161         return mEntryResult;
   169         return mEntryResult;
   162     }
   170     }
       
   171     
   163     QList<int> getUninstallingEntriesIds(int componentId)
   172     QList<int> getUninstallingEntriesIds(int componentId)
   164     {
   173     {
   165         Q_UNUSED(componentId);
   174         Q_UNUSED(componentId);
   166         QList<int> ids;
   175         QList<int> ids;
   167         ids.append(mEntryResult->id());
   176         ids.append(mEntryResult->id());
   168         ids.append(4);
   177         ids.append(4);
   169         return ids;
   178         return ids;
   170     }
   179     }
       
   180     
   171     void updateProgress(int id, int valueOfProgress)
   181     void updateProgress(int id, int valueOfProgress)
   172     {
   182     {
   173         if (id == mEntryResult->id()) {
   183         if (id == mEntryResult->id()) {
   174             mEntryResult->setAttribute(QString("uninstall_progress"), 
   184             mEntryResult->setAttribute(QString("uninstall_progress"), 
   175                     QString().setNum(valueOfProgress));
   185                     QString().setNum(valueOfProgress));