videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcontent/stub/src/filterproxytester.cpp
changeset 62 0e1e938beb1a
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
       
     1 
       
     2 /**
       
     3 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:  Helper class to test protected members from the proxy model 
       
    16 * 
       
    17 */
       
    18 
       
    19 // INCLUDES
       
    20 
       
    21 #include "filterproxytester.h"
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // FilterProxyTester
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 FilterProxyTester::FilterProxyTester(QObject *parent) :
       
    28 VideoProxyModelContent(parent)
       
    29 {
       
    30     // NOP
       
    31 }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // ~FilterProxyTester
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 FilterProxyTester::~FilterProxyTester()
       
    38 {
       
    39     
       
    40 }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // callLessThan
       
    44 // ---------------------------------------------------------------------------
       
    45 //   
       
    46 bool FilterProxyTester::callLessThan( const QModelIndex & left, const QModelIndex & right ) const
       
    47 {
       
    48     return VideoProxyModelContent::lessThan(left, right);
       
    49 }
       
    50 
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // callLessThan
       
    54 // ---------------------------------------------------------------------------
       
    55 //   
       
    56 bool FilterProxyTester::callFilterAcceptsRow( int source_row, const QModelIndex & source_parent ) const
       
    57 {
       
    58     return VideoProxyModelContent::filterAcceptsRow(source_row, source_parent);
       
    59 }
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // callConnectSignals
       
    63 // ---------------------------------------------------------------------------
       
    64 //   
       
    65 bool FilterProxyTester::callConnectSignals()
       
    66 {
       
    67     return connectSignals();
       
    68 }
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // callDisconnectSignals
       
    72 // ---------------------------------------------------------------------------
       
    73 //   
       
    74 void FilterProxyTester::callDisconnectSignals()
       
    75 {
       
    76     disconnectSignals();
       
    77 }
       
    78 
       
    79 // End of file