videocollection/tsrc/stubs/inc/videosortfilterproxymodeldata.h
author hgs
Thu, 01 Apr 2010 23:32:44 +0300
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
permissions -rw-r--r--
201011

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: stub videosortfilterproxymodeldata
* 
*/

#ifndef VIDEOSORTFILTERPROXYMODELDATA_H
#define VIDEOSORTFILTERPROXYMODELDATA_H

#include <qnamespace.h>

class VideoSortFilterProxyModelData
{
public: // methods
    static void reset()
    {
        mOpenFails = false;
        mSortRole = 0;
        mSortOrder = Qt::AscendingOrder;
        mSortAsync = false;
        mDeleteItemsFails = true;
        mRemoveAlbumsFails = true;
        mDoSortingCallCount = 0;
        mItemIds.clear();
        mLastIndex = QModelIndex();
        mLastItemId = TMPXItemId::InvalidId();
        mOpenedItemId = TMPXItemId::InvalidId();
        mDetailsReturnValue = 0;
        mAddItemsInAlbumReturnValue = 0;
        mRemoveItemsFromAlbumReturnValue = 0;
        mGenericFilterId = TMPXItemId::InvalidId();
        mGenericFilterValue = false;
        mNewAlbumId = TMPXItemId::InvalidId(); 
    }
    
public: // data
    static bool mOpenFails;
    static int mSortRole;
    static Qt::SortOrder mSortOrder;
    static bool mSortAsync;
    static bool mDeleteItemsFails;
    static bool mRemoveAlbumsFails;
    static int mDoSortingCallCount;
    static QList<TMPXItemId> mItemIds;
    static QModelIndex mLastIndex;
    static TMPXItemId mLastItemId;
    static TMPXItemId mOpenedItemId;
    static int mDetailsReturnValue;
    static int mAddItemsInAlbumReturnValue;
    static int mRemoveItemsFromAlbumReturnValue; 
    static TMPXItemId mGenericFilterId;
    static bool mGenericFilterValue; 
    static TMPXItemId mNewAlbumId;
};

#endif /* VIDEOSORTFILTERPROXYMODEL_H */