phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneindicatorcontroller/logsfilter.h
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     1 /*!
       
     2 * Copyright (c) 2010 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 #ifndef LOGSFILTER_H_
       
    18 #define LOGSFILTER_H_
       
    19 
       
    20 #include <QObject>
       
    21 #include "logsmodel.h"
       
    22 
       
    23 class QModelIndex;
       
    24 
       
    25 
       
    26 /*!
       
    27  * Mock
       
    28  */
       
    29 
       
    30 class LogsFilter: public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     enum FilterType{
       
    35         Missed
       
    36     };
       
    37 
       
    38  
       
    39 
       
    40     LogsFilter(FilterType type);
       
    41     virtual ~LogsFilter();
       
    42      
       
    43     void setSourceModel( LogsModel *model );
       
    44     void setMaxSize(int maxSize);
       
    45      
       
    46     QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const;
       
    47     QModelIndex index(int row, int column) const;
       
    48     
       
    49 };
       
    50 
       
    51 #endif /* LOGSFILTER_H_ */