videofeeds/livetvutils/inc/CIptvEpgScheduleSearch.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2006 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:    Classes to provide carriers of search schedule data to UI*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CIPTVEPGSCHEDULESEARCH_H__
       
    21 #define __CIPTVEPGSCHEDULESEARCH_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 /**
       
    27 *	"Carrier" class to contain data for schedule data for search view.
       
    28 */
       
    29 class CIptvEpgScheduleSearch : public CBase
       
    30 	{
       
    31 	public: // Constructors
       
    32 	/**
       
    33 	*	Default constructor
       
    34 	*/
       
    35 	IMPORT_C static CIptvEpgScheduleSearch* NewL();
       
    36 	
       
    37 	/**
       
    38 	* Destructor.
       
    39 	*/
       
    40 	virtual ~CIptvEpgScheduleSearch();
       
    41 	
       
    42 	public: // Methods
       
    43 	/**
       
    44 	* Sort schedules by start time.
       
    45 	*/
       
    46 	static TInt LinearOrderOfSchedulesByTime( const CIptvEpgScheduleSearch &s1, 
       
    47 									   const CIptvEpgScheduleSearch &s2 );
       
    48 	/**
       
    49 	* Sort schedules by program name.
       
    50 	*/
       
    51 	IMPORT_C static TInt LinearOrderOfSchedulesByName( const CIptvEpgScheduleSearch &s1, 
       
    52 									   const CIptvEpgScheduleSearch &s2 );
       
    53 
       
    54 	private: // Constructors
       
    55 
       
    56 	/**
       
    57 	* C++ constructor.
       
    58 	*/
       
    59 	CIptvEpgScheduleSearch();
       
    60 
       
    61 	/**
       
    62 	* Symbian 2nd phase constructor.
       
    63 	*/	
       
    64 	void ConstructL();
       
    65 	
       
    66 	public: // Public instance variables
       
    67 	
       
    68 	TInt64 iChannelId;
       
    69 	
       
    70 	TInt64 iProgramId;
       
    71 	
       
    72 	TTime iStartTime;
       
    73 
       
    74 	TTime iEndTime;
       
    75 	
       
    76 	HBufC* iProgramName;
       
    77 	
       
    78 	};
       
    79 	
       
    80 #endif //__CIPTVEPGSCHEDULESEARCH_H__
       
    81 
       
    82 // End of File