videofeeds/vcnsuiengine/inc/vcxnscontentproviderobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:41:27 +0300
branchRCL_3
changeset 20 2d690156cf8f
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/




#ifndef MVCXNSCONTENTPROVIDEROBSERVER_H
#define MVCXNSCONTENTPROVIDEROBSERVER_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "CIptvUtil.h" 

class CVcxNsContent;
// CLASS DECLARATION

/**
 *  MVcxNsContentProviderObserver
 * 
 *  @lib vcxnsuiengine.lib
 */
class MVcxNsContentProviderObserver
    {
    
public:

    /**
     * Notify content's data has been updated.
     *
     * @param aIndex Updated item's index
     */
    virtual void ContentUpdated( TInt aIndex ) = 0;

    /**
     * Full view data needs to be updated.
     */
    virtual void RefreshView() = 0;
    
    /**
     * Application state needs to be updated.
     */
    virtual void HandleAppStateChangedL() = 0;
   
    /**
     * Epg update is ongoing, show the notification.
     * When downloading and parsing the xml, both parameters are 0.
     * 
     * @param aShow If ETrue, show the note, if EFalse, hide it.
     * @param aDownloadedTbns count of downloaded thumbnails.
     * @param aTotalTbns Total count of thumbnails to be downloaded.
     */
    virtual void ShowUpdatingNoteL( 
            TBool aShow, 
            TInt aDownloadedTbns, 
            TInt aTotalTbns ) = 0;
    
    /**
     * Handle error 
     * 
     * @param aError Error to handle in UI
     */
    virtual void HandleUpdateErrorL( TInt aError ) = 0;

    /**
     * Handle download error 
     * 
     * @param aError Error to handle in UI
     * @param aContent Details of the video which download has failed.
     */
    virtual void HandleDownloadErrorL( 
        TIptvDlError aError, 
        CVcxNsContent& aContent ) = 0;

    };

#endif // MVCXNSCONTENTPROVIDEROBSERVER_H