|
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 "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 #ifndef AKNWSSERVICECRP_H |
|
18 #define AKNWSSERVICECRP_H |
|
19 |
|
20 #include<w32std.h> |
|
21 #include<graphics/wsgraphicdrawerinterface.h> |
|
22 #include<graphics/wsgraphicdrawer.h> |
|
23 |
|
24 |
|
25 NONSHARABLE_CLASS(CAknWsServiceCRP) : public CWsGraphicDrawer, public MWsGraphicHandleSynchronMessage |
|
26 { |
|
27 public: |
|
28 static CWsGraphicDrawer* CreateL(); |
|
29 ~CAknWsServiceCRP(); |
|
30 CAknWsServiceCRP* iNext; //public access! |
|
31 //void SendHandle(); |
|
32 void AddDsaGrp(TInt aId); |
|
33 void SetDsaActive( TBool aIsActive ); |
|
34 private: |
|
35 TAny* ResolveObjectInterface(TUint aTypeId); |
|
36 TInt HandleSynchronMessage(const TDesC8& aData); |
|
37 void DoDraw(MWsGc& aGc, const TRect& aRect, const TDesC8& aData) const; |
|
38 void HandleMessage(const TDesC8& aData); |
|
39 void ConstructL(MWsGraphicDrawerEnvironment& aEnv, const TGraphicDrawerId& aId, MWsClient& aOwner, const TDesC8& aData); |
|
40 private: |
|
41 void ConstructL(); |
|
42 void DoHandleMessageL(const TDesC8& aDes); |
|
43 //void Snapshot(); |
|
44 |
|
45 TBool IsDsaApp(TInt aId); |
|
46 |
|
47 void RemoveDsaApp(TInt aId); |
|
48 |
|
49 private: |
|
50 RArray<TInt> iDsaGrpList; |
|
51 TBool iIsDsaActive; |
|
52 }; |
|
53 |
|
54 #endif |