|
1 /*------------------------------------------------------------------ |
|
2 - |
|
3 * Software Name : UserEmulator |
|
4 * Version : v4.2.1309 |
|
5 * |
|
6 * Copyright (c) 2009 France Telecom. All rights reserved. |
|
7 * This software is distributed under the License |
|
8 * "Eclipse Public License - v 1.0" the text of which is available |
|
9 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 * |
|
11 * Initial Contributors: |
|
12 * France Telecom |
|
13 * |
|
14 * Contributors: |
|
15 *------------------------------------------------------------------ |
|
16 - |
|
17 * File Name: clientcommander.h |
|
18 * |
|
19 * Created: 13/08/2009 |
|
20 * Author(s): Marcell Kiss |
|
21 * |
|
22 * Description: |
|
23 * Declares Anim dll client side commander class |
|
24 *------------------------------------------------------------------ |
|
25 - |
|
26 * |
|
27 */ |
|
28 |
|
29 #ifndef CLIENT_COMMANDER_H__ |
|
30 #define CLIENT_COMMANDER_H__ |
|
31 |
|
32 // System Includes |
|
33 #include <w32adll.h> |
|
34 |
|
35 // Class Declaration |
|
36 |
|
37 /** |
|
38 * Implements RAnim class. Communication with server side |
|
39 */ |
|
40 class RClientCommander : public RAnim |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Constructor |
|
45 * @param aAnimDll Reference to the AnimDll object |
|
46 */ |
|
47 IMPORT_C RClientCommander( RAnimDll& aAnimDll ); |
|
48 /** |
|
49 * Constructs the RAnim object |
|
50 * @param aDevice Reference to RWindowBase object |
|
51 * @param aType not used |
|
52 * @param aParams not used |
|
53 */ |
|
54 IMPORT_C void AnimConstruct( const RWindowBase& aDevice, TInt aType, |
|
55 const TDesC8& aParams ); |
|
56 /** |
|
57 * Sends command to server side |
|
58 * @param aCommand Command to send (see TAnimCommands) |
|
59 * @param aArgs Binary data to the server side |
|
60 */ |
|
61 IMPORT_C TInt AnimCommand( TInt aCommand, const TPtrC8* aArgs ); |
|
62 |
|
63 /** |
|
64 * Commands to the server |
|
65 */ |
|
66 enum TAnimCommands |
|
67 { |
|
68 EStart = 1, |
|
69 EStartTiming, |
|
70 EStop, |
|
71 EPoll, |
|
72 ETaskExisted |
|
73 }; |
|
74 }; |
|
75 #endif // CLIENT_COMMANDER_H__ |
|
76 |
|
77 // End of File |