0
|
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.cpp
|
|
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 |
// User Includes
|
|
30 |
#include "clientcommander.h"
|
|
31 |
|
|
32 |
// ======== MEMBER FUNCTIONS ========
|
|
33 |
// -------------------------------------------------------
|
|
34 |
// RClientCommander::RClientCommander
|
|
35 |
// -------------------------------------------------------
|
|
36 |
//
|
|
37 |
EXPORT_C RClientCommander::RClientCommander( RAnimDll &aAnimDll ) :
|
|
38 |
RAnim( aAnimDll )
|
|
39 |
{// No implementation required
|
|
40 |
}
|
|
41 |
|
|
42 |
// -------------------------------------------------------
|
|
43 |
// RClientCommander::AnimConstruct
|
|
44 |
// -------------------------------------------------------
|
|
45 |
//
|
|
46 |
EXPORT_C void RClientCommander::AnimConstruct( const RWindowBase& aDevice,
|
|
47 |
TInt aType, const TDesC8& aParams )
|
|
48 |
{
|
|
49 |
RAnim::Construct( aDevice, aType, aParams );
|
|
50 |
}
|
|
51 |
|
|
52 |
// -------------------------------------------------------
|
|
53 |
// Communication to the server side
|
|
54 |
// -------------------------------------------------------
|
|
55 |
//
|
|
56 |
EXPORT_C TInt RClientCommander::AnimCommand( TInt aCommand, const TPtrC8* aArgs )
|
|
57 |
{
|
|
58 |
TInt res;
|
|
59 |
// Start and Poll needs to send data to server side. Others don't.
|
|
60 |
if(aCommand==RClientCommander::EStart || aCommand==RClientCommander::EPoll)
|
|
61 |
res=RAnim::CommandReply( aCommand, *aArgs);
|
|
62 |
else
|
|
63 |
res=RAnim::CommandReply( aCommand);
|
|
64 |
|
|
65 |
return res;
|
|
66 |
}
|
|
67 |
|
|
68 |
// End of File
|