messagingfw/wappushfw/MiscPushMsgUtils/inc/CMultipartBinIterator.h
changeset 22 bde600d88860
child 35 f8ad95794a08
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __CMULTIPARTBINITERATOR_H__
       
    23 #define __CMULTIPARTBINITERATOR_H__
       
    24 
       
    25 #include <push/wapdecoder.h>
       
    26 #include <push/cmultipartiteratorbase.h>
       
    27 
       
    28 //##ModelId=3B659EE10005
       
    29 class CMultipartBinIterator : public CMultipartIteratorBase
       
    30 /** Splits a WAP binary multipart message into its parts. 
       
    31 
       
    32 The class takes a WAP binary formatted multipart message (application/vnd.wap.mulitpart.*) and can pull 
       
    33  out the parts.
       
    34 
       
    35 It implements the abstract multipart iterator interface defined in CMultipartIteratorBase.
       
    36 @internalTechnology
       
    37 @released */
       
    38 	{
       
    39 public:
       
    40 	//##ModelId=3B659EE10037
       
    41 	IMPORT_C static CMultipartBinIterator* NewL(CPushMessage& aPushMessage);
       
    42 
       
    43 	// from CMultipartIteratorBase
       
    44 	//##ModelId=3B659EE1002F
       
    45 	IMPORT_C virtual TBool NextL();
       
    46 	//##ModelId=3B659EE1002E
       
    47 	IMPORT_C virtual void FirstL();
       
    48 	//##ModelId=3B659EE1002D
       
    49 	IMPORT_C virtual CPushMessage* PartL();
       
    50 private:
       
    51 	//##ModelId=3B659EE10024
       
    52 	CMultipartBinIterator(CPushMessage& aPushMessage);
       
    53 	//##ModelId=3B659EE10023
       
    54 	void ConstructL();
       
    55 private:
       
    56 	//##ModelId=3B659EE1001B
       
    57 	TWapBinCodex::TUintvar iMultiNumEntries;
       
    58 	//##ModelId=3B659EE10012
       
    59 	TInt iCurrentPart;
       
    60 	};
       
    61 
       
    62 #endif // __CMULTIPARTBINITERATOR_H__