commondrm/drmutility/src/drmuierrorhandling.cpp
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include "drmuierrorhandling.h"
    20 #include "drmuierrorhandling.h"
    21 #include "drmuihandlingimpl.h"
    21 #include "DrmUiHandlingImpl.h"
    22 
    22 
    23 // ---------------------------------------------------------------------------
    23 // ---------------------------------------------------------------------------
    24 // Constructor
    24 // Constructor
    25 // ---------------------------------------------------------------------------
    25 // ---------------------------------------------------------------------------
    26 //
    26 //
    76 // ---------------------------------------------------------------------------
    76 // ---------------------------------------------------------------------------
    77 // CDrmUiErrorHandling::HandleErrorAsyncL
    77 // CDrmUiErrorHandling::HandleErrorAsyncL
    78 // RFile based method
    78 // RFile based method
    79 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
    80 //
    80 //
    81 EXPORT_C TInt DRM::CDrmUiErrorHandling::HandleErrorAsyncL( 
    81 EXPORT_C TInt DRM::CDrmUiErrorHandling::HandleErrorAsyncL(
    82     RFile& aFile,
    82     RFile& aFile,
    83     ContentAccess::TIntent aIntent, 
    83     ContentAccess::TIntent aIntent,
    84     TInt aError, 
    84     TInt aError,
    85     DRM::MDrmHandleErrorObserver& aObserver )
    85     DRM::MDrmHandleErrorObserver& aObserver )
    86     {
    86     {
    87     TInt operation = iImplementation->HandleErrorAsyncL( aFile, 
    87     TInt operation = iImplementation->HandleErrorAsyncL( aFile,
    88                                                          aIntent, 
    88                                                          aIntent,
    89                                                          aError, 
    89                                                          aError,
    90                                                          aObserver);
    90                                                          aObserver);
    91     return operation;                                           
    91     return operation;
    92     }
    92     }
    93         
    93 
    94 // ---------------------------------------------------------------------------
    94 // ---------------------------------------------------------------------------
    95 // CDrmUiErrorHandling::HandleErrorL
    95 // CDrmUiErrorHandling::HandleErrorL
    96 // RFile based method
    96 // RFile based method
    97 // ---------------------------------------------------------------------------
    97 // ---------------------------------------------------------------------------
    98 //
    98 //
    99 EXPORT_C void DRM::CDrmUiErrorHandling::HandleErrorL( 
    99 EXPORT_C void DRM::CDrmUiErrorHandling::HandleErrorL(
   100     RFile& aFile,
   100     RFile& aFile,
   101     ContentAccess::TIntent aIntent,              
   101     ContentAccess::TIntent aIntent,
   102     TInt aError, 
   102     TInt aError,
   103     DRM::MDrmHandleErrorObserver* aObserver )
   103     DRM::MDrmHandleErrorObserver* aObserver )
   104     {
   104     {
   105     iImplementation->HandleErrorL( aFile, 
   105     iImplementation->HandleErrorL( aFile,
   106                                    aIntent, 
   106                                    aIntent,
   107                                    aError, 
   107                                    aError,
   108                                    aObserver);
   108                                    aObserver);
   109     }
   109     }
   110 
   110 
   111 // ---------------------------------------------------------------------------
   111 // ---------------------------------------------------------------------------
   112 // CDrmUiErrorHandling::HandleErrorAsyncL
   112 // CDrmUiErrorHandling::HandleErrorAsyncL
   113 // ContentAccess::CData based method
   113 // ContentAccess::CData based method
   114 // ---------------------------------------------------------------------------
   114 // ---------------------------------------------------------------------------
   115 //
   115 //
   116 EXPORT_C TInt DRM::CDrmUiErrorHandling::HandleErrorAsyncL( 
   116 EXPORT_C TInt DRM::CDrmUiErrorHandling::HandleErrorAsyncL(
   117     ContentAccess::CData& aFile,
   117     ContentAccess::CData& aFile,
   118     ContentAccess::TIntent aIntent,
   118     ContentAccess::TIntent aIntent,
   119     TInt aError, 
   119     TInt aError,
   120     DRM::MDrmHandleErrorObserver& aObserver )
   120     DRM::MDrmHandleErrorObserver& aObserver )
   121     {
   121     {
   122     TInt operation = iImplementation->HandleErrorAsyncL( aFile, 
   122     TInt operation = iImplementation->HandleErrorAsyncL( aFile,
   123                                                          aIntent, 
   123                                                          aIntent,
   124                                                          aError, 
   124                                                          aError,
   125                                                          aObserver);
   125                                                          aObserver);
   126     return operation;     
   126     return operation;
   127     }
   127     }
   128     
   128 
   129 // ---------------------------------------------------------------------------
   129 // ---------------------------------------------------------------------------
   130 // CDrmUiErrorHandling::HandleErrorL
   130 // CDrmUiErrorHandling::HandleErrorL
   131 // ContentAccess::CData based method
   131 // ContentAccess::CData based method
   132 // ---------------------------------------------------------------------------
   132 // ---------------------------------------------------------------------------
   133 //
   133 //
   134 EXPORT_C void DRM::CDrmUiErrorHandling::HandleErrorL( 
   134 EXPORT_C void DRM::CDrmUiErrorHandling::HandleErrorL(
   135     ContentAccess::CData& aFile,
   135     ContentAccess::CData& aFile,
   136     ContentAccess::TIntent aIntent,
   136     ContentAccess::TIntent aIntent,
   137     TInt aError, 
   137     TInt aError,
   138     DRM::MDrmHandleErrorObserver* aObserver )
   138     DRM::MDrmHandleErrorObserver* aObserver )
   139     {
   139     {
   140     iImplementation->HandleErrorL( aFile, 
   140     iImplementation->HandleErrorL( aFile,
   141                                    aIntent, 
   141                                    aIntent,
   142                                    aError, 
   142                                    aError,
   143                                    aObserver);    
   143                                    aObserver);
   144     }
   144     }
   145 
   145 
   146 
   146 
   147 
   147 
   148 // End of File
   148 // End of File