videocollection/hgmyvideos/src/vcxhgmyvideoscategorymodelhandler.cpp
branchRCL_3
changeset 26 67eb01668b0e
parent 23 8f0df5c82986
child 45 baf439b22ddd
equal deleted inserted replaced
23:8f0df5c82986 26:67eb01668b0e
  1123         }
  1123         }
  1124     
  1124     
  1125     TBuf<KMyVideosTitleUrlMaxLength> urlString;
  1125     TBuf<KMyVideosTitleUrlMaxLength> urlString;
  1126     TInt uidInt( 0 ) ;
  1126     TInt uidInt( 0 ) ;
  1127     
  1127     
  1128     // Try to get web link URL first.
  1128     // Try to get URL.
  1129     TInt error = iModel.GetMyVideosCustomizationString( urlKey, urlString );
  1129     TInt error = iModel.GetMyVideosCustomizationString( urlKey, urlString );
  1130     if ( error == KErrNone && urlString.Size() > 0 )
  1130     if ( error == KErrNone && urlString.Size() > 0 )
  1131         {
  1131         {
  1132         aUrl = urlString;
  1132         aUrl = urlString;
  1133         aItemType = TVcxHgMyVideosCategoryItemTypeUrl;
  1133         aItemType = TVcxHgMyVideosCategoryItemTypeUrl;
  1134         }
  1134         }
  1135     else 
  1135 
  1136         {
  1136     // Try to fetch application UID.
  1137         // If URL is not found try to fetch application UID.
  1137     error = iModel.GetMyVideosCustomizationInt( uidKey, uidInt );
  1138         error = iModel.GetMyVideosCustomizationInt( uidKey, uidInt );
  1138     if ( error == KErrNone && uidInt != 0 )
  1139         if ( error == KErrNone && uidInt != 0 )
  1139         {
  1140             {
  1140         aUid = TUid::Uid( uidInt );
  1141             aUid = TUid::Uid( uidInt );
  1141         aItemType = TVcxHgMyVideosCategoryItemTypeUid;
  1142             aItemType = TVcxHgMyVideosCategoryItemTypeUid;
       
  1143             }
       
  1144         }
  1142         }
  1145     }
  1143     }
  1146 
  1144 
  1147 // -----------------------------------------------------------------------------
  1145 // -----------------------------------------------------------------------------
  1148 // CVcxHgMyVideosVideoModelHandler::CreateHgListIconL()
  1146 // CVcxHgMyVideosVideoModelHandler::CreateHgListIconL()