hwrmhaptics/hapticsserver/inc/hwrmhapticsserveractivescheduler.h
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:  Haptic server active scheduler definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CHWRMHAPTICSSERVERACTIVESCHEDULER_H
       
    20 #define CHWRMHAPTICSSERVERACTIVESCHEDULER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  * Overridden implementation for the active scheduler. The only 
       
    26  * difference in the implementation is the error handling in
       
    27  * Error(); Instead of the defaul implementation (panic), the 
       
    28  * method ignores the error, thus never panicing the server thread.
       
    29  */
       
    30 class CHWRMHapticsServerActiveScheduler : public CActiveScheduler
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Symbian two-phased constructor.
       
    36      */
       
    37     static CHWRMHapticsServerActiveScheduler* NewL();
       
    38 
       
    39     /**
       
    40      * Destructor.
       
    41      */
       
    42     virtual ~CHWRMHapticsServerActiveScheduler();
       
    43 
       
    44 protected:  // New functions
       
    45 
       
    46     /**
       
    47      * Empty error handling implementation.
       
    48      * 
       
    49      * @param anError Error code
       
    50      */
       
    51     void Error( TInt anError ) const;
       
    52 
       
    53 private:
       
    54 
       
    55     /**
       
    56      * C++ constructor.
       
    57      */
       
    58     CHWRMHapticsServerActiveScheduler();
       
    59     
       
    60     };
       
    61 
       
    62 #endif // CHWRMHAPTICSSERVERACTIVESCHEDULER_H   
       
    63             
       
    64 // End of File