equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-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 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: Includes call back slot methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOGGINGCALLBACKSLOT_H_ |
|
20 #define LOGGINGCALLBACKSLOT_H_ |
|
21 |
|
22 |
|
23 /** |
|
24 * forward declarations |
|
25 */ |
|
26 class CLogAsyncService ; |
|
27 class CBase ; |
|
28 |
|
29 class CCallbackSlot : public CBase |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * NewL: Two phased construction |
|
35 */ |
|
36 |
|
37 IMPORT_C static CCallbackSlot *NewL() ; |
|
38 |
|
39 /** |
|
40 * NewLC: Creates an instance of CLogSyncServiceClass |
|
41 * Two Phased constructor |
|
42 * returns newly allocated object. |
|
43 */ |
|
44 |
|
45 static CCallbackSlot* NewLC() ; |
|
46 |
|
47 /** |
|
48 * Default Destructor |
|
49 */ |
|
50 |
|
51 ~CCallbackSlot() ; |
|
52 |
|
53 /** |
|
54 * Get the transid. |
|
55 */ |
|
56 |
|
57 inline TUint TransactionId() |
|
58 { |
|
59 return iTransId ; |
|
60 } |
|
61 |
|
62 /** |
|
63 * set active object |
|
64 */ |
|
65 |
|
66 inline void SetActiveObj(CLogAsyncService * aActive) |
|
67 { |
|
68 iActive = aActive ; |
|
69 } |
|
70 |
|
71 /** |
|
72 * set the id |
|
73 */ |
|
74 |
|
75 inline void SetUid(TUint aTransId) |
|
76 { |
|
77 iTransId = aTransId; |
|
78 } |
|
79 |
|
80 /** |
|
81 * get the id |
|
82 */ |
|
83 |
|
84 inline TUint getUid() |
|
85 { |
|
86 return iTransId; |
|
87 } |
|
88 |
|
89 /** |
|
90 * get active object |
|
91 */ |
|
92 |
|
93 inline CLogAsyncService * GetActiveObj() |
|
94 { |
|
95 return iActive ; |
|
96 } |
|
97 |
|
98 private: |
|
99 |
|
100 TUint iTransId ; |
|
101 CLogAsyncService * iActive ; |
|
102 }; |
|
103 |
|
104 #endif |