sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * TWTLSDecVector class implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef __WTLSDEC_H__ sl@0: #define __WTLSDEC_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: //implementation of decoder for variable length vector sl@0: class TWTLSDecVector sl@0: { sl@0: public: sl@0: TWTLSDecVector(const TDesC8& aSource, TInt aMinLength, TInt aMaxLength); sl@0: void InitL(); sl@0: sl@0: // TPtrC8 Encoding() const; sl@0: TInt EncodingLength() const; sl@0: sl@0: // TPtrC8 Content() const; sl@0: // TInt ContentLength() const; sl@0: sl@0: // TInt HeaderLength() const; sl@0: private: sl@0: const TPtrC8 iEncoding; sl@0: const TInt iMinLength; sl@0: const TInt iMaxLength; sl@0: TInt iLengthOfContents; sl@0: TInt iLengthOfLength; sl@0: }; sl@0: sl@0: class TWTLSDecUnsignedInteger sl@0: { sl@0: public: sl@0: TWTLSDecUnsignedInteger(); sl@0: TInt DecodeShortL(const TDesC8& aSource,TInt& aPos, TInt aLengthOfLength); sl@0: RInteger DecodeLongL(const TDesC8& aSource,TInt& aPos, TInt aLength); sl@0: }; sl@0: sl@0: class TWTLSDecTime sl@0: { sl@0: public: sl@0: TWTLSDecTime(); sl@0: TTime DecodeL(const TDesC8& aSource, TInt& aPos); sl@0: }; sl@0: sl@0: #endif