idlefw/tsrc/wsplugin/stub/wsanim_stub.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 // wsanim.h
       
    19 
       
    20 #ifndef _WSANIM_STUB_H
       
    21 #define _WSANIM_STUB_H
       
    22 
       
    23 #include <w32adll.h>
       
    24 
       
    25 class MAnimGeneralFunctions;
       
    26 
       
    27 /**
       
    28  * Stub of CWsAnim for CAiWsPluginAnim unit test.
       
    29  */
       
    30 class CWsAnim : public CBase
       
    31     {
       
    32 public:
       
    33     static void SetFunctions
       
    34             (CAnim& aAnim, MAnimGeneralFunctions* aFunctions)
       
    35         {
       
    36         // CWsAnim is friend of CAnim which enables setting its protected members
       
    37         aAnim.iFunctions = aFunctions;        
       
    38         }
       
    39         
       
    40 private:
       
    41     // Private constructor to prevent instantiation of this class
       
    42     CWsAnim() {}
       
    43     };
       
    44     
       
    45     
       
    46 #endif // _WSANIM_STUB_H