satengine/SatServer/Engine/inc/csatbipsubconneventobserver.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2007 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:  Observer of Subconnection parameters granted event
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSATBIPSUBCONNEVENTOBSERVER_H
       
    20 #define CSATBIPSUBCONNEVENTOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include    <e32base.h>
       
    24 #include    <es_sock.h>
       
    25 
       
    26 class   CSatBIPGPRSDataChannel;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  CSatBIPSubConnEventObserver
       
    32  *
       
    33  *  Observe the SubConnection parameters granted event
       
    34  *
       
    35  *  @lib SatEngine.lib
       
    36  *  @since Series 60 3.2
       
    37  */
       
    38 NONSHARABLE_CLASS( CSatBIPSubConnEventObserver ): public CActive
       
    39     {
       
    40 public:
       
    41 // Constructor and destructor
       
    42 
       
    43     /**
       
    44      * Default constructor.
       
    45      *
       
    46      * @since S60 3.2
       
    47      * @param aObserver GPRS data channel, which responsible for fetch negQoS 
       
    48      *                  from SubConnection parameters granted event
       
    49      */
       
    50     CSatBIPSubConnEventObserver( CSatBIPGPRSDataChannel& aObserver );
       
    51     
       
    52     /**
       
    53      * Destructor
       
    54      *
       
    55      * @since S60 3.2
       
    56      */
       
    57     virtual ~CSatBIPSubConnEventObserver();
       
    58         
       
    59 // New functions
       
    60 
       
    61     /**
       
    62      * Starts observing granted event
       
    63      */
       
    64    void StartObservSubConnEvent();
       
    65 
       
    66 // From base class CActive
       
    67 
       
    68     /**
       
    69      * From CActive. Informs observer that granted event has been received.
       
    70      *
       
    71      * @since S60 3.2
       
    72      */
       
    73     void RunL();
       
    74 
       
    75     /**
       
    76      * From CActive. Cancels any outgoing requests
       
    77      *
       
    78      * @since S60 3.2
       
    79      */
       
    80     void DoCancel();
       
    81 
       
    82 private: // Data
       
    83          
       
    84     /**
       
    85      * EventFilter for subconnection
       
    86      */
       
    87     RSubConnection::TEventFilter iEventFilter;
       
    88         
       
    89     /**
       
    90      * Buffer for Sub-connection event notiifcation
       
    91      */
       
    92     TNotificationEventBuf iEventBuffer;
       
    93         
       
    94     /**
       
    95      * Reference to class CSatBIPGPRSDataChannel.
       
    96      * Not own.
       
    97      */
       
    98     CSatBIPGPRSDataChannel& iDataChannel;
       
    99     };
       
   100 
       
   101 #endif      // CSATBIPSUBCONNEVENTOBSERVER_H
       
   102