videofeeds/server/IptvNetworkSelection/inc/CIptvNetworkSelectionMsgHandler.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2006 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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CIPTVNETWORKSELECTIONMSGHANDLER_H
       
    22 #define CIPTVNETWORKSELECTIONMSGHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "CIptvUtil.h"
       
    27 
       
    28 #include "IptvClientServerCommon.h"
       
    29 #include "TIptvGetUsedIapReq.h"
       
    30 #include "MIptvNetworkSelectionObserver.h"
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 // MACROS
       
    35 
       
    36 // DATA TYPES
       
    37 
       
    38 // FUNCTION PROTOTYPES
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 class CIptvServer;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46  * Handles Network Selection messages from client process. Uses CIptvNetworkSelection
       
    47  * object. This object is instantiated (in CIptvServerSession) if client uses
       
    48  * Network Selection API functions from CIptvServiceManagementClient object.
       
    49  */
       
    50 class CIptvNetworkSelectionMsgHandler : public CBase, public MIptvNetworkSelectionObserver
       
    51     {
       
    52     public: // Constructors and destructor
       
    53         
       
    54         /**
       
    55         * Two-phased constructor.
       
    56         */
       
    57         static CIptvNetworkSelectionMsgHandler* NewL(CIptvServer& aServer);
       
    58         
       
    59         /**
       
    60         * Destructor.
       
    61         */
       
    62         virtual ~CIptvNetworkSelectionMsgHandler();
       
    63         
       
    64     public: // New functions
       
    65         
       
    66         /**
       
    67          * Handles all network selection messages.
       
    68          * @param aMessage, IPC message.
       
    69          */
       
    70         void HandleMsgL(const RMessage2& aMessage);
       
    71         
       
    72         /**
       
    73         * from MIptvNetworkSelectionObserver.
       
    74         */        
       
    75         void GetUsedIapResp(TIptvGetUsedIapReq* aRequestOb);
       
    76         
       
    77     private:
       
    78 
       
    79         /**
       
    80         * C++ default constructor.
       
    81         */
       
    82         CIptvNetworkSelectionMsgHandler(CIptvServer& aServer);
       
    83 
       
    84         /**
       
    85         *
       
    86         */
       
    87         void GetUsedIapRespL();
       
    88 
       
    89     private: // Data
       
    90 
       
    91         /**
       
    92         *
       
    93         */		
       
    94 		CIptvServer&       iServer;
       
    95 		
       
    96         /**
       
    97         *
       
    98         */		
       
    99 		TIptvGetUsedIapReq iGetUsedIapReq;
       
   100 		
       
   101         /**
       
   102         *
       
   103         */		
       
   104 		RMessage2          iMessage;
       
   105 		
       
   106         /**
       
   107         *
       
   108         */		
       
   109 		HBufC8*            iIpcMsg;
       
   110 		
       
   111         /**
       
   112         *
       
   113         */		
       
   114 		TIptvEngineServerReq iMsgPending;
       
   115     };
       
   116 
       
   117 #endif // CIPTVNETWORKSELECTIONMSGHANDLER_H