creator/inc/creator_randomdatafield.h
branchRCL_3
changeset 22 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
       
     1 /*
       
     2 * Copyright (c) 2008 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 
       
    20 #ifndef CREATORDATAFIELD_H_
       
    21 #define CREATORDATAFIELD_H_
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class MCreatorRandomDataField
       
    26 {
       
    27 public:
       
    28     enum TRandomLengthType
       
    29     {
       
    30     ERandomLengthUndefined,
       
    31     ERandomLengthDefault, // Default length (use data from engine)
       
    32     ERandomLengthMax,     // Maximum length
       
    33     ERandomLengthExplicit // Explicitly defined length
       
    34     };
       
    35     
       
    36     /**
       
    37      * Set field content to random.     
       
    38      * @param aRandomLenType Random length type
       
    39      * @param aExplicitRandomLen Random length when ERandomLengthExplicit is used. Ignored otherwise.
       
    40      */
       
    41     virtual void SetRandomParametersL( TRandomLengthType aRandomLenType, TInt aRandomLen ) = 0;
       
    42 };
       
    43 
       
    44 #endif /*CREATORDATAFIELD_H_*/