equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 // |
16 // |
17 |
17 |
18 /** |
18 /** |
19 @file |
19 @file |
20 */ |
20 */ |
21 |
|
22 |
|
23 #include "OstTraceDefinitions.h" |
|
24 #ifdef OST_TRACE_COMPILER_IN_USE |
|
25 #include "smspcdbTraces.h" |
|
26 #endif |
|
27 |
21 |
28 #include "smspcdb.h" |
22 #include "smspcdb.h" |
29 #include "smspmain.h" |
23 #include "smspmain.h" |
30 #include "smsuset.h" |
24 #include "smsuset.h" |
31 #include "SmsuTimer.h" |
25 #include "SmsuTimer.h" |
52 } // CSmspCommDbEvent::~CSmspCommDbEvent |
46 } // CSmspCommDbEvent::~CSmspCommDbEvent |
53 |
47 |
54 |
48 |
55 void CSmspCommDbEvent::ConstructL() |
49 void CSmspCommDbEvent::ConstructL() |
56 { |
50 { |
57 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSPCOMMDBEVENT_CONSTRUCTL_1, "CSmspCommDbEvent::ConstructL()"); |
51 LOGSMSPROT1("CSmspCommDbEvent::ConstructL()"); |
58 |
52 |
59 ConstructTimeoutL(); |
53 ConstructTimeoutL(); |
60 } // CSmspCommDbEvent::ConstructL |
54 } // CSmspCommDbEvent::ConstructL |
61 |
55 |
62 |
56 |
64 * Starts the state machine by requesting the property to notify us when |
58 * Starts the state machine by requesting the property to notify us when |
65 * the CommDB change event is fired. |
59 * the CommDB change event is fired. |
66 */ |
60 */ |
67 void CSmspCommDbEvent::NotifyOnEvent() |
61 void CSmspCommDbEvent::NotifyOnEvent() |
68 { |
62 { |
69 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSPCOMMDBEVENT_NOTIFYONEVENT_1, "CSmspCommDbEvent::NotifyOnEvent()"); |
63 LOGSMSPROT1("CSmspCommDbEvent::NotifyOnEvent()"); |
70 |
64 |
71 iProperty.Subscribe(iStatus); |
65 iProperty.Subscribe(iStatus); |
72 SetActive(); |
66 SetActive(); |
73 } // CSmspCommDbEvent::NotifyOnEvent |
67 } // CSmspCommDbEvent::NotifyOnEvent |
74 |
68 |
78 * |
72 * |
79 * @param aStatus a status value. |
73 * @param aStatus a status value. |
80 */ |
74 */ |
81 void CSmspCommDbEvent::Complete(TInt aError) |
75 void CSmspCommDbEvent::Complete(TInt aError) |
82 { |
76 { |
83 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSPCOMMDBEVENT_COMPLETE_1, "CSmspCommDbEvent::Complete()"); |
77 LOGSMSPROT1("CSmspCommDbEvent::Complete()"); |
84 |
78 |
85 // |
79 // |
86 // Call the base function to perform the actual complete... |
80 // Call the base function to perform the actual complete... |
87 // |
81 // |
88 CSmsuActiveBase::Complete(aError); |
82 CSmsuActiveBase::Complete(aError); |