ImagePrint/ImagePrintEngine/ImagePrintServer/inc/cnumofcopies.h
branchGCC_SURGE
changeset 25 59ea2209bb67
parent 23 08cc4cc059d4
parent 15 a92d00fca574
equal deleted inserted replaced
23:08cc4cc059d4 25:59ea2209bb67
     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 CNUMOFCOPIES_H
       
    20 #define CNUMOFCOPIES_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CNumOfCopies : public CBase
       
    25 	{
       
    26 	public:
       
    27 	
       
    28 		/**
       
    29 		 *	2-phase constructor
       
    30 		 *
       
    31 		 *	@return new object
       
    32 		 */
       
    33 		static CNumOfCopies* NewL();
       
    34 		
       
    35 		/**
       
    36 		 *	Destructor
       
    37 		 */
       
    38 		~CNumOfCopies();	
       
    39 
       
    40 	private:
       
    41 		CNumOfCopies();
       
    42 		void ConstructL();
       
    43 
       
    44 	public:
       
    45 	
       
    46 		/**
       
    47 		 *	Set the amount of coming array elements
       
    48 		 *
       
    49 		 *	@param aCount amount of coming array elements
       
    50 		 */	 
       
    51 		void Reset( TInt aCount );
       
    52 		
       
    53 		/**
       
    54 		 *	Append next element to the array
       
    55 		 *
       
    56 		 *	@param aNumOfCopies number of copies array element
       
    57 		 *	@param aFull place holder for value which indicates that
       
    58 		 *			all elements are added to the array
       
    59 		 */	
       
    60 		void AddNumOfCopyL( TInt aNumOfCopies, TBool& aFull );
       
    61 		
       
    62 		/**
       
    63 		 *	Number of copies array getter
       
    64 		 *
       
    65 		 *	@return number of copies array
       
    66 		 */
       
    67 		const RArray<TInt>& NumsOfCopies() const;					
       
    68 
       
    69 	private: // data
       
    70 		TInt iCount;
       
    71 		RArray<TInt> iNumsOfCopies;
       
    72 	};
       
    73 
       
    74 
       
    75 #endif // CNUMOFCOPIES_H
       
    76 
       
    77 //  End of File