EngInc/IESensorDataFilter.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     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: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IESENSORDATAFILTER_H
       
    19 #define IESENSORDATAFILTER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  *  CIESensorDataFilter
       
    29  * 
       
    30  */
       
    31 const TInt KDataBufferSize = 16; 
       
    32 
       
    33 class CIESensorDataFilter : public CBase
       
    34     {
       
    35 public:
       
    36     // Constructors and destructor
       
    37 
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~CIESensorDataFilter();
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CIESensorDataFilter* NewL();
       
    47 
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      */
       
    51     static CIESensorDataFilter* NewLC();
       
    52 
       
    53 private:
       
    54 
       
    55     /**
       
    56      * Constructor for performing 1st stage construction
       
    57      */
       
    58     CIESensorDataFilter();
       
    59 
       
    60     /**
       
    61      * EPOC default constructor for performing 2nd stage construction
       
    62      */
       
    63     void ConstructL();
       
    64  
       
    65 public:
       
    66 
       
    67     TInt FilterSensorData(TInt aNewValue);
       
    68 
       
    69 private:
       
    70     
       
    71     TInt* iRingBuffer;
       
    72     TInt* iRingBufferPointer;
       
    73     
       
    74     };
       
    75 
       
    76 #endif // IESENSORDATAFILTER_H