|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
19 #ifndef __MCSDRMOBSERVERMANAGER_H_ |
|
20 #define __MCSDRMOBSERVERMANAGER_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "mcsdrmobserver.h" |
|
24 |
|
25 |
|
26 class CMcsDrmObserver; |
|
27 class CMenuSrvEngUtils; |
|
28 |
|
29 |
|
30 class RMcsDrmObserverManager |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Default constructor. |
|
36 */ |
|
37 RMcsDrmObserverManager( CMenuSrvEngUtils& aUtils ); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~RMcsDrmObserverManager(); |
|
43 |
|
44 |
|
45 void RemoveMissingObservers( |
|
46 const RArray<TUid>& aDrmProtectedArray ); |
|
47 |
|
48 void CreateObserversL( |
|
49 const RArray<TUid>& aDrmArray, |
|
50 TDRMEventType aMask, |
|
51 MMcsDrmObserver& aObserver ); |
|
52 |
|
53 void CreateObserversL( |
|
54 const RArray<TUid>& aDrmProtectedArray, |
|
55 MMcsDrmObserver& aObserver ); |
|
56 |
|
57 void RefreshObserverL( |
|
58 const RArray<TUid>& aDrmProtectedArray, |
|
59 TUid aUid, |
|
60 MMcsDrmObserver& aObserver ); |
|
61 |
|
62 /** |
|
63 */ |
|
64 void AddL( CMcsDrmObserver* aObserver ); |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 void Remove( CMcsDrmObserver* aObserver ); |
|
70 |
|
71 /** |
|
72 */ |
|
73 void Close(); |
|
74 |
|
75 TInt FindUid( TUid aUid ); |
|
76 |
|
77 private: |
|
78 RPointerArray< CMcsDrmObserver > iObservers; |
|
79 |
|
80 CMenuSrvEngUtils& iUtils; |
|
81 }; |
|
82 |
|
83 #endif /*__MCSDRMOBSERVERMANAGER_H_*/ |