diff -r 3f1fec088555 -r 613a5ff70823 DirectPrint/DirectPrintApp/inc/directprintproperty.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DirectPrint/DirectPrintApp/inc/directprintproperty.h Wed Mar 31 00:04:55 2010 +0900 @@ -0,0 +1,78 @@ +/* +* 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 __DIRECTPRINTPROPERTY_H__ +#define __DIRECTPRINTPROPERTY_H__ + +// System includes +#include +#include + +// User includes +#include "DirectPrintDef.h" +#include "directprintpropertydata.h" + +// Class declaration +/** + * Printer property class + * more_complete_description + */ +class CPrinterProperty : public CBase + { +public: + /** Constructors */ + IMPORT_C CPrinterProperty(); + /** Destructor */ + IMPORT_C ~CPrinterProperty(); + +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 aProperty Printer property. + * @return Printer property. + */ + IMPORT_C CPrinterProperty& operator=(const CPrinterProperty& aProperty); + +public: + /** The ID of printer data. */ + TInt iPrinterId; + /** The ID of application. */ + TInt iApplicationId; + /** Printer property data array. */ + RDPPropertyDataArray iPropertyItems; + }; + +typedef RPointerArray RPrinterPropertyArray; + +#endif // __DIRECTPRINTPROPERTY_H__