PECengine/PresenceManager2/SrcNWSessionSlot/CPEngNWSessionSlotEventEntry.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:  NWSessionSlotEvent entry.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGNWSESSIONSLOTEVENTENTRY_H
       
    19 #define CPENGNWSESSIONSLOTEVENTENTRY_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <PEngPresenceEngineConsts2.h>
       
    24 
       
    25 
       
    26 //FORWARD DECLARATIONS
       
    27 class CPEngNWSessionSlotEvent2;
       
    28 class CPEngSessionSlotEvent;
       
    29 class CPEngNWSessionSlotID2;
       
    30 class CPEngSessionSlotId;
       
    31 
       
    32 
       
    33 
       
    34 /**
       
    35  * NWSessionSlotEvent entry.
       
    36  *
       
    37  * @since 3.0
       
    38  */
       
    39 NONSHARABLE_CLASS( CPEngNWSessionSlotEventEntry ) : public CBase
       
    40     {
       
    41 
       
    42     //-----------------------------------------------------------------------
       
    43 public: /* Construction */
       
    44 
       
    45     /**
       
    46      * Instantiates CPEngNWSessionSlotEventEntry object.
       
    47      *
       
    48      * @return New CPEngNWSessionSlotEventEntry instance.
       
    49      */
       
    50     static CPEngNWSessionSlotEventEntry* NewL();
       
    51 
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      * Virtual by CBase.
       
    56      */
       
    57     ~CPEngNWSessionSlotEventEntry();
       
    58 
       
    59 
       
    60     /**
       
    61      * Copies CPEngNWSessionSlotEventEntry data from given source.
       
    62      *
       
    63      * @param aSource The CPEngNWSessionSlotEventEntry event source.
       
    64      */
       
    65     void CopyL( const CPEngNWSessionSlotEventEntry& aSource );
       
    66 
       
    67 
       
    68 
       
    69 protected:  // Constructor
       
    70 
       
    71     /**
       
    72      * C++ default constructor.
       
    73      */
       
    74     CPEngNWSessionSlotEventEntry();
       
    75 
       
    76 
       
    77 
       
    78     //-----------------------------------------------------------------------
       
    79 public: /* Interface */
       
    80 
       
    81 
       
    82     /**
       
    83      *
       
    84      *
       
    85      * @since 3.0
       
    86      *
       
    87      */
       
    88     void SetFullEventReferenceL( const CPEngSessionSlotEvent& aInternalEvent );
       
    89 
       
    90 
       
    91     /**
       
    92      *
       
    93      *
       
    94      * @since 3.0
       
    95      *
       
    96      */
       
    97     void SetPseudoEventReferenceL( const CPEngSessionSlotId& aBasePart,
       
    98                                    const TDesC& aAppId,
       
    99                                    TPEngNWSessionSlotState aAppState,
       
   100                                    TPEngNWSessionSlotState aCSPState );
       
   101 
       
   102 
       
   103     /**
       
   104      *
       
   105      *
       
   106      * @since 3.0
       
   107      *
       
   108      */
       
   109     void ResetReferences();
       
   110 
       
   111 
       
   112 
       
   113 private: //Data
       
   114 
       
   115 
       
   116     /**
       
   117      * Interface is friend.
       
   118      * @since 3.0
       
   119      */
       
   120     friend class CPEngNWSessionSlotEvent2;      // CSI: 36 #
       
   121 
       
   122 
       
   123     //OWN: Exported class interface
       
   124     CPEngNWSessionSlotEvent2*   iInterface;
       
   125 
       
   126     //OWN: The NWSessionSlotID
       
   127     CPEngNWSessionSlotID2*      iNWSessionSlotID;
       
   128 
       
   129     //OWN: The event
       
   130     TPEngNWSessionSlotEvent     iEvent;
       
   131 
       
   132     //OWN: The NWSessionSlot state
       
   133     TPEngNWSessionSlotState     iNWSessionSlotState;
       
   134 
       
   135     //OWN: The CSPSessionState state
       
   136     TPEngNWSessionSlotState     iCSPSessionState;
       
   137 
       
   138     //OWN: The additional integer
       
   139     TInt                        iEventInt;
       
   140 
       
   141     //OWN: The additional descriptor
       
   142     TPtrC                       iEventDesc;
       
   143 
       
   144     //OWN: The additional descriptor value buffer for clones
       
   145     HBufC*                      iEventDescBuf;
       
   146 
       
   147     };
       
   148 
       
   149 #endif      //CPENGNWSESSIONSLOTEVENTENTRY_H
       
   150 
       
   151 
       
   152