phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
   387     //return KErrNone;
   387     //return KErrNone;
   388     
   388     
   389     // Get file size
   389     // Get file size
   390     TInt size = 0;
   390     TInt size = 0;
   391 
   391 
   392 // <-- QT PHONE START -->    
       
   393     RFs fs;   
   392     RFs fs;   
   394     TInt error = fs.Connect();
   393     TInt error = fs.Connect();
   395     TEntry entry;
   394     TEntry entry;
   396     if ( KErrNone == error )
   395     if ( KErrNone == error )
   397         {
   396         {
   405         if ( aSizeLimitKB  &&  size > aSizeLimitKB )
   404         if ( aSizeLimitKB  &&  size > aSizeLimitKB )
   406             {
   405             {
   407             error = KErrTooBig;
   406             error = KErrTooBig;
   408             }
   407             }
   409         }
   408         }
   410 // <-- QT PHONE END -->
       
   411 
   409 
   412     fs.Close();
   410     fs.Close();
   413     __PHONELOG1( 
   411     __PHONELOG1( 
   414         EBasic,
   412         EBasic,
   415         EPhoneControl, 
   413         EPhoneControl, 
   426 //
   424 //
   427 void CPhoneRingingTone::GetMaxToneFileSize()
   425 void CPhoneRingingTone::GetMaxToneFileSize()
   428     {
   426     {
   429     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" );
   427     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" );
   430 
   428 
   431 // <-- QT PHONE START -->     
       
   432     /*const TInt error = CPhoneCenRepProxy::Instance()->GetInt( 
       
   433             KCRUidProfileEngine,
       
   434             KProEngRingingToneMaxSize,
       
   435             iToneFileSizeLimitKB );*/
       
   436     TInt error(KErrNone);           
   429     TInt error(KErrNone);           
   437     iToneFileSizeLimitKB = 5000;
   430     iToneFileSizeLimitKB = 5000;
   438 // <-- QT PHONE END -->     
       
   439    
   431    
   440     if ( error != KErrNone )
   432     if ( error != KErrNone )
   441         {
   433         {
   442         iToneFileSizeLimitKB = 0;
   434         iToneFileSizeLimitKB = 0;
   443         }
   435         }