cbs/CbsServer/ServerInc/CCbsLivecastHandler.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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:  Definition of CCbsLivecasetHandler class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef     CCBSLIVECASTHANDLER_H
       
    20 #define     CCBSLIVECASTHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "CCbsMessage.h"
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CCbsRecEtel;
       
    29 
       
    30 //  CLASS DECLARATION 
       
    31 
       
    32 /**
       
    33 *   CCbsLivecastHandler constructs CB messages based on a page
       
    34 *   received through ETel.
       
    35 *
       
    36 *   The selection between GSM and WCDMA messages is made when
       
    37 *   constructing the message.
       
    38 */
       
    39 class CCbsLivecastHandler : public CBase
       
    40     {
       
    41     public:     // New functions        
       
    42 
       
    43         /**
       
    44         *   Constructs a new CCbsLivecastHandler 
       
    45         *   
       
    46         *   @param      aRecEtel        CCbsRecEtel reference
       
    47         *   @return                     A new instance of CCbsLivecastHandler
       
    48         */
       
    49         static CCbsLivecastHandler* NewL( CCbsRecEtel& aRecEtel );
       
    50 
       
    51         /**
       
    52         *   Destructor
       
    53         */
       
    54         ~CCbsLivecastHandler();
       
    55 
       
    56         /**
       
    57         *   Processes Livecast messages
       
    58         */
       
    59         void HandleLivecastMessageL( CCbsMessage* aLivecastMessage );
       
    60         
       
    61     private:
       
    62 
       
    63         /**
       
    64         *   Default constructor               
       
    65         */  
       
    66         CCbsLivecastHandler( CCbsRecEtel& aRecEtel );
       
    67 
       
    68         /**
       
    69         *   2nd-phase constructor               
       
    70         */
       
    71         void ConstructL();
       
    72 
       
    73     private: // Data
       
    74 
       
    75         // CCbsRecEtel instance to which CB messages are passed.
       
    76         CCbsRecEtel& iRecEtel;
       
    77 
       
    78     };
       
    79 
       
    80 #endif      //  CCBSLIVECASTHANDLER_H   
       
    81             
       
    82 // End of File
       
    83 
       
    84