equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 the License "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 #ifndef TCALLBACK_H |
|
19 #define TCALLBACK_H |
|
20 |
|
21 |
|
22 /** |
|
23 * Forward declartaions |
|
24 */ |
|
25 |
|
26 class MLiwNotifyCallback; |
|
27 // class CSapiEvent ; |
|
28 class CActiveSchedulerWait ; |
|
29 class CLiwLogIter; |
|
30 |
|
31 /** |
|
32 * Test Case Name : AddTest1 |
|
33 * Description: Simple functionality test for Add Provider command |
|
34 * Model: sync |
|
35 * Returns: KErrnone if successfull else symbian specific error code |
|
36 */ |
|
37 |
|
38 class tcallback:public MLiwNotifyCallback |
|
39 { |
|
40 |
|
41 public: |
|
42 TInt HandleNotifyL( |
|
43 TInt aCmdId, |
|
44 TInt aEventId, |
|
45 CLiwGenericParamList& aEventParamList, |
|
46 const CLiwGenericParamList& aInParamList); |
|
47 |
|
48 |
|
49 |
|
50 inline TInt Status(void) |
|
51 { |
|
52 return iRetVal ; |
|
53 } |
|
54 //--------------------------------------------------------- |
|
55 // Starts the wait loop |
|
56 //--------------------------------------------------------- |
|
57 void Start() ; |
|
58 tcallback() ; |
|
59 |
|
60 ~tcallback(); |
|
61 |
|
62 void Reset() |
|
63 { |
|
64 delete iScheduler ; |
|
65 // iConsumer = NULL ; |
|
66 } |
|
67 |
|
68 |
|
69 void RunL(); |
|
70 |
|
71 void SetActive(); |
|
72 |
|
73 private : |
|
74 CActiveSchedulerWait *iScheduler ; |
|
75 TInt iRetVal ; |
|
76 // Ctlogprovidertest *iConsumer ; |
|
77 }; |
|
78 |
|
79 #endif |