Msrp/MsrpServer/inc/CMSRPParser.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html."
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef CMSRPPARSER_H
       
    18 #define CMSRPPARSER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 #include <in_sock.h>
       
    23 #include "MMSRPParser.h"
       
    24 #include "MMSRPParserObserver.h"
       
    25 #include "MSRPBuffer.h"
       
    26 #include "CMSRPMsgParser.h"
       
    27 
       
    28 class MMSRPParserObserver;
       
    29 // CLASS DECLARATIONS
       
    30 /**
       
    31  * The socket reader request interface.
       
    32  */
       
    33 
       
    34 class CMSRPParser : public CActive, public MMSRPParser
       
    35     {
       
    36  public:
       
    37 
       
    38      // Constructors and destructor
       
    39      static MMSRPParser* NewL(MMSRPParserObserver& aConnection);
       
    40      virtual ~CMSRPParser();
       
    41       
       
    42      virtual void ParseL(RMsrpBuf& aBuf);
       
    43      
       
    44  protected: // from CActive
       
    45      void DoCancel();
       
    46      void RunL();
       
    47      TInt RunError(TInt aError);
       
    48     
       
    49  private:
       
    50      CMSRPParser(MMSRPParserObserver& aConnection);
       
    51      void ConstructL(MMSRPParserObserver& aConnection);     
       
    52 
       
    53  private: // data
       
    54      MMSRPParserObserver& iConnection;       
       
    55      //RPointerArray<RMsrpBuf> iParseBuffers;
       
    56      CMSRPMsgParser* iParser;
       
    57     };
       
    58      
       
    59  
       
    60 
       
    61 #endif // CMSRPPARSER_H
       
    62 
       
    63 // End of file