hwrmhaptics/hapticsclient/src/hwrmhaptics.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Implementation of haptics client.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32svr.h>
       
    20 #include <hwrmhaptics.h>
       
    21 #include "hwrmhapticsimpl.h"
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // Two-phase constructor.
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C CHWRMHaptics* CHWRMHaptics::NewL(
       
    28     MHWRMHapticsObserver* aHapticsCallback,
       
    29     MHWRMHapticsActuatorObserver* aActuatorCallback )
       
    30     {        
       
    31     CHWRMHapticsImpl* impl = new ( ELeave ) CHWRMHapticsImpl();
       
    32     
       
    33     CleanupStack::PushL( impl );
       
    34     
       
    35     impl->ConstructL( aHapticsCallback, aActuatorCallback );
       
    36     
       
    37     CleanupStack::Pop( impl );
       
    38 
       
    39     return impl;      
       
    40     }
       
    41     
       
    42 // ---------------------------------------------------------------------------
       
    43 // Two-phase asynchronous constructor.
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 EXPORT_C CHWRMHaptics* CHWRMHaptics::NewL( 
       
    47     MHWRMHapticsObserver* aHapticsCallback,
       
    48     MHWRMHapticsActuatorObserver* aActuatorCallback,
       
    49     TRequestStatus& aStatus )
       
    50     {
       
    51     CHWRMHapticsImpl* impl = new ( ELeave ) CHWRMHapticsImpl();
       
    52     
       
    53     CleanupStack::PushL( impl );
       
    54     
       
    55     impl->ConstructL( aHapticsCallback, aActuatorCallback, aStatus );
       
    56     
       
    57     CleanupStack::Pop( impl );
       
    58 
       
    59     return impl;
       
    60     }
       
    61 
       
    62 //  End of File