1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <hb/hbcore/hbindicatorsymbian.h> |
|
20 #include "debug.h" |
|
21 |
|
22 EXPORT_C CHbIndicatorSymbian* CHbIndicatorSymbian::NewL() |
|
23 { |
|
24 CHbIndicatorSymbian *me = new CHbIndicatorSymbian(); |
|
25 me->ConstructL(); |
|
26 return me; |
|
27 } |
|
28 |
|
29 EXPORT_C CHbIndicatorSymbian::~CHbIndicatorSymbian() |
|
30 { |
|
31 delete d; |
|
32 } |
|
33 |
|
34 /*! |
|
35 Activates an indicator of type \a aIndicatorType. |
|
36 An extra parameter can be passed along to the indicator plugin. |
|
37 Returns true, if the indicator is activated, false, if an error occurred. |
|
38 |
|
39 \sa Deactivate |
|
40 */ |
|
41 EXPORT_C TBool CHbIndicatorSymbian::Activate(const TDesC& aIndicatorType, const CHbSymbianVariant* aParameter) |
|
42 { |
|
43 LOG( (" MockCHbIndicatorSymbian::Activate")); |
|
44 return true; |
|
45 } |
|
46 |
|
47 /*! |
|
48 Deactivates an indicator of type \a indicatorType. |
|
49 An extra parameter can be passed along to the indicator plugin. |
|
50 If indicator is not currently active, does nothing and returns true. |
|
51 Returns false, if error occurred. |
|
52 |
|
53 \sa Activate |
|
54 */ |
|
55 EXPORT_C TBool CHbIndicatorSymbian::Deactivate(const TDesC& aIndicatorType, const CHbSymbianVariant* aParameter) |
|
56 { |
|
57 return true; |
|
58 } |
|
59 |
|
60 /*! |
|
61 Returns the last error code. The code is cleared when any other API function than error() is called. |
|
62 */ |
|
63 EXPORT_C TInt CHbIndicatorSymbian::Error() const |
|
64 { |
|
65 return 0; |
|
66 } |
|
67 |
|
68 EXPORT_C void CHbIndicatorSymbian::SetObserver(MHbIndicatorSymbianObserver* aObserver) |
|
69 { |
|
70 |
|
71 } |
|
72 |
|
73 CHbIndicatorSymbian::CHbIndicatorSymbian() |
|
74 { |
|
75 } |
|
76 |
|
77 void CHbIndicatorSymbian::ConstructL() |
|
78 { |
|
79 |
|
80 } |
|