1 /* |
|
2 * Copyright (c) 2002 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 "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: Camera Application Engine video times provider class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include "CaeVideoTimes.h" |
|
23 |
|
24 |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CCaeVideoTimes::CCaeVideoTimes |
|
31 // Constructor. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CCaeVideoTimes::CCaeVideoTimes() : |
|
35 CPeriodic( CActive::EPriorityStandard - 1 ) |
|
36 { |
|
37 } |
|
38 |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CCaeVideoTimes::~CCaeVideoTimes |
|
42 // Destructor. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 CCaeVideoTimes::~CCaeVideoTimes() |
|
46 { |
|
47 Cancel(); |
|
48 } |
|
49 |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CCaeVideoTimes::ConstructL |
|
53 // Symbian 2nd phase constructor can leave. |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 void CCaeVideoTimes::ConstructL() |
|
57 { |
|
58 CPeriodic::ConstructL(); |
|
59 CActiveScheduler::Add( this ); |
|
60 } |
|
61 |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CCaeVideoTimes::NewL |
|
65 // Two-phased constructor. |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 CCaeVideoTimes* CCaeVideoTimes::NewL() |
|
69 { |
|
70 CCaeVideoTimes* self = new( ELeave ) CCaeVideoTimes; |
|
71 CleanupStack::PushL( self ); |
|
72 self->ConstructL(); |
|
73 CleanupStack::Pop( self ); |
|
74 return self; |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CCaeVideoTimes::RunError |
|
80 // Called if CCaeVideoTimes function RunL() leaves. |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 TInt CCaeVideoTimes::RunError( |
|
84 TInt /*aError*/ ) |
|
85 { |
|
86 return KErrNone; |
|
87 } |
|
88 |
|
89 // End of File |
|