equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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 "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 <eikenv.h> |
|
19 #include <AknDlgShut.h> |
|
20 #include <aknglobalpopupprioritycontroller.h> |
|
21 |
|
22 #include "AknNotifierControllerUtilities.h" |
|
23 |
|
24 EXPORT_C void CAknNotifierControllerUtility::DoAllowNotifications() |
|
25 { |
|
26 AknGlobalPopupPriorityController::SetRootWinOrdinalPosition(iMyOrdinalPosition); |
|
27 AknGlobalPopupPriorityController::AllowGlobalPopups(ETrue); |
|
28 } |
|
29 |
|
30 EXPORT_C void CAknNotifierControllerUtility::DoStopNotifications() |
|
31 { |
|
32 AknGlobalPopupPriorityController::AllowGlobalPopups(EFalse); |
|
33 } |
|
34 |
|
35 EXPORT_C void CAknNotifierControllerUtility::DoCancelAllNotificatonsL() |
|
36 { |
|
37 AknDialogShutter::ShutDialogsL(*CEikonEnv::Static()); |
|
38 } |
|
39 |
|
40 void CAknNotifierControllerUtility::DoNotifierContollerCommandL(TNotifierControllerCommand aCommand) |
|
41 { |
|
42 switch (aCommand) |
|
43 { |
|
44 case EDoAllow: |
|
45 DoAllowNotifications(); |
|
46 break; |
|
47 case EDoStop: |
|
48 DoStopNotifications(); |
|
49 break; |
|
50 case DoCancelAll: |
|
51 DoCancelAllNotificatonsL(); |
|
52 break; |
|
53 default: |
|
54 User::Leave(KErrNotSupported); |
|
55 } |
|
56 } |
|
57 |
|
58 // End of file |