|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : clientimagecommander.cpp 00004 * Part of : Animation example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 // INCLUDE FILES 00017 #include "clientimagecommander.h" 00018 00019 // ============================ MEMBER FUNCTIONS =============================== 00020 00021 // ----------------------------------------------------------------------------- 00022 // RImageCommander::RImageCommander() 00023 // Create a new animation object. 00024 // ----------------------------------------------------------------------------- 00025 // 00026 EXPORT_C RImageCommander::RImageCommander( RAnimDll &aAnimDll ) : 00027 RAnim( aAnimDll ) 00028 { 00029 // No implementation required 00030 } 00031 00032 // ----------------------------------------------------------------------------- 00033 // RImageCommander::ImageConstruct() 00034 // Construct a new animation object. 00035 // ----------------------------------------------------------------------------- 00036 // 00037 EXPORT_C void RImageCommander::ImageConstruct( const RWindowBase& aDevice, 00038 TInt aType, const TDesC8& aParams ) 00039 { 00040 // Send the parameters to the animation server object construction 00041 RAnim::Construct( aDevice, aType, aParams ); 00042 } 00043 00044 // ----------------------------------------------------------------------------- 00045 // RImageCommander::ImageCommand() 00046 // Send a command (aCommand) to the animation server object. 00047 // Because there is no way to return an error from the server side using this 00048 // method, it is important that any server side code for these commands should 00049 // not be able to fail or leave. If the operation can fail, then the method 00050 // TInt CommandReply(TInt aOpcode) should be used instead 00051 // ----------------------------------------------------------------------------- 00052 // 00053 EXPORT_C void RImageCommander::ImageCommand( TInt aCommand ) 00054 { 00055 // Could optionally decode the commands here 00056 RAnim::Command( aCommand ); 00057 } 00058 00059 // End of File
|
© Nokia 2009 |