|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // A test wrapper over the CSuplWdpWatcher class. |
|
15 // |
|
16 // |
|
17 |
|
18 #if (!defined __TE_LBSSUPLWDPWATCHER__) |
|
19 #define __TE_LBSSUPLWDPWATCHER__ |
|
20 |
|
21 #include "LbsSuplWdpWatcher.h" |
|
22 |
|
23 /** |
|
24 A test wrapper over the CSuplWdpWatcher class. |
|
25 |
|
26 @see CSuplWdpWatcher |
|
27 */ |
|
28 class CTe_LbsSuplWdpWatcher : public CLbsSuplWdpWatcher |
|
29 { |
|
30 private: |
|
31 /** The flag for enabling/disabling asserts for the CLbsSuplWdpWatcher class */ |
|
32 static TBool iEnableAsserts; |
|
33 |
|
34 public: |
|
35 inline static TBool AssertsEnabled(); |
|
36 inline static void EnableAsserts(); |
|
37 inline static void DisableAsserts(); |
|
38 |
|
39 private: |
|
40 //This constructor is only for avoiding gcce error |
|
41 CTe_LbsSuplWdpWatcher(TInt aPriority, CWatcherLog& aLog) : |
|
42 CLbsSuplWdpWatcher(aPriority, aLog){}; |
|
43 |
|
44 }; |
|
45 |
|
46 |
|
47 inline TBool CTe_LbsSuplWdpWatcher::AssertsEnabled() |
|
48 { |
|
49 return iEnableAsserts; |
|
50 } |
|
51 |
|
52 inline void CTe_LbsSuplWdpWatcher::EnableAsserts() |
|
53 { |
|
54 iEnableAsserts = ETrue; |
|
55 } |
|
56 |
|
57 inline void CTe_LbsSuplWdpWatcher::DisableAsserts() |
|
58 { |
|
59 iEnableAsserts = EFalse; |
|
60 } |
|
61 |
|
62 #endif //__TE_LBSSUPLWDPWATCHER__ |