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