ImagePrint/ImagePrintEngine/DeviceProtocols/dpof/inc/ccapabilityinfo.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:  Contains the CCapabilityInfo class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCAPABILITYINFO_H
       
    20 #define CCAPABILITYINFO_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <barsread.h> 
       
    24 
       
    25 #include "tprintcapability.h"
       
    26 
       
    27 /**
       
    28  *	@brief Class that stores a printer's capability information, which is obtained from a resource file.
       
    29  *
       
    30  *	class CCapabilityInfo - Holds all of the information about a Capability.   Each capability
       
    31  *	described in the resource file will have a single instance of the CCapabilityInfo created for it.
       
    32  *	This class also includes the current setting, which is only used if the capability is 
       
    33  *	actually in use by the current print job. 
       
    34  */
       
    35 class CCapabilityInfo : public CBase
       
    36     {
       
    37 	public:
       
    38 	
       
    39 		static CCapabilityInfo* NewLC(TResourceReader& aReader);
       
    40 		~CCapabilityInfo();
       
    41 
       
    42 		TPrintCapability& Capability();		
       
    43 		TInt SetCurrentValue( TInt aValue );
       
    44 		TInt PrinterClass() const; 		
       
    45 		TInt LinkID() const;		
       
    46 		TInt CurrentValue() const;		
       
    47 		TInt ValueLink( TInt aValue );
       
    48 		CCapabilityInfo* CopyL() const;
       
    49 
       
    50 	private:
       
    51 		void ConstructL(TResourceReader& aReader);
       
    52 
       
    53 	private:
       
    54 		TPrintCapability iCapability;
       
    55 		RArray<TInt>	iLinks;
       
    56 		TInt			iLinkID;
       
    57 		TInt			iPrinterClass;
       
    58 		TInt			iCurrentValue;
       
    59     };
       
    60 
       
    61 #endif // CCAPABILITYINFO_H
       
    62 
       
    63 //  End of File