PECengine/AttributeLibrary2/SrcWVAttributes/PEngWVAttributeConstructorFactory.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Wireless Village attribute constructor factory.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PENGWVATTRIBUTECONSTRUCTORFACTORY_H
       
    19 #define PENGWVATTRIBUTECONSTRUCTORFACTORY_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32std.h>
       
    23 
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CPEngAttrConstructorCon;
       
    27 class MPEngPresenceAttrModel2;
       
    28 class MPEngPresenceAttrManager;
       
    29 
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * Wireless Village attribute constructor factory.
       
    35  *
       
    36  * @lib PEngAttrLib
       
    37  * @since 3.0
       
    38  */
       
    39 NONSHARABLE_CLASS( PEngWVAttributeConstructorFactory )
       
    40     {
       
    41 public: // New functions
       
    42 
       
    43     /**
       
    44      * Creates Wireless Village attribute constructors and
       
    45      * adds the to provided constructor container.
       
    46      *
       
    47      * @since 3.0
       
    48      * @param aModelPrototypes The array where to generate
       
    49      * model prototypes.
       
    50      */
       
    51     static void CreateConstructorsL( CPEngAttrConstructorCon& aConstructors );
       
    52 
       
    53 
       
    54     /**
       
    55      * Creates a attribute instance of those Wireless Village
       
    56      * attributes that need session tracing
       
    57      *
       
    58      * @since 3.0
       
    59      * @param aSessionAttributes On the return contains the
       
    60      * session tracing attributes. Ownership is returned
       
    61      * to caller.
       
    62      * @param aAttributeManager The Attribute manager to use
       
    63      * to create session tracing attributes.
       
    64      */
       
    65     static void LoadSessionTracingAttributesL( RPointerArray< MPEngPresenceAttrModel2 >& aSessionAttributes,
       
    66                                                MPEngPresenceAttrManager& aAttributeManager );
       
    67 
       
    68 
       
    69 protected:  // Prohibited constructor & destructor
       
    70 
       
    71     PEngWVAttributeConstructorFactory();
       
    72     ~PEngWVAttributeConstructorFactory();
       
    73     };
       
    74 
       
    75 #endif      // PENGWVATTRIBUTECONSTRUCTORFACTORY_H
       
    76 
       
    77 //  End of File
       
    78