wmdrm/camese/wmdrmdla/inc/wmdrmdlaplugincontainer.h
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:  Interface class for WMDRM DLA plugin container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_WMDRMDLAPLUGINCONTAINER_H
       
    20 #define C_WMDRMDLAPLUGINCONTAINER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CWmDrmDlaHttpPluginIf;
       
    25 class CWmDrmDlaUiNotifier;
       
    26 
       
    27 /**
       
    28  *  WMDRM DLA Plugin Container interface
       
    29  *
       
    30  *  @lib wmdrmdla.lib
       
    31  *  @since S60 v9.1
       
    32  */
       
    33 NONSHARABLE_CLASS( CWmDrmDlaPluginContainer ) : public CBase
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     static CWmDrmDlaPluginContainer* NewL();
       
    39     static CWmDrmDlaPluginContainer* NewLC();
       
    40 
       
    41     /**
       
    42     * Destructor.
       
    43     */
       
    44     virtual ~CWmDrmDlaPluginContainer();
       
    45     
       
    46     void SetHttpPlugin( CWmDrmDlaHttpPluginIf* aHttpPlugin );
       
    47     void GetHttpPlugin( CWmDrmDlaHttpPluginIf*& aHttpPlugin );
       
    48     CWmDrmDlaHttpPluginIf* HttpPlugin();
       
    49     
       
    50     void SetUiNotifier( CWmDrmDlaUiNotifier* aUiNotifier );
       
    51     void GetUiNotifier( CWmDrmDlaUiNotifier*& aUiNotifier );
       
    52     
       
    53     void SetIndex( TInt aIndex );
       
    54     TInt Index();
       
    55 
       
    56 protected:
       
    57 
       
    58 private:
       
    59 
       
    60     CWmDrmDlaPluginContainer();
       
    61 
       
    62     void ConstructL();
       
    63 
       
    64 private: // data
       
    65 
       
    66     CWmDrmDlaHttpPluginIf* iHttpPlugin;
       
    67     CWmDrmDlaUiNotifier* iUiNotifier;
       
    68     TInt iIndex;
       
    69     
       
    70     };
       
    71 
       
    72 #endif // C_WMDRMDLAPLUGINCONTAINER_H