|
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 #include<glxuistd.h> |
|
25 #include<glxmodelroles.h> |
|
26 |
|
27 class GlxModelParm |
|
28 { |
|
29 public: |
|
30 GlxModelParm (qint32 collectionId = 0, qint32 depth = 0 , TGlxFilterItemType filterType = EGlxFilterItemAll , GlxContextMode contextMode = GlxContextPtGrid ,QString uri = NULL) |
|
31 : mCollectionId(collectionId) , |
|
32 mDepth(depth) , |
|
33 mFilterType( filterType ), |
|
34 mContextMode( contextMode ), |
|
35 mUri(uri) |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 void setCollection (qint32 collectionId = 0) { mCollectionId = collectionId ; } |
|
41 qint32 collection() { return mCollectionId; } |
|
42 void setDepth (qint32 depth = 0) { mDepth = depth ; } |
|
43 qint32 depth() { return mDepth; } |
|
44 QString path() { return mUri; } |
|
45 void setPath(QString uri = NULL) { mUri=uri; } |
|
46 TGlxFilterItemType filterType() { return mFilterType; } |
|
47 void setContextMode( GlxContextMode contextMode ) { mContextMode = contextMode ; } |
|
48 GlxContextMode contextMode() { return mContextMode ; } |
|
49 |
|
50 private: |
|
51 qint32 mCollectionId; |
|
52 qint32 mDepth; |
|
53 TGlxFilterItemType mFilterType; |
|
54 GlxContextMode mContextMode; |
|
55 QString mUri; |
|
56 }; |
|
57 |
|
58 |
|
59 #endif /* GLXMODELPARM_H_ */ |