videofeeds/vcnsuiengine/inc/vcxnsserviceproviderobserver.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 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 MVCXNSSERVICEPROVIDEROBSERVER_H
       
    22 #define MVCXNSSERVICEPROVIDEROBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include "CIptvUtil.h"
       
    28 
       
    29 class CVcxNsService;
       
    30 class TViaPlayerCustomMessage;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  MVcxNsServiceProviderObserver
       
    36  * 
       
    37  *  @lib vcxnsuiengine.lib
       
    38  */
       
    39 class MVcxNsServiceProviderObserver
       
    40     {
       
    41     
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Notify service has been added.
       
    46      *
       
    47      * @param aIndex Added item's index
       
    48      */
       
    49     virtual void ServiceAdded( TInt aIndex ) = 0;
       
    50 
       
    51     /**
       
    52      * Notify service's data has been updated.
       
    53      *
       
    54      * @param aIndex Updated item's index
       
    55      */
       
    56     virtual void ServiceUpdated( TInt aIndex ) = 0;
       
    57 
       
    58     /**
       
    59      * Notify services data has been removed
       
    60      *
       
    61      * @param aIndex Removed item's index
       
    62      * @param aUpdatedServiceList Updated service list array
       
    63      */
       
    64     virtual void ServiceRemoved( 
       
    65             TInt aIndex, 
       
    66             RPointerArray<CVcxNsService>& aUpdatedServiceList ) = 0;
       
    67     
       
    68     /**
       
    69      * Full view data needs to be updated.
       
    70      */
       
    71     virtual void RefreshView() = 0;
       
    72     
       
    73     /**
       
    74      * Application state needs to be updated.
       
    75      */
       
    76     virtual void HandleAppStateChangedL() = 0;
       
    77     
       
    78     /**
       
    79      * Open browser with specified url.
       
    80      * @param aUri URL
       
    81      */    
       
    82     virtual void OpenBrowserLinkL( const TDesC& aUri ) = 0;
       
    83     
       
    84     /**
       
    85      * Open streaming link with specified player message.
       
    86      * @param aPlayerMsg Player message
       
    87      */
       
    88     virtual void OpenStreamingLinkL( const TDesC& aUri ) = 0;
       
    89 
       
    90     };
       
    91 
       
    92 #endif // MVCXNSSERVICEPROVIDEROBSERVER_H