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 "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 #include "mdsactivescheduler.h" |
|
19 #include "harvesterlog.h" |
|
20 |
|
21 EXPORT_C void CMdsActiveScheduler::WaitForAnyRequest() |
|
22 { |
|
23 if(iAllowedAOStatus != NULL) |
|
24 { |
|
25 User::WaitForRequest(*iAllowedAOStatus); |
|
26 } |
|
27 else |
|
28 { |
|
29 CActiveScheduler::WaitForAnyRequest(); |
|
30 } |
|
31 } |
|
32 |
|
33 EXPORT_C void CMdsActiveScheduler::SetAllowedAOStatus(TRequestStatus& aStatus) |
|
34 { |
|
35 WRITELOG("CMdsActiveScheduler::SetBackupSubscribeStatus()"); |
|
36 iAllowedAOStatus = &aStatus; |
|
37 } |
|
38 |
|
39 EXPORT_C void CMdsActiveScheduler::RemoveAllowedAOStatus() |
|
40 { |
|
41 WRITELOG("CMdsActiveScheduler::RemoveBackupSubscribeStatus()"); |
|
42 iAllowedAOStatus = NULL; |
|
43 } |
|
44 |
|
45 EXPORT_C void CMdsActiveScheduler::Error(TInt aError) const |
|
46 { |
|
47 _LIT( KPanicNote, "CMdsActiveScheduler"); |
|
48 if ( aError != KErrNone ) |
|
49 { |
|
50 User::Panic( KPanicNote, aError ); |
|
51 } |
|
52 } |
|
53 |