ui/inc/glxmodelparm.h
changeset 23 74c9f037fd5d
child 24 99ad1390cd33
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GLXMODELPARM_H
       
    21 #define GLXMODELPARM_H
       
    22 
       
    23 #include<glxfiltergeneraldefs.h>
       
    24 
       
    25 enum
       
    26 {
       
    27 GlxFsImageRole = Qt::UserRole + 1,
       
    28 GlxContextRole,
       
    29 GlxFocusIndexRole,
       
    30 GlxVisualWindowIndex, 
       
    31 GlxUriRole,
       
    32 GlxDimensionsRole,
       
    33 GlxSelectedIndexRole,
       
    34 GlxDateRole,
       
    35 GlxFrameCount
       
    36 };
       
    37 
       
    38 
       
    39 class GlxModelParm
       
    40 {
       
    41 public:
       
    42 	GlxModelParm (qint32 collectionId = 0, qint32 depth = 0 , TGlxFilterItemType filterType = EGlxFilterItemAll ) : mCollectionId(collectionId) ,mDepth(depth) , mFilterType(filterType)
       
    43 	{
       
    44 	
       
    45 	}
       
    46 	
       
    47 	void setCollection (qint32 collectionId = 0) { mCollectionId = collectionId ; }
       
    48 	qint32 collection() { return mCollectionId; }
       
    49 	void setDepth (qint32 depth = 0) { mDepth = depth ; }
       
    50 	qint32 depth() { return mDepth; }
       
    51 	TGlxFilterItemType filterType() { return mFilterType; }
       
    52 private:
       
    53 	qint32 mCollectionId;
       
    54 	qint32 mDepth;
       
    55 	TGlxFilterItemType mFilterType;
       
    56 };
       
    57 
       
    58 
       
    59 #endif /* GLXMODELPARM_H_ */