phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp
changeset 45 6b911d05207e
parent 37 ba76fc04e6c2
child 51 f39ed5e045e0
--- a/phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp	Fri Jun 04 10:19:18 2010 +0100
+++ b/phoneapp/phoneringingtoneplayer/src/cphoneringingtone.cpp	Wed Jun 23 18:12:20 2010 +0300
@@ -44,6 +44,9 @@
 _LIT(KVMp4, "video/mp4");
 _LIT(KV3gpp2, "video/3gpp2");
 
+//file size limit
+const TUint KPhoneToneFileSizeLimitKB = 5000;
+
 // MACROS
 
 // ============================ MEMBER FUNCTIONS ===============================
@@ -424,26 +427,8 @@
 //
 void CPhoneRingingTone::GetMaxToneFileSize()
     {
-    __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" );
-
-    TInt error(KErrNone);           
-    iToneFileSizeLimitKB = 5000;
-   
-    if ( error != KErrNone )
-        {
-        iToneFileSizeLimitKB = 0;
-        }
-    if ( iToneFileSizeLimitKB < 0 )
-        {
-        iToneFileSizeLimitKB = 0;
-        }
-  
-    __PHONELOG2( 
-        EBasic,
-        EPhoneControl, 
-        "CPhoneRingingtonePlayer::GetMaxToneFileSize - error (%d), aMaxSizeKB(%d)",
-        error,
-        iToneFileSizeLimitKB );       
+    __LOGMETHODSTARTEND( EPhoneControl, "CPhoneRingingtone::GetMaxToneFileSize()" );              
+    iToneFileSizeLimitKB = KPhoneToneFileSizeLimitKB;   
     }
 
 //  End of File