|
1 /* |
|
2 * Copyright (c) 2006 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: Class for asyncron API call NotifyIccAccessCapsChange. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef APCONTROLLISTCAPSCHANGE_H |
|
19 #define APCONTROLLISTCAPSCHANGE_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CAPControlListPlugin; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Wrapper class for asyncron syncron API call NotifyIccAccessCapsChange. |
|
30 */ |
|
31 class CAPControlListCapsChange : public CActive |
|
32 { |
|
33 public: |
|
34 // Constructor and destructor |
|
35 |
|
36 /** |
|
37 * Constructor. |
|
38 * @param aPlugin reference to the view |
|
39 * @param aPriority priority for CActive |
|
40 */ |
|
41 CAPControlListCapsChange(CAPControlListPlugin& aPlugin, |
|
42 TInt aPriority = EPriorityStandard ); |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CAPControlListCapsChange(); |
|
47 |
|
48 // New functions |
|
49 /** |
|
50 * Makes asyncron API call RMobilePhone::NotifyIccAccessCapsChange |
|
51 */ |
|
52 void NotifyCapsChange(); |
|
53 |
|
54 |
|
55 // Functions from CActive |
|
56 /** |
|
57 * Called by Cancel() |
|
58 */ |
|
59 void DoCancel(); |
|
60 /** |
|
61 * Handles asynchronous function completion |
|
62 */ |
|
63 void RunL(); |
|
64 |
|
65 private: |
|
66 //@var reference to the view |
|
67 CAPControlListPlugin& iPlugin; |
|
68 |
|
69 //@var Caps set by NotifyIccAccessCapsChange |
|
70 TUint32 iCaps; |
|
71 } ; |
|
72 |
|
73 #endif |
|
74 |
|
75 // End of file |