messagingapp/smartmessaging/ringbc/src/ringbc_p.cpp
changeset 48 4f501b74aeb1
parent 41 25fe1fe642e3
child 51 3507212d340e
equal deleted inserted replaced
46:b1f0785c289d 48:4f501b74aeb1
    10  * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11  *
    11  *
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:  
    14  * Description:  
    15  *     A class which takes care of reading the possible new
    15  *     
    16  *     service centres from SIM and adds them to pda-side Sms Settings.
       
    17  *
    16  *
    18  */
    17  */
    19 
    18 
    20 // SYSTEM INCLUDES
    19 // SYSTEM INCLUDES
    21 #include <pathinfo.h>
    20 #include <pathinfo.h>
    38 // ----------------------------------------------------------------------------
    37 // ----------------------------------------------------------------------------
    39 RingBcPrivate::RingBcPrivate()
    38 RingBcPrivate::RingBcPrivate()
    40 
    39 
    41     {
    40     {
    42     QDEBUG_WRITE("RingBcPrivate::RingBcPrivate : Enter")
    41     QDEBUG_WRITE("RingBcPrivate::RingBcPrivate : Enter")
    43 
    42     initL();
    44     TRAP_IGNORE(initL());
       
    45 
       
    46     QDEBUG_WRITE("RingBcPrivate::RingBcPrivate : Exit")
    43     QDEBUG_WRITE("RingBcPrivate::RingBcPrivate : Exit")
    47 
    44 
    48     }
    45     }
    49 
    46 
    50 // ----------------------------------------------------------------------------
    47 // ----------------------------------------------------------------------------
   161             TInt err = fileMan->Copy(fileName->Des(), path, CFileMan::ECopy | CFileMan::EOverWrite);
   158             TInt err = fileMan->Copy(fileName->Des(), path, CFileMan::ECopy | CFileMan::EOverWrite);
   162             User::LeaveIfError(err);
   159             User::LeaveIfError(err);
   163             }
   160             }
   164         CleanupStack::PopAndDestroy(2); // title,fileMan        
   161         CleanupStack::PopAndDestroy(2); // title,fileMan        
   165         }
   162         }
       
   163     else
       
   164     	{
       
   165         User::Leave(KErrCorrupt);
       
   166     	}
   166 
   167 
   167     CleanupStack::PopAndDestroy(); // dataBuf
   168     CleanupStack::PopAndDestroy(); // dataBuf
   168     CleanupStack::PopAndDestroy(); //file
   169     CleanupStack::PopAndDestroy(); //file
   169     CleanupStack::PopAndDestroy(); //fsSession
   170     CleanupStack::PopAndDestroy(); //fsSession
   170 
   171