Example #1
0
// -----------------------------------------------------------------------------
// CMoveObject::ServiceL
// MoveObject request handler
// -----------------------------------------------------------------------------
//
EXPORT_C void CMoveObject::ServiceL()
    {
    PRINT( _L( "MM MTP => CMoveObject::ServiceL" ) );
    
    MmMtpDpUtility::SetPSStatus(EMtpPSStatusActive);
    MoveObjectL();

    PRINT( _L( "MM MTP <= CMoveObject::ServiceL" ) );
    }
/**
MoveObject request handler
*/
void CMTPMoveObject::ServiceL()
{
    OstTraceFunctionEntry0( CMTPMOVEOBJECT_SERVICEL_ENTRY );
    TMTPResponseCode ret = EMTPRespCodeOK;
    TRAPD(err, ret = MoveObjectL());
    if (err != KErrNone)
    {
        SendResponseL(EMTPRespCodeAccessDenied);
    }
    else if (EMTPRespCodeOK != ret)
    {
        SendResponseL(ret);
    }
    OstTraceFunctionExit0( CMTPMOVEOBJECT_SERVICEL_EXIT );
}