adaptationlayer/systemstatemanageradaptation/iscservice/inc/sa_common_isc_service_channel_listener.h
changeset 5 8ccc39f9d787
equal deleted inserted replaced
4:510c70acdbf6 5:8ccc39f9d787
       
     1 /*
       
     2 * ==============================================================================
       
     3 *  Name:           sa_common_isc_service_channel_listener.h
       
     4 *  Part of:        System adaptation
       
     5 *  Description:    Declaration of CSACommonIscServiceChannelListener class
       
     6 *  %version:       1 %
       
     7 *  %date_modified: Tue Dec 29 15:59:19 2009 %
       
     8 *
       
     9 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    10 * All rights reserved.
       
    11 * This component and the accompanying materials are made available
       
    12 * under the terms of the License "Eclipse Public License v1.0"
       
    13 * which accompanies this distribution, and is available
       
    14 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    15 *
       
    16 * Initial Contributors:
       
    17 * Nokia Corporation - initial contribution.
       
    18 *
       
    19 * Contributors:
       
    20 * 
       
    21 * Description: 
       
    22 * Declaration of CSACommonIscServiceChannelListener class
       
    23 *
       
    24 */
       
    25 
       
    26 
       
    27 #ifndef SA_COMMON_ISC_SERVICE_CHANNEL_LISTENER_H
       
    28 #define SA_COMMON_ISC_SERVICE_CHANNEL_LISTENER_H
       
    29 
       
    30 //  INCLUDES
       
    31 #include <e32base.h>
       
    32 
       
    33 // CONSTANTS
       
    34 
       
    35 // MACROS
       
    36 
       
    37 // DATA TYPES
       
    38 
       
    39 // FUNCTION PROTOTYPES
       
    40 
       
    41 // FORWARD DECLARATIONS
       
    42 class MSAIscService;
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  CSACommonIscServiceChannelListener
       
    48 *
       
    49 */
       
    50 class CSACommonIscServiceChannelListener : public CActive
       
    51     {
       
    52     public:  // Constructors and destructor
       
    53         
       
    54         /**
       
    55         * Two-phased constructor.
       
    56         * @param aAdaptation           Reference to Adaptation
       
    57         * @param aIscApi               Reference to ISC channel
       
    58         * @return                      Pointer to created object
       
    59         */
       
    60         static CSACommonIscServiceChannelListener* NewL(
       
    61             MSAIscService& aAdaptation,
       
    62             RIscApi& aIscApi );
       
    63         
       
    64         /**
       
    65         * Destructor.
       
    66         */
       
    67         virtual ~CSACommonIscServiceChannelListener();
       
    68 
       
    69 
       
    70     private:
       
    71 
       
    72         /**
       
    73         * From CActive class
       
    74         * This function receives messages via ISC channel
       
    75         * @return                      none
       
    76         */
       
    77         void RunL();
       
    78 
       
    79         /**
       
    80         * From CActive class
       
    81         * This function is called if RunL leaves
       
    82         * @param aError                Leave cause
       
    83         * @return                      KErrNone
       
    84         */
       
    85         TInt RunError( TInt aError );
       
    86 
       
    87         /**
       
    88         * From CActive class
       
    89         * This function is called from CActive Cancel() method
       
    90         * @return                      none
       
    91         */
       
    92         void DoCancel();
       
    93 
       
    94         /**
       
    95         * C++ default constructor.
       
    96         * @param aAdaptation           Reference to Adaptation
       
    97         * @param aIscApi               Reference to ISC channel
       
    98         */
       
    99         CSACommonIscServiceChannelListener(
       
   100             MSAIscService& aAdaptation,
       
   101             RIscApi& aIscApi );
       
   102 
       
   103         /**
       
   104         * By default Symbian 2nd phase constructor is private.
       
   105         */
       
   106         void ConstructL();
       
   107 
       
   108     private:  // Data
       
   109 
       
   110         // Reference to Adaptation
       
   111         MSAIscService& iAdaptation;
       
   112 
       
   113         // Reference to monitored ISC channel
       
   114         RIscApi& iIscApi;
       
   115 
       
   116         // Connection status to monitored ISC channel
       
   117         TInt iConnectionStatus;
       
   118 
       
   119     };
       
   120 
       
   121 #endif      // SA_COMMON_ISC_SERVICE_CHANNEL_LISTENER_H
       
   122 
       
   123 // End of File