ncdengine/provider/client/inc/ncdnodeactivateimpl.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 CNcdNodeActivate class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCD_NODE_ACTIVATE_IMPL_H
       
    20 #define C_NCD_NODE_ACTIVATE_IMPL_H
       
    21 
       
    22 
       
    23 // For the streams
       
    24 #include <s32mem.h>
       
    25 
       
    26 #include "catalogsinterfacebase.h"
       
    27 #include "ncdnodeactivate.h"
       
    28 
       
    29 class CNcdNodeMetadataProxy;
       
    30 class CNcdNodeInstallProxy;
       
    31 class MNcdInstalledTheme;
       
    32 class MNcdInstalledFile;
       
    33 class MNcdDeviceService;
       
    34 
       
    35 /**
       
    36  *  This class implements the functionality for the
       
    37  *  MNcdNodeActivate interfaces. The interface is provided for
       
    38  *  API users.
       
    39  *
       
    40  *  @since S60 v3.2
       
    41  */
       
    42 class CNcdNodeActivate : public CCatalogsInterfaceBase, 
       
    43                          public MNcdNodeActivate
       
    44     {
       
    45 
       
    46 public:
       
    47 
       
    48     /**
       
    49      * @param aMetadata Owns and uses the information of this class object.
       
    50      * The metadata also keeps track of the refence counts of its objects. 
       
    51      * And handles the deletion of these objects when the total reference 
       
    52      * count reaches zero.
       
    53      * @return CNcdNodeActivate* Pointer to the created object 
       
    54      * of this class.
       
    55      */
       
    56     static CNcdNodeActivate* NewL( CNcdNodeMetadataProxy& aMetadata );
       
    57 
       
    58     /**
       
    59      * @param aMetadata Owns and uses the information of this proxy.
       
    60      * The metadata also keeps track of the refence counts of its objects. 
       
    61      * And handles the deletion of these objects when the total reference 
       
    62      * count reaches zero.
       
    63      * @return CNcdNodeActivate* Pointer to the created object 
       
    64      * of this class.
       
    65      */
       
    66     static CNcdNodeActivate* NewLC( CNcdNodeMetadataProxy& aMetadata );
       
    67 
       
    68 
       
    69     /**
       
    70      * Destructor.
       
    71      * The destructor is set public. So, the node that owns the Activate may
       
    72      * delete it directly when the reference count of the node reaches zero
       
    73      * and the destructor of the node is called.
       
    74      */
       
    75     virtual ~CNcdNodeActivate();
       
    76 
       
    77 
       
    78     /**
       
    79      * @return CNcdNodeMetadataProxy& Gives the metadata proxy 
       
    80      * that owns this class object.
       
    81      */
       
    82     CNcdNodeMetadataProxy& Metadata() const;
       
    83 
       
    84          
       
    85 
       
    86 public: // MNcdNodeActivate
       
    87 
       
    88     /**
       
    89      * @see MNcdNodeActivate::ActivateL
       
    90      */ 
       
    91     virtual void ActivateL();
       
    92 
       
    93 
       
    94 protected:
       
    95 
       
    96     /**
       
    97      * Constructor
       
    98      *
       
    99      * @param aMetadata Owns and uses the information of this class object.
       
   100      * The metadata also keeps track of the refence counts of its objects. 
       
   101      * And handles the deletion of these objects when the total reference 
       
   102      * count reaches zero.
       
   103      * @return CNcdNodeActivate* Pointer to the created object 
       
   104      * of this class.
       
   105      */
       
   106     CNcdNodeActivate( CNcdNodeMetadataProxy& aMetadata );
       
   107 
       
   108     /**
       
   109      * ConstructL
       
   110      */
       
   111     virtual void ConstructL();
       
   112     
       
   113     
       
   114     void SetThemeL( MNcdInstalledTheme& aTheme, 
       
   115         MNcdDeviceService& aService );
       
   116 
       
   117 
       
   118     void SetContentFileL( MNcdInstalledFile& aFile, 
       
   119         CNcdNodeInstallProxy& aInstall,
       
   120         MNcdDeviceService& aService );
       
   121 
       
   122 private:
       
   123 
       
   124     // Prevent if not implemented
       
   125     CNcdNodeActivate( const CNcdNodeActivate& aObject );
       
   126     CNcdNodeActivate& operator =( const CNcdNodeActivate& aObject );
       
   127     
       
   128     
       
   129 private: // data
       
   130 
       
   131     CNcdNodeMetadataProxy& iMetadata;
       
   132 
       
   133     };
       
   134 
       
   135 
       
   136 #endif // C_NCD_NODE_ACTIVATE_IMPL_H
       
   137