videofeeds/vcnsuiengine/inc/vcxnscategoryproviderobserver.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 MVCXNSCATEGORYPROVIDEROBSERVER_H
       
    22 #define MVCXNSCATEGORYPROVIDEROBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include "CIptvUtil.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  *  MVcxNsCategoryProviderObserver
       
    33  * 
       
    34  *  @lib vcxnsuiengine.lib
       
    35  */
       
    36 class MVcxNsCategoryProviderObserver
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Notify category's data has been updated.
       
    42      *
       
    43      * @param aIndex Updated item's index
       
    44      */
       
    45     virtual void CategoryUpdated( TInt aIndex ) = 0;
       
    46 
       
    47     /**
       
    48      * Full view data needs to be updated.
       
    49      */
       
    50     virtual void RefreshView() = 0;
       
    51     
       
    52     /**
       
    53      * Application state needs to be updated.
       
    54      */
       
    55     virtual void HandleAppStateChangedL() = 0;
       
    56    
       
    57     /**
       
    58      * Epg update is ongoing, show the notification.
       
    59      * When downloading and parsing the xml, both parameters are 0.
       
    60      * 
       
    61      * @param aShow If ETrue, show the note, if EFalse, hide it.
       
    62      * @param aDownloadedTbns count of downloaded thumbnails.
       
    63      * @param aTotalTbns Total count of thumbnails to be downloaded.
       
    64      */
       
    65     virtual void ShowUpdatingNoteL( 
       
    66             TBool aShow, 
       
    67             TInt aDownloadedTbns, 
       
    68             TInt aTotalTbns ) = 0;
       
    69 
       
    70     /**
       
    71      * Handle error 
       
    72      * 
       
    73      * @param aError Error to handle in UI
       
    74      */
       
    75     virtual void HandleUpdateErrorL( TInt aError ) = 0;
       
    76     };
       
    77 
       
    78 #endif // MVCXNSCATEGORYPROVIDEROBSERVER_H