userlibandfileserver/fileserver/sfile/sf_file.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
child 22 2f92ad2dc5db
equal deleted inserted replaced
2:4122176ea935 4:56f325a607ea
  1613 // Get the file attributes.
  1613 // Get the file attributes.
  1614 //
  1614 //
  1615 	{
  1615 	{
  1616 
  1616 
  1617 	__PRINT(_L("TFsFileAtt::DoRequestL(CFsRequest* aRequest)"));
  1617 	__PRINT(_L("TFsFileAtt::DoRequestL(CFsRequest* aRequest)"));
  1618 	
       
  1619     TInt r = CheckDiskSpace(0, aRequest);
       
  1620     if(r != KErrNone)
       
  1621         return r;
       
  1622 
  1618 
  1623 	CFileShare* share=(CFileShare*)aRequest->ScratchValue();
  1619 	CFileShare* share=(CFileShare*)aRequest->ScratchValue();
  1624 //	TInt att=(TInt)aRequest->FileShare()->File().Att()&KEntryAttMaskSupported;
  1620 //	TInt att=(TInt)aRequest->FileShare()->File().Att()&KEntryAttMaskSupported;
  1625 	TInt att=(TInt)share->File().Att();	// DRM: let ROM XIP attribute through
  1621 	TInt att=(TInt)share->File().Att();	// DRM: let ROM XIP attribute through
  1626 	TPtrC8 pA((TUint8*)&att,sizeof(TInt));
  1622 	TPtrC8 pA((TUint8*)&att,sizeof(TInt));
  1682 //
  1678 //
  1683 // Get the modified date and time.
  1679 // Get the modified date and time.
  1684 //
  1680 //
  1685 	{
  1681 	{
  1686 	__PRINT(_L("TFsFileModified::DoRequestL(CFsRequest* aRequest)"));
  1682 	__PRINT(_L("TFsFileModified::DoRequestL(CFsRequest* aRequest)"));
  1687 
       
  1688     TInt r = CheckDiskSpace(0, aRequest);
       
  1689     if(r != KErrNone)
       
  1690         return r;
       
  1691         	
  1683         	
  1692 	CFileShare* share=(CFileShare*)aRequest->ScratchValue();
  1684 	CFileShare* share=(CFileShare*)aRequest->ScratchValue();
  1693 	TTime mod=share->File().Modified();
  1685 	TTime mod=share->File().Modified();
  1694 	TPtrC8 pM((TUint8*)&mod,sizeof(TTime));
  1686 	TPtrC8 pM((TUint8*)&mod,sizeof(TTime));
  1695 	aRequest->WriteL(KMsgPtr0,pM);
  1687 	aRequest->WriteL(KMsgPtr0,pM);