|
1 /* |
|
2 * Copyright (c) 2006 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: Transformation sub session. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_ALFSRVTRANSFORMATIONSUBSESSION_H |
|
21 #define C_ALFSRVTRANSFORMATIONSUBSESSION_H |
|
22 |
|
23 #include "alfsrvsubsessionbase.h" |
|
24 |
|
25 class CAlfAppSrvSessionBase; |
|
26 class CHuiTransformation; |
|
27 |
|
28 /** |
|
29 * Transformation sub session. |
|
30 * |
|
31 * @lib alfappservercore.lib |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAlfSrvTransformationSubSession): public CAlfSrvSubSessionBase |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor |
|
41 * |
|
42 * @param aSession Session in which this sub session belongs into. |
|
43 * @return New object. Ownership transferred. |
|
44 */ |
|
45 static CAlfSrvTransformationSubSession* NewL( CAlfAppSrvSessionBase& aSession ); |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. Leaves the objenct onto the cleanup stack. |
|
49 * |
|
50 * @param aSession Session in which this sub session belongs into. |
|
51 * @return New object on stack. Ownership transferred. |
|
52 */ |
|
53 static CAlfSrvTransformationSubSession* NewLC( CAlfAppSrvSessionBase& aSession ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CAlfSrvTransformationSubSession(); |
|
59 |
|
60 /** |
|
61 * Returns the used transformation. |
|
62 * |
|
63 * @return Used transformation. |
|
64 */ |
|
65 CHuiTransformation& Transformation(); |
|
66 |
|
67 /** |
|
68 * Sets the used transformation. |
|
69 * |
|
70 * @param aTransformation Used transformation. |
|
71 */ |
|
72 void SetTransformation( CHuiTransformation* aTransformation ); |
|
73 |
|
74 /** |
|
75 * From CAlfSrvSubSessionBase |
|
76 * Processes the message. |
|
77 * |
|
78 * @param aMessage The message. |
|
79 */ |
|
80 void DoProcessMessageL(const RMessage2& aMessage); |
|
81 |
|
82 private: |
|
83 |
|
84 CAlfSrvTransformationSubSession( CAlfAppSrvSessionBase& aSession ); |
|
85 |
|
86 void ConstructL(); |
|
87 |
|
88 void LoadIdentityL(const RMessage2& aMessage); |
|
89 void TranslateL(const RMessage2& aMessage); |
|
90 void RotateL(const RMessage2& aMessage); |
|
91 void CountL(const RMessage2& aMessage); |
|
92 void NonIdentityCountL(const RMessage2& aMessage); |
|
93 void StepL(const RMessage2& aMessage); |
|
94 void ReplaceStepL(const RMessage2& aMessage); |
|
95 void Rotate3DL(const RMessage2& aMessage); |
|
96 void Scale3DL(const RMessage2& aMessage); |
|
97 void Translate2DL(const RMessage2& aMessage); |
|
98 |
|
99 private: // data |
|
100 |
|
101 CHuiTransformation* iTransformation; |
|
102 }; |
|
103 |
|
104 #endif // C_ALFSRVTRANSFORMATIONSUBSESSION_H |