|
1 /* |
|
2 * Copyright (c) 2008-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: Media item id |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef T_GLXMEDIAID_H |
|
21 #define T_GLXMEDIAID_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "glxid.h" |
|
26 |
|
27 const TUint KGlxCollectionRootId = 0; |
|
28 // Media type ID definitions - may need to be moved somewhere else |
|
29 |
|
30 /** |
|
31 * TGlxIdSpaceIdBase |
|
32 * |
|
33 * Don't use this. This is just to make TGlxId type-safe for TGlxIdSpaceId |
|
34 * |
|
35 * @lib none |
|
36 */ |
|
37 class TGlxIdSpaceIdBase {}; |
|
38 |
|
39 |
|
40 /** |
|
41 * TGlxIdSpaceId |
|
42 * |
|
43 * Typesafe Id-space identifier. |
|
44 * |
|
45 * @lib none |
|
46 */ |
|
47 typedef TGlxId<TGlxIdSpaceIdBase> TGlxIdSpaceId; |
|
48 |
|
49 /** |
|
50 * Known Id Spaces |
|
51 */ |
|
52 const TUint KGlxIdSpaceIdRoot = 0x200071A6; ///< Root menu id space |
|
53 |
|
54 /** |
|
55 * used to open Media Model for albums |
|
56 */ |
|
57 const TUint KGlxAlbumsMediaId = 0x200104EC ; |
|
58 /** |
|
59 * Don't use this. This is just to make TGlxId concrete |
|
60 */ |
|
61 class TGlxIdMediaBase {}; |
|
62 |
|
63 /** |
|
64 * TGlxMediaId |
|
65 * |
|
66 * Type safe id class for media item id. Provides getters/setters for all bit groupings. |
|
67 * |
|
68 * @lib ViewerEngine |
|
69 */ |
|
70 class TGlxMediaId : public TGlxId<TGlxIdMediaBase> |
|
71 { |
|
72 public: |
|
73 /** |
|
74 * Default constructor |
|
75 */ |
|
76 inline TGlxMediaId() : TGlxId<TGlxIdMediaBase>() { }; |
|
77 /** |
|
78 * Constructor |
|
79 */ |
|
80 inline TGlxMediaId(const TGlxMediaId& aId) : TGlxId<TGlxIdMediaBase>(aId) { }; |
|
81 /** |
|
82 * Constructor |
|
83 */ |
|
84 explicit inline TGlxMediaId(TUint aId) : TGlxId<TGlxIdMediaBase>(aId) { }; |
|
85 /** |
|
86 * Constructor |
|
87 */ |
|
88 inline TGlxMediaId(const TGlxIdNone& aIdNone) : TGlxId<TGlxIdMediaBase>(aIdNone) { }; |
|
89 }; |
|
90 |
|
91 #endif // T_GLXMEDIAID_H |