diff -r acc370d7f2f6 -r 2275db202402 DirectPrint/DirectPrintApp/inc/directprintprinterdata.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DirectPrint/DirectPrintApp/inc/directprintprinterdata.h Tue May 11 14:10:02 2010 +0800 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Kanrikogaku Kenkyusho, Ltd. - Initial contribution +* +* Contributors: +* +* Description: +* {Description of the file} +* +*/ + +// Protection against nested includes +#ifndef __DIRECTPRINTPRINTERDATA_H__ +#define __DIRECTPRINTPRINTERDATA_H__ + +// System includes +#include + +// User includes +#include "DirectPrintDef.h" + +// Forward declarations +class RReadStream; +class RWriteStream; + +// Class declaration +/** + * Printer data class + * more_complete_description + */ +class TDirectPrintPrinterData + { +public: + /** + * Internalize operation. + * + * @param aStream ReadStream. + */ + IMPORT_C void InternalizeL(RReadStream& aStream); + + /** + * Externalize operation. + * + * @param aStream WriteStream. + */ + IMPORT_C void ExternalizeL(RWriteStream& aStream)const; + + /** + * Substitution operator. + * + * @param aData Printer data. + * @return Printer data. + */ + IMPORT_C TDirectPrintPrinterData& operator=(const TDirectPrintPrinterData& aData); + +public: + /** The ID of printer data. */ + TInt iPrinterId; + /** Name of printer. */ + TBuf iPrinterName; + /** The UID of printer driver. */ + TUid iPrinterDriver; + /** Name of printer driver. */ + TBuf iDriverName; + /** The ID of printer type. */ + TInt iPrinterType; + /** Name of printer type. */ + TBuf iTypeName; + }; + +typedef RArray RDPPrinterDataArray; + +#endif // __DIRECTPRINTPRINTERDATA_H__