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