phoneapp/blacklist/src/cphoneanimdll.cpp
changeset 50 377c906a8701
parent 37 ba76fc04e6c2
equal deleted inserted replaced
46:bc5a64e5bc3c 50:377c906a8701
       
     1 /*
       
     2 * Copyright (c) 2002-2003 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:  It provides implementation for the CPhoneAnimDll class. Only
       
    15 *                one animation service is provided, CPhoneBlacklistAnim, to
       
    16 *                clear blacklist upon next keypress.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include    "phoneanimdllstd.h"         
       
    24 #include    "cphoneanimdll.h"
       
    25 #include    "cphoneblacklistanim.h"
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // CPhoneAnimDll::CreateInstanceL
       
    31 // 
       
    32 // Create blacklist clearing plug-in. Only one type provided.
       
    33 // ---------------------------------------------------------
       
    34 //
       
    35 CAnim* CPhoneAnimDll::CreateInstanceL( TInt aType )
       
    36     {
       
    37     switch ( aType )
       
    38         {
       
    39         case EAnimClearBlackList:
       
    40             return new ( ELeave ) CPhoneBlacklistAnim();
       
    41         default:
       
    42             return NULL;
       
    43         }
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------
       
    47 // CAnimDll::CreateCAnimDllL
       
    48 // 
       
    49 // Create plug-in. Factory function.
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 EXPORT_C CAnimDll* CreateCAnimDllL()
       
    53     {
       
    54     return new ( ELeave ) CPhoneAnimDll();
       
    55     }
       
    56 
       
    57 // End of File