|
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: Wrapper class for CEikLabel. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _XNCLOCK_H |
|
20 #define _XNCLOCK_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "xncomponent.h" |
|
24 #include <e32base.h> |
|
25 #include "xnnode.h" |
|
26 #include "mxncomponentinterface.h" |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 namespace XnClockInterface |
|
32 { |
|
33 _LIT8( KType, "clock" ); |
|
34 |
|
35 class MXnClockInterface : public XnComponentInterface::MXnComponentInterface |
|
36 { |
|
37 public: |
|
38 |
|
39 static inline const TDesC8& Type() |
|
40 { |
|
41 return KType; |
|
42 } |
|
43 |
|
44 public: // New functions |
|
45 |
|
46 private: |
|
47 }; |
|
48 } |
|
49 |
|
50 /** |
|
51 * @ingroup group_xnclockfactory |
|
52 * @lib xnclockfactory.lib |
|
53 * @since S60 |
|
54 */ |
|
55 class CXnClock : public CXnComponent, public XnClockInterface::MXnClockInterface |
|
56 { |
|
57 public: |
|
58 |
|
59 /** |
|
60 * 2 phase construction. |
|
61 */ |
|
62 static CXnClock* NewL(); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CXnClock(); |
|
68 |
|
69 public: // New functions |
|
70 |
|
71 public: // from CCoeControl |
|
72 |
|
73 /** |
|
74 * Create a component interface according to the given type. |
|
75 * @param aType Type of the interface to create |
|
76 * @return Created interface or NULL if the provided type is not supported. |
|
77 */ |
|
78 virtual XnComponentInterface::MXnComponentInterface* MakeInterfaceL( const TDesC8& aType ); |
|
79 |
|
80 private: |
|
81 |
|
82 CXnClock(); |
|
83 void ConstructL(); |
|
84 }; |
|
85 |
|
86 #endif // _XNCLOCK_H |
|
87 |
|
88 // End of File |