Nokia N97 SDK
Example Applications Guide

serverdll.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : serverdll.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 "serverdll.h"
00018 #include "serverimage.h"
00019 
00020 // ============================ MEMBER FUNCTIONS ===============================
00021 
00022 // -----------------------------------------------------------------------------
00023 // CServerDll::CServerDll()
00024 // C++ default constructor can NOT contain any code, that might leave.
00025 // -----------------------------------------------------------------------------
00026 //
00027 CServerDll::CServerDll()
00028     : CAnimDll()
00029     {
00030     // No implementation required
00031     }
00032 
00033 // -----------------------------------------------------------------------------
00034 // CServerDll::CreateInstanceL()
00035 // Used to create an instance of animation server object.
00036 // -----------------------------------------------------------------------------
00037 //
00038 CAnim* CServerDll::CreateInstanceL( TInt /* aType */ )
00039     {
00040     // The aType variable can be used to set what type of animation object
00041     // should be created but this example only has 1 type so it is ignored.
00042     return ( new ( ELeave ) CImage );
00043     }
00044 
00045 // ========================== OTHER EXPORTED FUNCTIONS =========================
00046 
00047 // -----------------------------------------------------------------------------
00048 // CreateCAnimDllL()
00049 // Create instance of the animation server dll. Called by windows server
00050 // framework
00051 // -----------------------------------------------------------------------------
00052 //
00053 EXPORT_C CAnimDll* CreateCAnimDllL()
00054     {
00055     return ( new ( ELeave ) CServerDll );
00056     }
00057 
00058 // End of File

© Nokia 2009

Back to top