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