diff -r 000000000000 -r 164170e6151a wim/WimClient/inc/WimCertTClassWrappers.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wim/WimClient/inc/WimCertTClassWrappers.h Tue Jan 26 15:20:08 2010 +0200 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: These wrappers are used when we need to fetch/insert +* certificate data asyncronously. +* +*/ + + +#ifndef WIMCERTCLASSWRAPPERS_H +#define WIMCERTCLASSWRAPPERS_H + +// INCLUDES +#include + +// CLASS DECLARATION + +/** +* Class which wraps a TPckg -buffer. +* +* @lib WimClient +* @since Series60 2.1 +*/ +template +class CWimCertPckg : public CBase + { + public: // Constructors and destructor + + /** + * C++ constructor. + */ + inline CWimCertPckg( const T& aRef ); + + /** + * Destructor. + */ + inline virtual ~CWimCertPckg(); + + public: // New functions + + /** + * @return TPckg* Pointer to TPckg typed member + */ + inline TPckg* Pckg(); + + private: // Data + // Wrapped TPckg + TPckg iPckg; + }; + + +/** +* Class which wraps a TPckgBuf -buffer. +* +* @WimClient +* @since Series60 2.1 +*/ +template +class CWimCertPckgBuf : public CBase + { + public: // Constructors and destructor + + /** + * C++ default constructor. + */ + inline CWimCertPckgBuf(); + + /** + * C++ constructor. + */ + inline CWimCertPckgBuf( const T& aRef ); + + /** + * Destructor. + */ + inline virtual ~CWimCertPckgBuf(); + + + public: // New functions + + /** + * @return TPckgBuf* Pointer to TPckgBuf typed member + */ + inline TPckgBuf* PckgBuf(); + + private: // Data + // Wrapped TPckgBuf + TPckgBuf iPckgBuf; + + }; + +#include "WimCertTClassWrappers.inl" + +#endif //WIMICERTCLASSWRAPPERS_H + +