diff -r 4cb0291370d0 -r 453a466b0a43 DirectPrint/DirectPrintApp/inc/directprintbearerdata.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DirectPrint/DirectPrintApp/inc/directprintbearerdata.h Fri Oct 22 14:43:23 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 __DIRECTPRINTBEARERDATA_H__ +#define __DIRECTPRINTBEARERDATA_H__ + +// System includes +#include +#include + +// User includes +#include "DirectPrintDef.h" + +// Forward declarations +class RReadStream; +class RWriteStream; + +// Class declaration +/** + * Bearer data class + * more_complete_description + */ +class TDirectPrintBearerData + { +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 Bearer data. + * @return Bearer data. + */ + IMPORT_C TDirectPrintBearerData& operator=(const TDirectPrintBearerData& aData); + +public: + /** The ID of printer data. */ + TInt iPrinterId; + /** The ID of bearer data. */ + TInt iBearerId; + /** Name of bearer. */ + TBuf iBearerName; + /** AccessPoint. */ + TBuf iAccessPoint; + /** HostName. */ + TBuf iHostName; + /** IPAddress of host. */ + TInetAddr iHostIp; + /** Number of port. */ + TInt iPort; + /** UserName. */ + TBuf iUserName; + /** Name of que. */ + TBuf iQueName; + }; + +typedef RArray RDPBearerDataArray; + +#endif // __DIRECTPRINTBEARERDATA_H__