|
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 |
|
18 // animgeneralfunctions_stub.h |
|
19 |
|
20 #ifndef ANIMGENERALFUNCTIONS_STUB_H |
|
21 #define ANIMGENERALFUNCTIONS_STUB_H |
|
22 |
|
23 #include <w32adll.h> |
|
24 |
|
25 class CAnimGeneralFunctionsStub : |
|
26 public CBase, |
|
27 public MAnimGeneralFunctions, |
|
28 public MAnimGeneralFunctionsWindowExtension |
|
29 { |
|
30 public: |
|
31 static CAnimGeneralFunctionsStub* NewL(); |
|
32 ~CAnimGeneralFunctionsStub(); |
|
33 |
|
34 private: |
|
35 CAnimGeneralFunctionsStub(); |
|
36 |
|
37 public: // from MAnimGeneralFunctions |
|
38 void Animate(TDateTime *aDateTime); |
|
39 void SetSync(TAnimSync aSyncMode); |
|
40 void SetInterval(TInt aInterval); |
|
41 void SetNextInterval(TInt aInterval); |
|
42 TDateTime SystemTime() const; |
|
43 TBool FlashStateOn() const; |
|
44 TAnimSync Sync() const; |
|
45 const CFbsScreenDevice *ScreenDevice(); |
|
46 CFbsBitmap *DuplicateBitmapL(TInt aHandle); |
|
47 CFbsFont *DuplicateFontL(TInt aHandle); |
|
48 void CloseFont(CFbsFont *); |
|
49 const RThread &Client(); |
|
50 void ReplyBuf(const TDesC8 &aDes); |
|
51 void ReplyBuf(const TDesC16 &aDes); |
|
52 void Panic() const; |
|
53 void GetRawEvents(TBool aGetEvents) const; |
|
54 void PostRawEvent(const TRawEvent &aRawEvent) const; |
|
55 void PostKeyEvent(const TKeyEvent &aRawEvent) const; |
|
56 const RMessagePtr2* Message(); |
|
57 TAny* ExtendedInterface(TInt aInterface); |
|
58 TInt RegisterForNotifications(TUint32 aNotifications); |
|
59 |
|
60 public: // from MAnimGeneralFunctionsWindowExtension |
|
61 TInt Screens() const; |
|
62 TInt FocusScreens() const; |
|
63 void SetFocusScreen(TInt aScreenNo); |
|
64 TInt WindowGroups(TInt aScreen) const; |
|
65 TBool WindowGroupInfo(TWindowGroupInfo& aInfo,TInt aScreen,TInt aFullOrdinalPosition) const; |
|
66 TBool WindowGroupName(TPtrC& aWindowName,TInt aScreen,TInt aFullOrdinalPosition) const; |
|
67 TInt SetOrdinalPosition(TInt aWindowGroupId,TInt aPos,TInt aOrdinalPriority); |
|
68 void WindowConfig(TWindowConfig& aWindowConfig) const; |
|
69 |
|
70 public: // Data |
|
71 RThread iThread; |
|
72 mutable TBool iGetEvents; |
|
73 mutable TRawEvent iPostedRawEvent; |
|
74 mutable TKeyEvent iPostedKeyEvent; |
|
75 TWindowGroupInfo iWgInfo; |
|
76 HBufC* iWindowName; |
|
77 struct { TInt iWindowGroupId; TInt iPos; TInt iOrdinalPriority; } iSetOrdinalPosition; |
|
78 }; |
|
79 |
|
80 #endif // ANIMGENERALFUNCTIONS_STUB_H |
|
81 |