DirectPrint/DirectPrintApp/inc/directprintproperty.h
changeset 19 2275db202402
parent 11 613a5ff70823
equal deleted inserted replaced
2:acc370d7f2f6 19:2275db202402
       
     1 /*
       
     2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * {Description of the file}
       
    16 *
       
    17 */
       
    18 
       
    19 // Protection against nested includes
       
    20 #ifndef __DIRECTPRINTPROPERTY_H__
       
    21 #define __DIRECTPRINTPROPERTY_H__
       
    22 
       
    23 // System includes
       
    24 #include <e32base.h>
       
    25 #include <e32cmn.h>
       
    26 
       
    27 // User includes
       
    28 #include "DirectPrintDef.h"
       
    29 #include "directprintpropertydata.h"
       
    30 
       
    31 // Class declaration
       
    32 /**
       
    33  *  Printer property class
       
    34  *  more_complete_description
       
    35  */
       
    36 class CPrinterProperty : public CBase
       
    37 	{
       
    38 public:
       
    39 	/** Constructors */
       
    40 	IMPORT_C CPrinterProperty();
       
    41 	/** Destructor */
       
    42 	IMPORT_C ~CPrinterProperty();
       
    43 
       
    44 public:
       
    45 	/**
       
    46 	 * Internalize operation.
       
    47 	 *
       
    48 	 * @param aStream ReadStream.
       
    49 	 */
       
    50 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
    51 
       
    52 	/**
       
    53 	 * Externalize operation.
       
    54 	 *
       
    55 	 * @param aStream WriteStream.
       
    56 	 */
       
    57 	IMPORT_C void ExternalizeL(RWriteStream& aStream)const;
       
    58 
       
    59 	/**
       
    60 	 * Substitution operator.
       
    61 	 *
       
    62 	 * @param aProperty Printer property.
       
    63 	 * @return Printer property.
       
    64 	 */
       
    65 	IMPORT_C CPrinterProperty& operator=(const CPrinterProperty& aProperty);
       
    66 
       
    67 public:
       
    68 	/** The ID of printer data. */
       
    69 	TInt iPrinterId;
       
    70 	/** The ID of application. */
       
    71 	TInt iApplicationId;
       
    72 	/** Printer property data array. */
       
    73 	RDPPropertyDataArray iPropertyItems;
       
    74 	};
       
    75 
       
    76 typedef RPointerArray<CPrinterProperty> RPrinterPropertyArray;
       
    77 
       
    78 #endif // __DIRECTPRINTPROPERTY_H__