videofeeds/vcnsuiengine/inc/vcxnsserviceclienthandler.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2009 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 VCXNSSERVICECLIENTHANDLER_H_
       
    22 #define VCXNSSERVICECLIENTHANDLER_H_
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 #include "MIptvServiceManagementClientObserver.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CIptvServiceManagementClient;
       
    31 class CVcxNsUiEngine;
       
    32 
       
    33 /**
       
    34 * Class CVcxNsServiceClientHandler handles service client interactions.
       
    35 *
       
    36 * @lib vcxnsuiengine.lib
       
    37 */
       
    38 class CVcxNsServiceClientHandler : public CBase,
       
    39                                    public MIptvServiceManagementClientObserver
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Constructor.
       
    46      * 
       
    47      * @param aUiEngine Ui engine
       
    48      */
       
    49     static CVcxNsServiceClientHandler* CVcxNsServiceClientHandler::NewL( CVcxNsUiEngine& aUiEngine );
       
    50     
       
    51     virtual ~CVcxNsServiceClientHandler();
       
    52 
       
    53     /**
       
    54      * Returns service management client.
       
    55      * @return Pointer to CIptvServiceManagementClient object.
       
    56      */
       
    57     CIptvServiceManagementClient* GetServiceManagementClientL();
       
    58 
       
    59 // From MIptvServiceManagementClientObserver
       
    60 
       
    61     /**
       
    62      * Not used. Mandatory to implement as Service Manager client.
       
    63      */
       
    64     void AddServiceResp( TRespStatus /*aRespStatus*/ ) { ; }
       
    65 
       
    66     /**
       
    67      * Not used. Mandatory to implement as Service Manager client.
       
    68      */
       
    69     void UpdateServiceResp( TRespStatus /*aRespStatus*/ ) { ; }
       
    70 
       
    71     /**
       
    72      * Not used. Mandatory to implement as Service Manager client.
       
    73      */
       
    74     void DeleteServiceResp( TRespStatus /*aRespStatus*/ ) { ; }
       
    75     
       
    76     /**
       
    77      * Not used. Mandatory to implement as Service Manager client.
       
    78      */
       
    79     void GetServicesResp( TRespStatus /*aRespStatus*/, 
       
    80                           CDesC8ArraySeg* /*aServicesArray*/ ) { ; }
       
    81 
       
    82     /**
       
    83      * Not used. Mandatory to implement as Service Manager client.
       
    84      */
       
    85     void GetUsedIapResp( TUint32 /*aIapId*/,
       
    86                          const TDesC& /*aIapName*/,
       
    87                          CIptvNetworkSelection::TConnectionPermission /*aConnectionPermission*/,
       
    88                          TBool /*aWlanWhenGPRS*/,
       
    89                          CIptvNetworkSelection::TRespStatus /*aRespStatus*/ ) { ; }
       
    90 
       
    91     /**
       
    92      * Not used. Mandatory to implement as Service Manager client.
       
    93      */
       
    94     void ServerShutdownResp( TRespStatus /*aRespStatus*/ ) { ; }
       
    95     
       
    96     /**
       
    97      * Used to forward events of service db changes to observing clients..
       
    98      * @param aEvent event
       
    99      */
       
   100     void HandleSmEvent( CIptvSmEvent& aEvent ); 
       
   101    
       
   102 public:
       
   103     
       
   104     /**
       
   105      * Delete service from database
       
   106      * @param aId Service id 
       
   107      */
       
   108     void DeleteFeedL( TUint32 aId );
       
   109     
       
   110     /**
       
   111      * Update feed.
       
   112      * @param aService Service data to update 
       
   113      */
       
   114     void UpdateFeedL( CIptvService& aService );
       
   115     
       
   116 private:
       
   117 
       
   118     /**
       
   119      * Constructor.
       
   120      * 
       
   121      * @param aUiEngine Ui engine
       
   122      */
       
   123     CVcxNsServiceClientHandler( CVcxNsUiEngine& aUiEngine );
       
   124     
       
   125 // Data
       
   126 
       
   127     /**
       
   128      * CIptvServiceManagementClient
       
   129      */
       
   130     CIptvServiceManagementClient* iIptvServiceManagementClient;
       
   131     
       
   132     /**
       
   133      * CVcxNsUiEngine
       
   134      */
       
   135     CVcxNsUiEngine& iUiEngine; 
       
   136 
       
   137     };
       
   138 
       
   139 #endif /*VCXNSSERVICECLIENTHANDLER_H_*/