filemanager/View/inc/CFileManagerFullOmaDrmInfo.h
branchRCL_3
changeset 39 65326cf895ed
parent 0 6a9f87576119
equal deleted inserted replaced
38:491b3ed49290 39:65326cf895ed
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Gets the item DRM information
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CFILEMANAGERFULLOMADRMINFO_H
       
    21 #define CFILEMANAGERFULLOMADRMINFO_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <badesca.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CCoeEnv;
       
    30 class DRM::CDrmUiHandling;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * Collects the drm info of item and puts strings to given array
       
    35  *
       
    36  *  @lib FileManagerView.lib
       
    37  *  @since S60 2.8
       
    38  */
       
    39 NONSHARABLE_CLASS(CFileManagerFullOmaDrmInfo) : public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44          * Two-phased constructor.
       
    45          * @param aArray Array which is filled with DRM information,
       
    46          *               to be displayed in info popup
       
    47          * @param aFullPath Full path to item which DRM info is needed
       
    48          * @param aCoeEnv Control environment
       
    49          * @return Newly created popup.
       
    50          */
       
    51         static CFileManagerFullOmaDrmInfo* NewL(
       
    52             CDesCArray& aArray, const TDesC& aFullPath, CCoeEnv& aCoeEnv );
       
    53         
       
    54         /**
       
    55          * Two-phased constructor.
       
    56          * @param aArray Array which is filled with DRM information,
       
    57          *               to be displayed in info popup
       
    58          * @param aFullPath Full path to item which DRM info is needed
       
    59          * @param aCoeEnv Control environment
       
    60          * @return Newly created popup.
       
    61          */
       
    62         static CFileManagerFullOmaDrmInfo* NewLC(
       
    63             CDesCArray& aArray, const TDesC& aFullPath, CCoeEnv& aCoeEnv );
       
    64 
       
    65         /**
       
    66          * Destructor.
       
    67          */
       
    68         ~CFileManagerFullOmaDrmInfo();
       
    69 
       
    70     public:  // New functions
       
    71 #ifdef RD_DRM_COMMON_INTERFACE_FOR_OMA_AND_WMDRM
       
    72         /**
       
    73          * Two-phased constructor.
       
    74          * @param aFullPath Full path to item which DRM info is needed
       
    75          * @param aCoeEnv Control environment
       
    76          * @param aUiHandling DRM UI Handler
       
    77          */
       
    78         static void ViewDetailsL( const TDesC& aFullPath, DRM::CDrmUiHandling* aUiHandling );
       
    79 #endif // RD_DRM_COMMON_INTERFACE_FOR_OMA_AND_WMDRM
       
    80 
       
    81     private:
       
    82         /**
       
    83          * By default Symbian 2nd phase constructor is private.
       
    84          */
       
    85         void ConstructL(
       
    86             CDesCArray& aArray,
       
    87             const TDesC& aFullPath, 
       
    88             CCoeEnv& aCoeEnv );
       
    89 
       
    90         /**
       
    91          * C++ default constructor.
       
    92          * @param aProperties Properties of the item that will be shown
       
    93          */
       
    94         CFileManagerFullOmaDrmInfo();
       
    95 
       
    96     };
       
    97 
       
    98 #endif      // CFILEMANAGERFULLOMADRMINFO_H
       
    99             
       
   100 // End of File