ui/inc/glxmodelparm.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:58:46 +0300
changeset 24 99ad1390cd33
parent 23 74c9f037fd5d
child 26 c499df2dbb33
permissions -rw-r--r--
Revision: 201011 Kit: 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:   ?Description
*
*/



#ifndef GLXMODELPARM_H
#define GLXMODELPARM_H

#include<glxfiltergeneraldefs.h>
#include<glxuistd.h>

enum
{
    GlxFsImageRole = Qt::UserRole + 1,  //to get the fullscreen image
    GlxContextRole,                     //to get and set the context   
    GlxFocusIndexRole,                  //to get and set the selected item index
    GlxVisualWindowIndex,               //to set the visual window index in media list
    GlxUriRole,                         //to get the URI of the image
    GlxDimensionsRole,                  
    GlxSelectedIndexRole,               //to get and set the seleceted item list
    GlxDateRole,                        //to get the image created or modified date 
    GlxFrameCount,                      //to get the number of frame in an image
    GlxSubStateRole,                    //to publish the sub state of a SM states
};


class GlxModelParm
{
public:
	GlxModelParm (qint32 collectionId = 0, qint32 depth = 0 , TGlxFilterItemType filterType = EGlxFilterItemAll , GlxContextMode contextMode = GlxContextPtGrid ) 
	    : mCollectionId(collectionId) ,
	      mDepth(depth) , 
	      mFilterType( filterType ),
	      mContextMode( contextMode )
	{
	
	}
	
	void setCollection (qint32 collectionId = 0) { mCollectionId = collectionId ; }
	qint32 collection() { return mCollectionId; }
	void setDepth (qint32 depth = 0) { mDepth = depth ; }
	qint32 depth() { return mDepth; }
	TGlxFilterItemType filterType() { return mFilterType; }
	void setContextMode( GlxContextMode contextMode ) { mContextMode = contextMode ; }
	GlxContextMode contextMode() { return mContextMode ; }
	
private:
	qint32 mCollectionId;
	qint32 mDepth;
	TGlxFilterItemType mFilterType;
	GlxContextMode mContextMode;
};


#endif /* GLXMODELPARM_H_ */