PECengine/PresenceManager2/SrcAttributeList/CPEngAttributeListTransaction2Imp.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Presence contact list transactions.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGATTRIBUTELISTTRANSACTION2IMP_H
       
    19 #define CPENGATTRIBUTELISTTRANSACTION2IMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <CPEngAttributeListTransaction2.h>
       
    24 #include "MPEngAsyncOperationOwner.h"
       
    25 #include "RPEngManagerClient.h"
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 //FORWARD DECLARATIONS
       
    31 class CPEngAttributeListTransaction2;
       
    32 class CPEngAsyncOperation;
       
    33 class CPEngNWSessionSlotID2;
       
    34 class CPEngNWSessionSlotStorageProxy;
       
    35 
       
    36 
       
    37 /**
       
    38  * Presence contact list transactions.
       
    39  *
       
    40  * @since 3.0
       
    41  */
       
    42 NONSHARABLE_CLASS( CPEngAttributeListTransaction2Imp ): public CBase,
       
    43         public MPEngAsyncOperationOwner
       
    44 
       
    45     {
       
    46 public: /* Construction */
       
    47 
       
    48 
       
    49     /**
       
    50      * Instantiates CPEngAttributeListTransaction2Imp object.
       
    51      *
       
    52      * @return New CPEngAttributeListTransaction2Imp instance.
       
    53      */
       
    54     static CPEngAttributeListTransaction2Imp* NewL(
       
    55         CPEngAttributeListTransaction2& aInterface,
       
    56         TInt aPriority,
       
    57         const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    58 
       
    59 
       
    60     /**
       
    61      * Destructor.
       
    62      */
       
    63     ~CPEngAttributeListTransaction2Imp();
       
    64 
       
    65 
       
    66 
       
    67 protected:
       
    68 
       
    69     /**
       
    70      * C++ constructor.
       
    71      */
       
    72     CPEngAttributeListTransaction2Imp(
       
    73         CPEngAttributeListTransaction2& aInterface,
       
    74         TInt aPriority );
       
    75 
       
    76 
       
    77     /**
       
    78      * Symbian OS constructor.
       
    79      */
       
    80     void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    81 
       
    82 
       
    83 
       
    84 public: /* Attribute list implementation */
       
    85 
       
    86 
       
    87     TBool IsPublishAttributeListsActive() const;
       
    88     TInt PublishAttributeLists( MPEngAttributeListTransactionObserver2& aObserver );
       
    89     void CancelPublishAttributeLists();
       
    90 
       
    91 
       
    92 private: //from MPEngAsyncOperationOwner
       
    93 
       
    94 
       
    95     /**
       
    96      * Notifies from async operation destruction.
       
    97      * @since 3.0
       
    98      * @param aOperation The dying operation.
       
    99      */
       
   100     void HandleAsyncOperationDestruction( CPEngAsyncOperation* aOperation );
       
   101 
       
   102 
       
   103 
       
   104 
       
   105 
       
   106 private: //Implementation
       
   107 
       
   108 
       
   109 
       
   110 private: //Data
       
   111 
       
   112     //REF: Implemented interface
       
   113     CPEngAttributeListTransaction2& iInterface;
       
   114 
       
   115     //OWN: The priority
       
   116     TInt    iCActivePriority;
       
   117 
       
   118     //OWN:
       
   119     CPEngNWSessionSlotStorageProxy* iUsedSlot;
       
   120 
       
   121     //OWN: Attribute list publish op
       
   122     CPEngAsyncOperation*    iAttributeListPublishOp;
       
   123 
       
   124     // OWN: Server
       
   125     RPEngManagerClient          iTransactionServer;
       
   126 
       
   127 
       
   128     };
       
   129 
       
   130 #endif  //CPENGATTRIBUTELISTTRANSACTION2IMP_H
       
   131 
       
   132 // End of File