application/inc/PodCastFeedViewUpdater.h
changeset 2 29cda98b007e
equal deleted inserted replaced
1:5f8e5adbbed9 2:29cda98b007e
       
     1 /*
       
     2 * Copyright (c) 2010 Anders Fridlund, EmbedDev AB
       
     3 *
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of the License "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * EmbedDev AB - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef PODCASTFEEDVIEWUPDATER_H_
       
    20 #define PODCASTFEEDVIEWUPDATER_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 class CPodcastFeedView;
       
    24 
       
    25 class CPodcastFeedViewUpdater : public CAsyncOneShot 
       
    26     {
       
    27 public:
       
    28 	static CPodcastFeedViewUpdater* NewL(CPodcastFeedView& aPodcastFeedView);
       
    29 	void StartUpdate(TInt aNbrItems);
       
    30 	void StopUpdate();
       
    31 	~CPodcastFeedViewUpdater();
       
    32         
       
    33 private:
       
    34 	void ConstructL();
       
    35 	CPodcastFeedViewUpdater(CPodcastFeedView& aPodcastFeedView);
       
    36 
       
    37 	// From CAsyncOneShot
       
    38 	void RunL();
       
    39 	TInt RunError(TInt aError);
       
    40 	
       
    41 private:
       
    42 	CPodcastFeedView& iPodcastFeedView;
       
    43 	TInt iNbrItems;
       
    44 	TInt iNextItem;
       
    45 };
       
    46 
       
    47 #endif /* PODCASTFEEDVIEWUPDATER_H_ */