commondrm/drmutility/src/drmautomatedusageerrorhandling.cpp
branchRCL_3
changeset 18 8a03a285ab14
parent 0 95b198f216e5
equal deleted inserted replaced
17:e16d72588c28 18:8a03a285ab14
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include "drmautomatedusageerrorhandling.h"
    20 #include "drmautomatedusageerrorhandling.h"
    21 #include "drmautomatedusageimpl.h"
    21 #include "DrmAutomatedUsageImpl.h"
    22 
    22 
    23 // ======== MEMBER FUNCTIONS ========
    23 // ======== MEMBER FUNCTIONS ========
    24 
    24 
    25 // ---------------------------------------------------------------------------
    25 // ---------------------------------------------------------------------------
    26 // Constructor
    26 // Constructor
    44 
    44 
    45 // ---------------------------------------------------------------------------
    45 // ---------------------------------------------------------------------------
    46 // Two-phased constructor
    46 // Two-phased constructor
    47 // ---------------------------------------------------------------------------
    47 // ---------------------------------------------------------------------------
    48 //
    48 //
    49 EXPORT_C DRM::CDrmAutomatedUsageErrorHandling* 
    49 EXPORT_C DRM::CDrmAutomatedUsageErrorHandling*
    50 DRM::CDrmAutomatedUsageErrorHandling::NewL(
    50 DRM::CDrmAutomatedUsageErrorHandling::NewL(
    51     DRM::CDrmAutomatedUsageImpl* aImplementation )
    51     DRM::CDrmAutomatedUsageImpl* aImplementation )
    52     {
    52     {
    53     DRM::CDrmAutomatedUsageErrorHandling* self(
    53     DRM::CDrmAutomatedUsageErrorHandling* self(
    54         DRM::CDrmAutomatedUsageErrorHandling::NewLC( aImplementation ) );
    54         DRM::CDrmAutomatedUsageErrorHandling::NewLC( aImplementation ) );
    84 // ---------------------------------------------------------------------------
    84 // ---------------------------------------------------------------------------
    85 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL
    85 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL
    86 // RFile based asynchronous method
    86 // RFile based asynchronous method
    87 // ---------------------------------------------------------------------------
    87 // ---------------------------------------------------------------------------
    88 //
    88 //
    89 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL( 
    89 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL(
    90     RFile& aFile,
    90     RFile& aFile,
    91     ContentAccess::TIntent aIntent, 
    91     ContentAccess::TIntent aIntent,
    92     TInt aError, 
    92     TInt aError,
    93     DRM::MDrmHandleErrorObserver& aObserver )
    93     DRM::MDrmHandleErrorObserver& aObserver )
    94     {
    94     {
    95     return iImplementation->HandleErrorAsyncL( aFile, 
    95     return iImplementation->HandleErrorAsyncL( aFile,
    96                                                aIntent, 
    96                                                aIntent,
    97                                                aError, 
    97                                                aError,
    98                                                aObserver );
    98                                                aObserver );
    99     }
    99     }
   100 
   100 
   101 // ---------------------------------------------------------------------------
   101 // ---------------------------------------------------------------------------
   102 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL
   102 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL
   103 // RFile based method
   103 // RFile based method
   104 // ---------------------------------------------------------------------------
   104 // ---------------------------------------------------------------------------
   105 //
   105 //
   106 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL( 
   106 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL(
   107     RFile& aFile,
   107     RFile& aFile,
   108     ContentAccess::TIntent aIntent,              
   108     ContentAccess::TIntent aIntent,
   109     TInt aError, 
   109     TInt aError,
   110     DRM::MDrmHandleErrorObserver* aObserver )
   110     DRM::MDrmHandleErrorObserver* aObserver )
   111     {
   111     {
   112     iImplementation->HandleErrorL( aFile, aIntent, aError, aObserver );
   112     iImplementation->HandleErrorL( aFile, aIntent, aError, aObserver );
   113     }
   113     }
   114 
   114 
   115 // ---------------------------------------------------------------------------
   115 // ---------------------------------------------------------------------------
   116 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL
   116 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL
   117 // CData based asynchronous method
   117 // CData based asynchronous method
   118 // ---------------------------------------------------------------------------
   118 // ---------------------------------------------------------------------------
   119 //
   119 //
   120 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL( 
   120 EXPORT_C TInt DRM::CDrmAutomatedUsageErrorHandling::HandleErrorAsyncL(
   121     ContentAccess::CData& aFile,
   121     ContentAccess::CData& aFile,
   122     ContentAccess::TIntent aIntent,
   122     ContentAccess::TIntent aIntent,
   123     TInt aError, 
   123     TInt aError,
   124     DRM::MDrmHandleErrorObserver& aObserver )
   124     DRM::MDrmHandleErrorObserver& aObserver )
   125     {
   125     {
   126     return iImplementation->HandleErrorAsyncL( aFile, 
   126     return iImplementation->HandleErrorAsyncL( aFile,
   127                                                aIntent, 
   127                                                aIntent,
   128                                                aError, 
   128                                                aError,
   129                                                aObserver);
   129                                                aObserver);
   130     }
   130     }
   131 
   131 
   132 // ---------------------------------------------------------------------------
   132 // ---------------------------------------------------------------------------
   133 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL
   133 // DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL
   134 // CData based method
   134 // CData based method
   135 // ---------------------------------------------------------------------------
   135 // ---------------------------------------------------------------------------
   136 //
   136 //
   137 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL( 
   137 EXPORT_C void DRM::CDrmAutomatedUsageErrorHandling::HandleErrorL(
   138     ContentAccess::CData& aData,
   138     ContentAccess::CData& aData,
   139     ContentAccess::TIntent aIntent,
   139     ContentAccess::TIntent aIntent,
   140     TInt aError, 
   140     TInt aError,
   141     DRM::MDrmHandleErrorObserver* aObserver )
   141     DRM::MDrmHandleErrorObserver* aObserver )
   142     {
   142     {
   143     iImplementation->HandleErrorL( aData, aIntent, aError, aObserver );    
   143     iImplementation->HandleErrorL( aData, aIntent, aError, aObserver );
   144     }
   144     }
   145 // End of File
   145 // End of File
   146 
   146