videocollection/tsrc/stubs/inc/videosortfilterproxymodeldata.h
branchRCL_3
changeset 56 839377eedc2b
equal deleted inserted replaced
54:315810614048 56:839377eedc2b
       
     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:
       
    13 *
       
    14 * Description: stub videosortfilterproxymodeldata
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef VIDEOSORTFILTERPROXYMODELDATA_H
       
    19 #define VIDEOSORTFILTERPROXYMODELDATA_H
       
    20 
       
    21 #include <qnamespace.h>
       
    22 #include <qstring.h>
       
    23 
       
    24 class VideoSortFilterProxyModelData
       
    25 {
       
    26 public: // methods
       
    27     static void reset()
       
    28     {
       
    29         mOpenFails = false;
       
    30         mSortRole = -1;
       
    31         mSortOrder = Qt::AscendingOrder;
       
    32         mSortAsync = false;
       
    33         mDeleteItemsFails = true;
       
    34         mRemoveAlbumsFails = true;
       
    35         mDoSortingCallCount = 0;
       
    36         mItemIds.clear();
       
    37         mLastIndex = QModelIndex();
       
    38         mLastItemId = TMPXItemId::InvalidId();
       
    39         mOpenedItemId = TMPXItemId::InvalidId();
       
    40         mDetailsReturnValue = 0;
       
    41         mAddItemsInAlbumReturnValue = 0;
       
    42         mRemoveItemsFromAlbumReturnValue = 0;
       
    43         mGenericFilterId = TMPXItemId::InvalidId();
       
    44         mGenericFilterValue = false;
       
    45         mNewAlbumId = TMPXItemId::InvalidId(); 
       
    46         mLastItemNameInRename = "";
       
    47         mRenameItemReturnValue= 0;
       
    48         mLastAddedAlbumName = "";
       
    49     }
       
    50     
       
    51 public: // data
       
    52     static bool mOpenFails;
       
    53     static int mSortRole;
       
    54     static Qt::SortOrder mSortOrder;
       
    55     static bool mSortAsync;
       
    56     static bool mDeleteItemsFails;
       
    57     static bool mRemoveAlbumsFails;
       
    58     static int mDoSortingCallCount;
       
    59     static QList<TMPXItemId> mItemIds;
       
    60     static QModelIndex mLastIndex;
       
    61     static TMPXItemId mLastItemId;
       
    62     static TMPXItemId mOpenedItemId;
       
    63     static int mDetailsReturnValue;
       
    64     static int mAddItemsInAlbumReturnValue;
       
    65     static int mRemoveItemsFromAlbumReturnValue; 
       
    66     static TMPXItemId mGenericFilterId;
       
    67     static bool mGenericFilterValue; 
       
    68     static TMPXItemId mNewAlbumId;
       
    69     static QString mLastItemNameInRename;
       
    70     static int mRenameItemReturnValue;
       
    71     static QString mLastAddedAlbumName;
       
    72 };
       
    73 
       
    74 #endif /* VIDEOSORTFILTERPROXYMODEL_H */