|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef _GFXTRANSCLIENT_H_ |
|
17 #define _GFXTRANSCLIENT_H_ |
|
18 |
|
19 #include <gfxtranseffect/gfxtransdatatype.h> |
|
20 |
|
21 /** |
|
22 this interface is given to the transition engine on contruction. |
|
23 It is then to be used to retrieve information about transitions the client has gathered. |
|
24 It is also used to signal the client. |
|
25 |
|
26 @publishedPartner |
|
27 */ |
|
28 class MGfxTransClient |
|
29 { |
|
30 public: |
|
31 /** |
|
32 Callback called by adapter when a new policy arrives. |
|
33 @param aPolicy the newly arrived policy. The client takes ownership of the pointer passed. |
|
34 */ |
|
35 virtual void TransitionPolicyUpdate(TControlPolicy* aPolicy) = 0; |
|
36 |
|
37 /** |
|
38 resets policies all to its default, ENotSupported. |
|
39 */ |
|
40 virtual void ClearAllPolicies() = 0; |
|
41 |
|
42 /** |
|
43 Callback, called by adapter when a transition has stopped animating. |
|
44 @param aHandle handle for the transition that finished. |
|
45 */ |
|
46 virtual void TransitionFinished(TInt aHandle) = 0; |
|
47 |
|
48 /** |
|
49 Used by adapter to get transition data from the client. |
|
50 @param aHandle handle for the transition to get the data for. |
|
51 @param aTransData on return contains a pointer to the transition data. Does not transfer ownership. |
|
52 */ |
|
53 virtual TInt GetTransitionData(TInt aHandle, const CTransitionData*& aTransData) = 0; |
|
54 }; |
|
55 |
|
56 #endif |