webservices/wsmessages/inc/senatomentry.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef SENATOMENTRY_H_
       
    24 #define SENATOMENTRY_H_
       
    25 
       
    26 
       
    27 /**
       
    28 *     Provides object and methods to manipulate <entry> tag from atom-pub API.
       
    29 * 
       
    30 *   @lib SenMessages.DLL
       
    31 *   @since 5.0
       
    32 */
       
    33 
       
    34 
       
    35 //  INCLUDES
       
    36 #include <e32base.h>
       
    37 #include <e32cmn.h>
       
    38 
       
    39 #include "senatommessage.h"
       
    40 
       
    41 
       
    42 
       
    43 // CLASS DECLARATION
       
    44 class CSenFragmentBase;
       
    45 
       
    46 class CSenAtomEntry : public CSenAtomMessage
       
    47     {
       
    48     public:
       
    49         // Constructors and destructor
       
    50         /**
       
    51          * Two-phased constructor.
       
    52          */
       
    53         IMPORT_C static CSenAtomEntry* NewL();
       
    54 
       
    55         /**
       
    56          * Two-phased constructor.
       
    57          */
       
    58         IMPORT_C static CSenAtomEntry* NewLC();
       
    59 
       
    60         /**
       
    61          * Destructor.
       
    62          */
       
    63         IMPORT_C virtual ~CSenAtomEntry();
       
    64 
       
    65         
       
    66         /*
       
    67         *        Callback funtions. Not a part of API.
       
    68         */
       
    69         IMPORT_C virtual void OnStartElementL(const RTagInfo& aElement,
       
    70                                               const RAttributeArray& aAttributes,
       
    71                                               TInt aErrorCode);                                            
       
    72         IMPORT_C virtual void OnEndElementL(const RTagInfo& aElement,
       
    73                                             TInt aErrorCode);
       
    74         IMPORT_C virtual void OnContentL(const TDesC8& aBytes, TInt aErrorCode);
       
    75         
       
    76     protected:
       
    77     
       
    78     // Internal functions
       
    79         IMPORT_C CSenAtomEntry();
       
    80         IMPORT_C void BaseConstructL();
       
    81 
       
    82     protected: // Data
       
    83         
       
    84         TInt localState;
       
    85         RBuf8 iBuffer;
       
    86 
       
    87         
       
    88     private:
       
    89     RAttributeArray* CreateLinkAttribs( const TDesC8& href, const TDesC8& rel, const TDesC8& type, const TDesC8& hrefLang, const TDesC8& title, const TDesC8& lenght);
       
    90     };
       
    91 
       
    92 #endif /*SENATOMENTRY_H*/
       
    93 
       
    94 // End of File