|
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 the License "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 * Name : cpspublisher.h |
|
20 * Part of : WEBKIT / Browser View |
|
21 * Interface : Implemetation of CCpsPublisher |
|
22 * Description : |
|
23 * Version : |
|
24 |
|
25 */ |
|
26 |
|
27 #ifndef CPSPUBLISHER_H |
|
28 #define CPSPUBLISHER_H |
|
29 |
|
30 #include <e32base.h> |
|
31 #include <liwcommon.h> |
|
32 |
|
33 class CFbsBitmap; |
|
34 class CLiwGenericParamList; |
|
35 class CLiwServiceHandler; |
|
36 class MLiwInterface; |
|
37 class CLiwDefaultMap; |
|
38 |
|
39 |
|
40 class CCpsPublisher : public CBase, |
|
41 private MLiwNotifyCallback |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CCpsPublisher* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CCpsPublisher(); |
|
53 |
|
54 private: |
|
55 CCpsPublisher(); |
|
56 void ConstructL(); |
|
57 private: |
|
58 // Form base class MLiwNotifyCallback. |
|
59 /** |
|
60 * Callback from LIW framework to process an event that was expected. |
|
61 * @see MLiwNotifyCallback::HandleNotifyL |
|
62 */ |
|
63 TInt HandleNotifyL( |
|
64 TInt aCmdId, |
|
65 TInt aEventId, |
|
66 CLiwGenericParamList& aEventParamList, |
|
67 const CLiwGenericParamList& aInParamList); |
|
68 |
|
69 public: |
|
70 TSize BitmapSize(); |
|
71 void PublishBitmapL( CFbsBitmap& aBitmap, const TDesC& aBundleName ); |
|
72 |
|
73 private: |
|
74 void GetBitmapSizeL(); |
|
75 void InitCpsInterfaceL(); |
|
76 |
|
77 void AddImageHandleL( const TDesC& aPublisherId, const TDesC& aContentType, |
|
78 const TDesC& aContentId, const TInt& aHandle, const TInt& aMaskHandle, |
|
79 const TDesC8& aImageKey ); |
|
80 void ExecuteCommandL(CLiwDefaultMap* aInFilter, CLiwDefaultMap* aOutDataMap, |
|
81 const TDesC16& aRegistry ); |
|
82 void ExecuteRegistrationCommandL( TUint aOption ); |
|
83 private: |
|
84 |
|
85 CFbsBitmap* iMaskBitmap; |
|
86 MLiwInterface* iCpsInterface; |
|
87 CLiwServiceHandler* iServiceHandler; |
|
88 TSize iSize; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif |