filemanager/View/inc/CFileManagerInfoPopup.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Popup to show the item information, view info
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CFILEMANAGERINFOPOPUP_H
       
    20 #define CFILEMANAGERINFOPOPUP_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32def.h>
       
    24 #include <drmuihandling.h>
       
    25 #include "CFileManagerPopupBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CFileManagerItemProperties;
       
    29 class CMSPUtil;
       
    30 class CFileManagerFeatureManager;
       
    31 class DRM::CDrmUiHandling;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35  * Popup dialog for showing detailed information about item.
       
    36  *
       
    37  *  @lib FileManagerView.lib
       
    38  *  @since S60 2.0
       
    39  */
       
    40 NONSHARABLE_CLASS(CFileManagerInfoPopup) : public CFileManagerPopupBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45          * Two-phased constructor.
       
    46          * @param aProperties Properties of the item that will be shown
       
    47          * @param aFeatureManager Reference to the feature manager
       
    48          * @return Newly created popup.
       
    49          */
       
    50         static CFileManagerInfoPopup* NewL(
       
    51             CFileManagerItemProperties& aProperties,
       
    52             const CFileManagerFeatureManager& aFeatureManager );
       
    53         
       
    54     private:
       
    55         
       
    56         /**
       
    57          * By default Symbian 2nd phase constructor is private.
       
    58          */
       
    59         virtual void ConstructL();
       
    60         
       
    61     private: // From CFileManagerPopupBase
       
    62         /**
       
    63          * @see CFileManagerPopupBase
       
    64          */
       
    65         virtual MDesCArray* ConstructDataArrayL();
       
    66 
       
    67 #ifdef RD_DRM_COMMON_INTERFACE_FOR_OMA_AND_WMDRM
       
    68         /**
       
    69          * @see CFileManagerPopupBase
       
    70          */
       
    71         virtual void ActivateLinkL();
       
    72 #endif // RD_DRM_COMMON_INTERFACE_FOR_OMA_AND_WMDRM
       
    73 
       
    74     private: // New Functions
       
    75         /**
       
    76          * Creates the name entry for data array.
       
    77          * @return Name entry.
       
    78          */
       
    79         HBufC* NameEntryLC();
       
    80 
       
    81         /**
       
    82          * Creates the type entry for data array.
       
    83          * @return Type entry.
       
    84          */
       
    85         HBufC* TypeEntryLC();
       
    86 
       
    87         /**
       
    88          * Creates the date entry for data array.
       
    89          * @return Date entry.
       
    90          */
       
    91         HBufC* DateEntryLC();
       
    92 
       
    93         /**
       
    94          * Creates the time entry for data array.
       
    95          * @return Time entry.
       
    96          */
       
    97         HBufC* TimeEntryLC();
       
    98 
       
    99         /**
       
   100          * Creates the size entry for data array.
       
   101          * @return Size entry.
       
   102          */
       
   103         HBufC* SizeEntryLC();
       
   104 
       
   105         /**
       
   106          * Creates the default folder entry for data array.
       
   107          * @return Default folder entry.
       
   108          */
       
   109         HBufC* DefaultFolderEntryLC();
       
   110 
       
   111 
       
   112         /**
       
   113          * Creates the string of given resource id and value
       
   114          * @param resource id of number string 
       
   115          * @param aValue value for string
       
   116          * @return HBufC* formatted string, caller must delete it
       
   117          */
       
   118         HBufC* ResourceStringValueLC( TInt aResId, TInt aValue );
       
   119 
       
   120         /**
       
   121          * C++ default constructor.
       
   122          */
       
   123         CFileManagerInfoPopup(
       
   124             CFileManagerItemProperties& aProperties,
       
   125             const CFileManagerFeatureManager& aFeatureManager );
       
   126 
       
   127         /**
       
   128          * Destructor.
       
   129          */
       
   130         ~CFileManagerInfoPopup();
       
   131 
       
   132     private: // Data
       
   133         /// Ref: Reference to properties data that will be shown in popup.
       
   134         CFileManagerItemProperties& iProperties;
       
   135 
       
   136         // Own: Memory State Popup utilities
       
   137         CMSPUtil* iUtil;
       
   138 
       
   139         // Ref: Reference to the feature manager
       
   140         const CFileManagerFeatureManager& iFeatureManager;
       
   141 
       
   142         // DRM UI Handler        
       
   143         DRM::CDrmUiHandling* iUiHandling;
       
   144 
       
   145     };
       
   146 
       
   147 #endif      // CFILEMANAGERINFOPOPUP_H
       
   148             
       
   149 // End of File