omadrm/drmengine/agentv2/src/Oma2AgentContent.cpp
changeset 54 5ebe1934bb32
parent 49 69d8e75812b7
child 84 b09186059647
equal deleted inserted replaced
52:d752ced89971 54:5ebe1934bb32
    23 #include <caf/bitset.h>
    23 #include <caf/bitset.h>
    24 #include <caf/attribute.h>
    24 #include <caf/attribute.h>
    25 #include <e32test.h>
    25 #include <e32test.h>
    26 #include <utf.h>
    26 #include <utf.h>
    27 
    27 
    28 
    28 #include <drmbrowserlauncher.h>
    29 //#include <SchemeHandler.h>
       
    30 
       
    31 
    29 
    32 #include "Oma2AgentContent.h"
    30 #include "Oma2AgentContent.h"
    33 #include "Oma2AgentAttributes.h"
    31 #include "Oma2AgentAttributes.h"
    34 #include "Oma1Dcf.h"
    32 #include "Oma1Dcf.h"
    35 #include "oma2dcf.h"
    33 #include "oma2dcf.h"
   602     TRequestStatus& aStatus,
   600     TRequestStatus& aStatus,
   603     const TDesC& aUniqueId)
   601     const TDesC& aUniqueId)
   604     {
   602     {
   605     TRequestStatus *ptr = &aStatus;
   603     TRequestStatus *ptr = &aStatus;
   606     TInt r;
   604     TInt r;
   607     //HBufC* b = NULL;
   605     HBufC* b = NULL;
   608 
   606 
   609     r = KErrNotSupported;
   607     r = KErrNotSupported;
   610 /*
       
   611     CSchemeHandler* handler = NULL;
       
   612 
   608 
   613     r = iDcf->OpenPart(aUniqueId);
   609     r = iDcf->OpenPart(aUniqueId);
   614     if (r == KErrNone && iDcf->iRightsIssuerURL != NULL)
   610     if (r == KErrNone && iDcf->iRightsIssuerURL != NULL)
   615         {
   611         {
   616         TRAP(r, b = CnvUtfConverter::ConvertToUnicodeFromUtf8L(
   612         TRAP(r, b = CnvUtfConverter::ConvertToUnicodeFromUtf8L(
   617             *iDcf->iRightsIssuerURL));
   613             *iDcf->iRightsIssuerURL));
   618         if (b != NULL)
   614         if (b != NULL)
   619             {
   615             {
   620             TRAP(r, handler = CSchemeHandler::NewL(*b));
   616     				DRM::CDrmBrowserLauncher* browserLauncher = DRM::CDrmBrowserLauncher::NewLC();
   621             if (handler != NULL)
   617     	
   622                 {
   618 				    browserLauncher->LaunchUrlL(*b);
   623                 TRAP(r, handler->HandleUrlStandaloneL());
   619     
   624                 delete handler;
   620     				CleanupStack::PopAndDestroy(); // browserLauncher
   625                 }
   621    
   626             delete b;
   622             delete b;
   627             }
   623             }
   628         }
   624         }
   629 */
   625 
   630     User::RequestComplete(ptr, r);
   626 		User::RequestComplete(ptr, r);
   631     }
   627     }
   632 
   628 
   633 // -----------------------------------------------------------------------------
   629 // -----------------------------------------------------------------------------
   634 // COma2AgentContent::CancelRequestRights
   630 // COma2AgentContent::CancelRequestRights
   635 // Not supported, getting rights is handled outside the scope of the agent and
   631 // Not supported, getting rights is handled outside the scope of the agent and