commondrm/drmutility/src/DrmUtilityDownloadManager.cpp
changeset 23 493788a4a8a4
parent 0 95b198f216e5
child 20 a20e54f39dd4
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "drmutilitydownloadmanager.h"
    20 #include "DrmUtilityDownloadManager.h"
    21 #include "drmutilitydmgrwrapper.h"
    21 #include "DrmUtilityDmgrWrapper.h"
    22 
    22 
    23 // CONSTANTS
    23 // CONSTANTS
    24 _LIT( KDrmUtilityDmgrHandlerName, "\\system\\libs\\DrmUtilityDmgrWrapper.dll" );
    24 _LIT( KDrmUtilityDmgrHandlerName, "\\system\\libs\\DrmUtilityDmgrWrapper.dll" );
    25 
    25 
    26 typedef TAny* (*NewDMgrL)();
    26 typedef TAny* (*NewDMgrL)();
    61 // Two-phased constructor.
    61 // Two-phased constructor.
    62 // -----------------------------------------------------------------------------
    62 // -----------------------------------------------------------------------------
    63 //
    63 //
    64 CDrmUtilityDownloadManager* CDrmUtilityDownloadManager::NewL()
    64 CDrmUtilityDownloadManager* CDrmUtilityDownloadManager::NewL()
    65     {
    65     {
    66     CDrmUtilityDownloadManager* self( 
    66     CDrmUtilityDownloadManager* self(
    67                                 new( ELeave ) CDrmUtilityDownloadManager() );
    67                                 new( ELeave ) CDrmUtilityDownloadManager() );
    68     
    68 
    69     CleanupStack::PushL( self );
    69     CleanupStack::PushL( self );
    70     self->ConstructL();
    70     self->ConstructL();
    71     CleanupStack::Pop();
    71     CleanupStack::Pop();
    72 
    72 
    73     return self;
    73     return self;
    82 
    82 
    83 // -----------------------------------------------------------------------------
    83 // -----------------------------------------------------------------------------
    84 // CDrmUtilityDownloadManager::DownloadAndHandleRoapTriggerL
    84 // CDrmUtilityDownloadManager::DownloadAndHandleRoapTriggerL
    85 //
    85 //
    86 // -----------------------------------------------------------------------------
    86 // -----------------------------------------------------------------------------
    87 //    
    87 //
    88 void CDrmUtilityDownloadManager::DownloadAndHandleRoapTriggerL(
    88 void CDrmUtilityDownloadManager::DownloadAndHandleRoapTriggerL(
    89     const HBufC8* aUrl, CCoeEnv& aCoeEnv )
    89     const HBufC8* aUrl, CCoeEnv& aCoeEnv )
    90     {
    90     {
    91     iDMgrHandler->DownloadAndHandleRoapTriggerL( aUrl, aCoeEnv );
    91     iDMgrHandler->DownloadAndHandleRoapTriggerL( aUrl, aCoeEnv );
    92     }
    92     }
   102     iDMgrHandler->DownloadAndHandleRoapTriggerL( aUrl );
   102     iDMgrHandler->DownloadAndHandleRoapTriggerL( aUrl );
   103     }
   103     }
   104 
   104 
   105 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------------------------
   106 // CDrmUtilityDownloadManager::GetErrorUrlL
   106 // CDrmUtilityDownloadManager::GetErrorUrlL
   107 // 
   107 //
   108 // -----------------------------------------------------------------------------
   108 // -----------------------------------------------------------------------------
   109 //
   109 //
   110 HBufC8* CDrmUtilityDownloadManager::GetErrorUrlL()
   110 HBufC8* CDrmUtilityDownloadManager::GetErrorUrlL()
   111     {
   111     {
   112     return iDMgrHandler->GetErrorUrlL();
   112     return iDMgrHandler->GetErrorUrlL();