videofeeds/livetvutils/inc/CIptvEpgProgramWithSchedule.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2005 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:    Class to provide program data to*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CIPTVEPGPROGRAMWITHSCHEDULE_H__
       
    21 #define __CIPTVEPGPROGRAMWITHSCHEDULE_H__
       
    22 
       
    23 #include "CIptvEpgProgram.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CIptvEpgSchedule;
       
    27 
       
    28 /**
       
    29 *	"Carrier" class to contain data for single program and it's start and end
       
    30 *	time occurence in EPG xml file. This class is used to communicate data
       
    31 *	from xml content handler to EPG manager to be stored to the database.
       
    32 */
       
    33 class CIptvEpgProgramWithSchedule : public CIptvEpgProgram
       
    34 	{
       
    35 	public:
       
    36 	/**
       
    37 	*	Symbian two phase constructor
       
    38 	*	@param	None
       
    39 	*	@return	Created instance of CLiveTvEpgProgramWithSchedule
       
    40 	*/
       
    41 	IMPORT_C static CIptvEpgProgramWithSchedule* NewL();
       
    42 	
       
    43 	/**
       
    44 	*	Destructor
       
    45 	*/
       
    46 	virtual ~CIptvEpgProgramWithSchedule();
       
    47 
       
    48 	private: // Constructors
       
    49 	/**
       
    50 	*	Default constructor
       
    51 	*/
       
    52 	CIptvEpgProgramWithSchedule();
       
    53 	
       
    54 	/**
       
    55 	*	Symbian second phase constructor which might contain leaving code
       
    56 	*/	
       
    57 	void ConstructL();
       
    58 	
       
    59 	public: // Functions
       
    60 
       
    61 	IMPORT_C void SetStartTime( const TTime& aStartTime );
       
    62 	
       
    63 	IMPORT_C TTime StartTime() const;
       
    64 	
       
    65 	IMPORT_C void SetEndTime( const TTime& aEndTime );
       
    66 	
       
    67 	IMPORT_C TTime EndTime() const;
       
    68 	
       
    69 	IMPORT_C CIptvEpgSchedule& Schedule();
       
    70 	
       
    71 	// Instance variables
       
    72 	private:
       
    73 
       
    74 	TTime iStartTime;
       
    75 	TTime iEndTime;
       
    76 	CIptvEpgSchedule* iSchedule;
       
    77 	};
       
    78 	
       
    79 #endif //__CIPTVEPGPROGRAM_H__
       
    80 
       
    81 // End of file