PECengine/ListLibrary2/ContactListSrc/CPEngContactListTransCreate.h
branchRCL_3
changeset 17 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
16:6ca72c0fe49a 17:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Handler to create contact list
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CPENGCONTACTLISTTRANSCREATE_H__
       
    19 #define __CPENGCONTACTLISTTRANSCREATE_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include "CPEngContactListTransBase.h"
       
    23 
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class   MPEngXMLSerializer;
       
    27 
       
    28 
       
    29 /**
       
    30  * Handler to create contact list
       
    31  *
       
    32  * @lib PEngListLib2
       
    33  * @since 3.0
       
    34  */
       
    35 NONSHARABLE_CLASS( CPEngContactListTransCreate ):
       
    36         public CPEngContactListTransBase
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      */
       
    43     static CPEngContactListTransCreate* NewLC(
       
    44         CPEngContactListModBase& aContactList,
       
    45         CPEngSessionSlotId& aSessionSlotId,
       
    46         MPEngContactListTransactionManager& aManager,
       
    47         TPEngWVCspVersion& aCSPVersion,
       
    48         TInt aOperationId );
       
    49 
       
    50     /**
       
    51      * Destructor.
       
    52      */
       
    53     virtual ~CPEngContactListTransCreate();
       
    54 
       
    55 
       
    56 protected: //From CPEngContactListTransBase
       
    57 
       
    58     /**
       
    59      * Create XML message to create contact list
       
    60      * @see <CPEngContactListTransBase.h>
       
    61      */
       
    62     void DoGetXMLCreateCntListL( MPEngXMLSerializer& aXmlSerializer );
       
    63 
       
    64 
       
    65     /**
       
    66      * Parse contact list create XML response
       
    67      * @see <CPEngContactListTransBase.h>
       
    68      */
       
    69     void DoParseCreateCntListResponseL( const TDesC8& aResponse,
       
    70                                         MPEngXMLParser& aXMLparser );
       
    71 
       
    72     /**
       
    73      * Create XML message to fetch contact list
       
    74      * @see <CPEngContactListTransBase.h>
       
    75      */
       
    76     void DoGetXMLFetchCntListL( MPEngXMLSerializer& aXmlSerializer );
       
    77 
       
    78 
       
    79     /**
       
    80      * Parse contact list fetch XML response
       
    81      * @see <CPEngContactListTransBase.h>
       
    82      */
       
    83     void DoParseFetchCntListResponseL( const TDesC8& aResponse,
       
    84                                        MPEngXMLParser& aXMLparser );
       
    85 
       
    86 
       
    87 
       
    88 protected: // Constructors
       
    89 
       
    90     /**
       
    91      *  C++ constructor.
       
    92      *  contact list model reference owned
       
    93      */
       
    94     CPEngContactListTransCreate( CPEngContactListModBase& aContactList,
       
    95                                  CPEngSessionSlotId& aSessionSlotId,
       
    96                                  MPEngContactListTransactionManager& aManager,
       
    97                                  TPEngWVCspVersion& aCSPVersion,
       
    98                                  TInt aOperationId );
       
    99 
       
   100 
       
   101     /**
       
   102      * Symbian constructor
       
   103      */
       
   104     void ConstructL();
       
   105     };
       
   106 
       
   107 #endif      //  __CPENGCONTACTLISTTRANSCREATE_H__
       
   108 
       
   109 //  End of File
       
   110