ImagePrint/ImagePrintUI/imageprinteng/inc/ctemplatesettings.h
branchRCL_3
changeset 28 d59c248c9d36
parent 0 d11fb78c4374
equal deleted inserted replaced
27:159fc2f68139 28:d59c248c9d36
       
     1 /*
       
     2 * Copyright (c) 2004-2007 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CTEMPLATESETTINGS_H
       
    20 #define CTEMPLATESETTINGS_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 class CTemplateData;
       
    26 class CRealFactory;
       
    27 
       
    28 /**
       
    29  *
       
    30  * Encapsulates the complete set of templates
       
    31  *
       
    32  */  
       
    33 class CTemplateSettings
       
    34     : public CBase
       
    35     {
       
    36     public:     // Constuctors and destructors
       
    37 
       
    38         /**
       
    39          *  Two-phase constructor
       
    40          *
       
    41          *  @return Initialized instance of itself
       
    42          */
       
    43         static CTemplateSettings* NewL( CRealFactory* afactory );
       
    44         static CTemplateSettings* NewLC( CRealFactory* afactory );
       
    45         
       
    46         /**
       
    47          *  Destructor
       
    48          */
       
    49         virtual ~CTemplateSettings();
       
    50 
       
    51     protected:  // Constuctors and destructors
       
    52 
       
    53         /**
       
    54          *  Constructor
       
    55          */
       
    56         CTemplateSettings( CRealFactory* afactory );
       
    57 
       
    58     public:     // New methods
       
    59 
       
    60         /**
       
    61          *  Clones current template settings
       
    62          *
       
    63          *  @return cloned instance
       
    64          */
       
    65         CTemplateSettings* CloneL();
       
    66 
       
    67         /**
       
    68          *  Sets new active template, leaves on error
       
    69          *
       
    70          *  @param aUid Uid of the new active template
       
    71          */
       
    72         void SetActiveTemplateL( TInt aUid );
       
    73 
       
    74     public:     // Data
       
    75 
       
    76         // Set of templates
       
    77         RPointerArray<CTemplateData> iTemplates;
       
    78 
       
    79         // Currently active template
       
    80         TUint iActiveTemplateUid;
       
    81         
       
    82         //Pointer to interface factory
       
    83         CRealFactory* iFactory;
       
    84     };
       
    85 
       
    86 #endif //  CTEMPLATESETTINGS_H
       
    87 
       
    88 //  End of File