|
1 /* |
|
2 * Copyright (c) 2005-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 "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: Implementation wrapper for CAknSkinnableClock |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <coecntrl.h> |
|
21 #include <barsread.h> |
|
22 #include "xncomponent.h" |
|
23 #include "xnclock.h" |
|
24 #include "xnclockadapter.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CXnClock::NewL |
|
30 // Symbian static 1st phase constructor |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CXnClock* CXnClock::NewL() |
|
34 { |
|
35 CXnClock* self = new( ELeave ) CXnClock; |
|
36 |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL(); |
|
39 CleanupStack::Pop(); |
|
40 |
|
41 return self; |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CXnClock::ConstructL |
|
46 // Symbian 2nd phase constructor can leave. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 void CXnClock::ConstructL() |
|
50 { |
|
51 CXnComponent::ConstructL(); |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CXnClock::ConstructL |
|
56 // C++ default constructor |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 CXnClock::CXnClock() |
|
60 { |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CXnClock::ConstructL |
|
65 // C++ destructor |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 CXnClock::~CXnClock() |
|
69 { |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------- |
|
73 // --------------------------------------------------------- |
|
74 XnComponentInterface::MXnComponentInterface* CXnClock::MakeInterfaceL(const TDesC8& aType) |
|
75 { |
|
76 if( aType != XnClockInterface::KType ) |
|
77 { |
|
78 return NULL; |
|
79 } |
|
80 |
|
81 XnClockInterface::MXnClockInterface* clockIf = static_cast< XnClockInterface::MXnClockInterface* >( this ); |
|
82 |
|
83 return clockIf; |
|
84 } |
|
85 |
|
86 // End of file |