messagingfw/wappushfw/MiscPushMsgUtils/inc/cmultiparttextiterator.h
changeset 0 8e480a14352b
child 3 28ae839b4c09
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 __CMULTIPARTTEXTITERATOR_H__
       
    23 #define __CMULTIPARTTEXTITERATOR_H__
       
    24 
       
    25 
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 
       
    29 #include "cmultipartiteratorbase.h"
       
    30 #include "pushdispatcher.h"
       
    31 
       
    32 
       
    33 _LIT(KMultipartText, "multipart/");
       
    34 _LIT(KMultipartBin, "application/vnd.wap.multipart");
       
    35 
       
    36 
       
    37 //##ModelId=3B659EE4024E
       
    38 class CMultipartTextIterator : public CMultipartIteratorBase
       
    39 /** Splits a text multipart MIME message into its parts. 
       
    40 
       
    41 This text formatted multipart is in RFC 2061 format (multipart/). The class can 
       
    42 determine the boundaries and pull out the parts.
       
    43 
       
    44 It implements the abstract multipart iterator interface defined in CMultipartIteratorBase. 
       
    45 @internalTechnology
       
    46 @released
       
    47 */
       
    48 	{
       
    49 public:
       
    50 	//##ModelId=3B659EE4028A
       
    51 	IMPORT_C static CMultipartTextIterator* NewL(CPushMessage& aPushMessage);
       
    52 	//##ModelId=3B659EE40282
       
    53 	IMPORT_C virtual ~CMultipartTextIterator();
       
    54 		
       
    55 	// from CMultipartIteratorBase
       
    56 	//##ModelId=3B659EE40281
       
    57 	IMPORT_C virtual TBool NextL();
       
    58 	//##ModelId=3B659EE40280
       
    59 	IMPORT_C virtual void FirstL();
       
    60 	//##ModelId=3B659EE40279
       
    61 	IMPORT_C virtual CPushMessage* PartL();
       
    62 private:
       
    63 	//##ModelId=3B659EE40277
       
    64 	CMultipartTextIterator(CPushMessage& aPushMessage);
       
    65 	//##ModelId=3B659EE40276
       
    66 	void BoundaryParamL();
       
    67 	//##ModelId=3B659EE4026E
       
    68 	void ConstructL();
       
    69 private:
       
    70 	//##ModelId=3B659EE40264
       
    71 	HBufC8*	iBoundary;
       
    72 	//##ModelId=3B659EE4025B
       
    73 	TPtrC8 iIndexPtr;
       
    74 	};
       
    75 
       
    76 #endif // __CMULTIPARTTEXTITERATOR_H__