DirectPrint/DirectPrintApp/inc/directprintprinterdata.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 __DIRECTPRINTPRINTERDATA_H__
       
    21 #define __DIRECTPRINTPRINTERDATA_H__
       
    22 
       
    23 // System includes
       
    24 #include <e32cmn.h>
       
    25 
       
    26 // User includes
       
    27 #include "DirectPrintDef.h"
       
    28 
       
    29 // Forward declarations
       
    30 class RReadStream;
       
    31 class RWriteStream;
       
    32 
       
    33 // Class declaration
       
    34 /**
       
    35  *  Printer data class
       
    36  *  more_complete_description
       
    37  */
       
    38 class TDirectPrintPrinterData
       
    39 	{
       
    40 public:
       
    41 	/**
       
    42 	 * Internalize operation.
       
    43 	 *
       
    44 	 * @param aStream ReadStream.
       
    45 	 */
       
    46 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
    47 
       
    48 	/**
       
    49 	 * Externalize operation.
       
    50 	 *
       
    51 	 * @param aStream WriteStream.
       
    52 	 */
       
    53 	IMPORT_C void ExternalizeL(RWriteStream& aStream)const;
       
    54 
       
    55 	/**
       
    56 	 * Substitution operator.
       
    57 	 *
       
    58 	 * @param aData Printer data.
       
    59 	 * @return Printer data.
       
    60 	 */
       
    61 	IMPORT_C TDirectPrintPrinterData& operator=(const TDirectPrintPrinterData& aData);
       
    62 
       
    63 public:
       
    64 	/** The ID of printer data. */
       
    65 	TInt iPrinterId;
       
    66 	/** Name of printer. */
       
    67 	TBuf<KDirectPrintNameLength> iPrinterName;
       
    68 	/** The UID of printer driver. */
       
    69 	TUid iPrinterDriver;
       
    70 	/** Name of printer driver. */
       
    71 	TBuf<KDirectPrintNameLength> iDriverName;
       
    72 	/** The ID of printer type. */
       
    73 	TInt iPrinterType;
       
    74 	/** Name of printer type. */
       
    75 	TBuf<KDirectPrintNameLength> iTypeName;
       
    76 	};
       
    77 
       
    78 typedef RArray<TDirectPrintPrinterData> RDPPrinterDataArray;
       
    79 
       
    80 #endif // __DIRECTPRINTPRINTERDATA_H__