videocollection/tsrc/stubs/inc/videosortfilterproxymodeldata.h
author hgs
Fri, 16 Apr 2010 18:13:14 +0300
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 50 21fe8338c6bf
permissions -rw-r--r--
201015

/*
* 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>
#include <qstring.h>

class VideoSortFilterProxyModelData
{
public: // methods
    static void reset()
    {
        mOpenFails = false;
        mSortRole = -1;
        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(); 
        mLastAlbumNameInRename = "";
        mRenameAlbumReturnValue= 0;
        mLastAddedAlbumName = "";
    }
    
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;
    static QString mLastAlbumNameInRename;
    static int mRenameAlbumReturnValue;
    static QString mLastAddedAlbumName;
};

#endif /* VIDEOSORTFILTERPROXYMODEL_H */