ncdengine/provider/client/inc/ncdinstalledfileimpl.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 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:   Contains CNcdInstalledFile class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCD_INSTALLED_FILE_H
       
    20 #define NCD_INSTALLED_FILE_H
       
    21 
       
    22 
       
    23 
       
    24 #include "ncdinstalledcontentimpl.h"
       
    25 #include "ncdinstalledfile.h"
       
    26 
       
    27 class CNcdFileInfo;
       
    28 class CNcdNodeInstallProxy;
       
    29 
       
    30 /**
       
    31  * 
       
    32  *
       
    33  *  @lib ?library
       
    34  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    35  */
       
    36 class CNcdInstalledFile: public CNcdInstalledContent,
       
    37                          public MNcdInstalledFile
       
    38     {
       
    39 public:
       
    40 
       
    41     /**
       
    42      * NewL
       
    43      *
       
    44      * @param aParent Parent
       
    45      * @param aInfo File info. Ownership is transferred
       
    46      *
       
    47      */
       
    48     static CNcdInstalledFile* NewL( 
       
    49         CNcdNodeInstallProxy& aParent,
       
    50         CNcdFileInfo* aInfo,
       
    51         TInt aFileIndex );
       
    52 
       
    53 
       
    54     /**
       
    55      * NewLC
       
    56      *
       
    57      * @param aParent Parent
       
    58      * @param aInfo File info. Ownership is transferred
       
    59      *
       
    60      */
       
    61     static CNcdInstalledFile* NewLC( 
       
    62         CNcdNodeInstallProxy& aParent,
       
    63         CNcdFileInfo* aInfo, 
       
    64         TInt aFileIndex );
       
    65     
       
    66     
       
    67 public: // MNcdInstalledContent
       
    68 
       
    69 
       
    70     /**
       
    71      * @see MNcdInstalledContent::IsInstalledL()
       
    72      */
       
    73     TBool IsInstalledL() const;
       
    74 
       
    75     
       
    76 
       
    77 public: // MNcdInstalledFile
       
    78 
       
    79     /**
       
    80      * @see MNcdInstalledFile::MimeType()
       
    81      */
       
    82     const TDesC& MimeType() const;
       
    83 
       
    84 
       
    85     /**
       
    86      * @see MNcdInstalledFile::OpenFileL()    
       
    87      */
       
    88     RFile OpenFileL();
       
    89 
       
    90     
       
    91     
       
    92 protected:
       
    93 
       
    94     /**
       
    95      * Constructor
       
    96      *
       
    97      */
       
    98     CNcdInstalledFile( 
       
    99         CNcdNodeInstallProxy& aParent, 
       
   100         CNcdFileInfo* aInfo, 
       
   101         TInt aFileIndex );
       
   102     
       
   103 
       
   104     /**
       
   105      * ConstructL
       
   106      */
       
   107     virtual void ConstructL();
       
   108 
       
   109 
       
   110     /**
       
   111      * Destructor
       
   112      *
       
   113      * Informs the node manager that this node is deleted.
       
   114      */
       
   115     virtual ~CNcdInstalledFile();
       
   116 
       
   117 
       
   118 
       
   119 private:
       
   120     // Prevent if not implemented
       
   121     CNcdInstalledFile( const CNcdInstalledFile& aObject );
       
   122     CNcdInstalledFile& operator =( const CNcdInstalledFile& aObject );
       
   123             
       
   124 private: // data
       
   125 
       
   126     CNcdFileInfo* iInfo; 
       
   127     TInt iFileIndex;
       
   128     };
       
   129 
       
   130 
       
   131 #endif // NCD_INSTALLED_FILE_H