|
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 #include "CIptvEpgSchedule.h" |
|
21 #include "CIptvEpgProgramWithSchedule.h" |
|
22 |
|
23 EXPORT_C CIptvEpgProgramWithSchedule* CIptvEpgProgramWithSchedule::NewL() |
|
24 { |
|
25 CIptvEpgProgramWithSchedule* self = new (ELeave) CIptvEpgProgramWithSchedule(); |
|
26 CleanupStack::PushL( self ); |
|
27 self->ConstructL(); |
|
28 CleanupStack::Pop( self ); |
|
29 return self; |
|
30 } |
|
31 |
|
32 CIptvEpgProgramWithSchedule::CIptvEpgProgramWithSchedule() : |
|
33 iEndTime( KMaxTInt64 ) |
|
34 { |
|
35 } |
|
36 |
|
37 CIptvEpgProgramWithSchedule::~CIptvEpgProgramWithSchedule() |
|
38 { |
|
39 delete iSchedule; |
|
40 } |
|
41 |
|
42 void CIptvEpgProgramWithSchedule::ConstructL() |
|
43 { |
|
44 CIptvEpgProgram::ConstructL(); |
|
45 iSchedule = CIptvEpgSchedule::NewL(); |
|
46 } |
|
47 |
|
48 EXPORT_C CIptvEpgSchedule& CIptvEpgProgramWithSchedule::Schedule() |
|
49 { |
|
50 iSchedule->SetChannelId( this->ChannelId() ); |
|
51 iSchedule->SetProgramId( this->ProgramId() ); |
|
52 iSchedule->SetServiceId( this->ServiceId() ); |
|
53 iSchedule->SetStartTime( iStartTime ); |
|
54 iSchedule->SetEndTime( iEndTime ); |
|
55 |
|
56 return *iSchedule; |
|
57 } |
|
58 |
|
59 EXPORT_C void CIptvEpgProgramWithSchedule::SetStartTime( const TTime& aStartTime ) |
|
60 { |
|
61 iStartTime = aStartTime; |
|
62 } |
|
63 |
|
64 EXPORT_C TTime CIptvEpgProgramWithSchedule::StartTime() const |
|
65 { |
|
66 return iStartTime; |
|
67 } |
|
68 |
|
69 EXPORT_C void CIptvEpgProgramWithSchedule::SetEndTime( const TTime& aEndTime ) |
|
70 { |
|
71 iEndTime = aEndTime; |
|
72 } |
|
73 |
|
74 EXPORT_C TTime CIptvEpgProgramWithSchedule::EndTime() const |
|
75 { |
|
76 return iEndTime; |
|
77 } |
|
78 |
|
79 // End of file |