equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 #define C_WMDRMDLABROWSERCONTAINER_H |
20 #define C_WMDRMDLABROWSERCONTAINER_H |
21 |
21 |
22 #include <coecntrl.h> |
22 #include <coecntrl.h> |
23 |
23 |
24 class CAknView; |
24 class CAknView; |
|
25 class MBrCtlSpecialLoadObserver; |
|
26 class CBrCtlInterface; |
25 |
27 |
26 class CWmDrmDlaBrowserContainer : public CCoeControl |
28 class CWmDrmDlaBrowserContainer : public CCoeControl |
27 { |
29 { |
28 |
30 |
29 public: |
31 public: |
30 |
32 |
|
33 static CWmDrmDlaBrowserContainer* NewL( CAknView* aView, |
|
34 MBrCtlSpecialLoadObserver* aObserver ); |
|
35 static CWmDrmDlaBrowserContainer* NewLC( CAknView* aView, |
|
36 MBrCtlSpecialLoadObserver* aObserver ); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 virtual ~CWmDrmDlaBrowserContainer(); |
|
42 |
|
43 /** |
|
44 * Returns pointer to the CBrCtlInterface owned by the container. |
|
45 * @return A pointer to CBrCtlInterface |
|
46 */ |
|
47 CBrCtlInterface* BrCtlInterface(); |
|
48 |
|
49 |
31 public: // From CCoeControl |
50 public: // From CCoeControl |
32 |
51 |
33 /** |
52 /** |
34 * @see CCoeControl |
53 * @see CCoeControl |
35 */ |
54 */ |
|
55 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
56 |
|
57 /** |
|
58 * @see CCoeControl |
|
59 */ |
|
60 TInt CountComponentControls() const; |
|
61 |
|
62 /** |
|
63 * @see CCoeControl |
|
64 */ |
36 CCoeControl* ComponentControl( TInt aIndex ) const; |
65 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
66 |
|
67 /** |
|
68 * @see CCoeControl |
|
69 */ |
|
70 void SizeChanged(); |
37 |
71 |
38 /** |
72 /** |
39 * @see CCoeControl |
73 * @see CCoeControl |
40 */ |
74 */ |
41 void FocusChanged( TDrawNow aDrawNow ); |
75 void FocusChanged( TDrawNow aDrawNow ); |
46 void HandleResourceChange( TInt aType ); |
80 void HandleResourceChange( TInt aType ); |
47 |
81 |
48 private: |
82 private: |
49 |
83 |
50 CWmDrmDlaBrowserContainer( CAknView* aView ); |
84 CWmDrmDlaBrowserContainer( CAknView* aView ); |
|
85 void ConstructL( MBrCtlSpecialLoadObserver* aObserver ); |
51 |
86 |
52 private: // data |
87 private: // data |
53 |
88 |
54 //Not owned |
89 //Not owned |
55 CAknView* iView; |
90 CAknView* iView; |
56 |
91 |
|
92 CBrCtlInterface* iBrCtlInterface; |
|
93 |
57 }; |
94 }; |
58 |
95 |
59 #endif // C_WMDRMDLABROWSERCONTAINER_H |
96 #endif // C_WMDRMDLABROWSERCONTAINER_H |