wmdrm/camese/wmdrmdla/src/wmdrmdlauinotifier.cpp
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of WMDRM DLA UI Notifier
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <wmdrmdlauinotifier.h>
       
    20 #include <wmdrmdlacancelobserver.h>
       
    21 #include "wmdrmdlauinotifierimpl.h"
       
    22 
       
    23 // ======== LOCAL FUNCTIONS ========
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CWmDrmDlaUiNotifier::ConstructL
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 void CWmDrmDlaUiNotifier::ConstructL()
       
    32     {
       
    33     iImpl = CWmDrmDlaUiNotifierImpl::NewL();
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CWmDrmDlaUiNotifier::CWmDrmDlaUiNotifier
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CWmDrmDlaUiNotifier::CWmDrmDlaUiNotifier()
       
    41     {
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // CWmDrmDlaUiNotifier::NewL
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C CWmDrmDlaUiNotifier* CWmDrmDlaUiNotifier::NewL()
       
    49     {
       
    50     CWmDrmDlaUiNotifier* self = CWmDrmDlaUiNotifier::NewLC();
       
    51     CleanupStack::Pop( self );
       
    52     return self;
       
    53     }
       
    54 
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // CWmDrmDlaUiNotifier::NewLC
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 EXPORT_C CWmDrmDlaUiNotifier* CWmDrmDlaUiNotifier::NewLC()
       
    61     {
       
    62     CWmDrmDlaUiNotifier* self = new( ELeave ) CWmDrmDlaUiNotifier;
       
    63     CleanupStack::PushL( self );
       
    64     self->ConstructL();
       
    65     return self;
       
    66     }
       
    67 
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // CWmDrmDlaUiNotifier::~CWmDrmDlaUiNotifier
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 CWmDrmDlaUiNotifier::~CWmDrmDlaUiNotifier()
       
    74     {
       
    75     delete iImpl;
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------------------------
       
    79 // CWmDrmDlaUiNotifier::InitializeL
       
    80 // ---------------------------------------------------------------------------
       
    81 //
       
    82 EXPORT_C void CWmDrmDlaUiNotifier::InitializeL( 
       
    83     TUid aUid )
       
    84     {
       
    85     iImpl->InitializeL( aUid );
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // CWmDrmDlaUiNotifier::InitializeL
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 EXPORT_C void CWmDrmDlaUiNotifier::InitializeL( 
       
    93     TDesC8& aOpaqueData )
       
    94     {
       
    95     iImpl->InitializeL( aOpaqueData );
       
    96     }
       
    97 
       
    98 // ---------------------------------------------------------------------------
       
    99 // CWmDrmDlaUiNotifier::SetCancelObserver
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 EXPORT_C void CWmDrmDlaUiNotifier::SetCancelObserver( 
       
   103     MWmDrmDlaCancelObserver* aObserver )
       
   104     {
       
   105     iImpl->SetCancelObserver( aObserver );
       
   106     }
       
   107 
       
   108 // ---------------------------------------------------------------------------
       
   109 // CWmDrmDlaUiNotifier::SetSilent
       
   110 // ---------------------------------------------------------------------------
       
   111 //
       
   112 EXPORT_C void CWmDrmDlaUiNotifier::SetSilent( 
       
   113     TBool aSilent )
       
   114     {
       
   115     iImpl->SetSilent( aSilent );
       
   116     }
       
   117 
       
   118 // ---------------------------------------------------------------------------
       
   119 // CWmDrmDlaUiNotifier::SetLicenseAcquisitionProgress
       
   120 // ---------------------------------------------------------------------------
       
   121 //
       
   122 EXPORT_C void CWmDrmDlaUiNotifier::SetProgress( 
       
   123     TInt aState )
       
   124     {
       
   125     iImpl->SetProgress( aState );
       
   126     }
       
   127 
       
   128 // ---------------------------------------------------------------------------
       
   129 // CWmDrmDlaUiNotifier::HandleErrorL
       
   130 // ---------------------------------------------------------------------------
       
   131 //
       
   132 EXPORT_C void CWmDrmDlaUiNotifier::HandleErrorL( 
       
   133     TInt aError )
       
   134     {
       
   135     iImpl->HandleErrorL( aError );
       
   136     }