equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 of the method for accessing |
|
15 * MTactileFeedbackServer -instance |
|
16 * Part of: Tactile Feedback. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include "tactileclickpluginstub.h" |
|
22 #include "tactilefeedbackserver.h" |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 EXPORT_C MTactileFeedbackServer* MTactileFeedbackServer::Instance() |
|
28 { |
|
29 CTactileClickPlugin* clickPlugin = NULL; |
|
30 |
|
31 TAny* tmpPtr = Dll::Tls(); |
|
32 |
|
33 if ( tmpPtr ) |
|
34 { |
|
35 clickPlugin = static_cast<CTactileClickPlugin*>( tmpPtr ); |
|
36 } |
|
37 |
|
38 return clickPlugin; |
|
39 } |
|
40 |
|
41 |