|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Capsulating sql items |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef __CMSQLVIDEOITEM_H |
|
24 #define __CMSQLVIDEOITEM_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 #include "cmsqlgenericitem.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 /** |
|
33 * CCmSqlVideoItem class |
|
34 * Capsulating sql items |
|
35 * @lib cmcommon.lib |
|
36 * @since S60 v3.0 |
|
37 */ |
|
38 class CCmSqlVideoItem : public CCmSqlGenericItem |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /* Constructors and destructor. */ |
|
44 |
|
45 /** |
|
46 * Creates new CCmSqlVideoItem class. |
|
47 * @param None |
|
48 * @return pointer to CCmSqlVideoItem class |
|
49 */ |
|
50 IMPORT_C static CCmSqlVideoItem* NewL(); |
|
51 |
|
52 /** |
|
53 * Creates new CCmSqlVideoItem class and |
|
54 * leaves the instance in the cleanup stack. |
|
55 * @return pointer to CCmSqlVideoItem class |
|
56 */ |
|
57 IMPORT_C static CCmSqlVideoItem* NewLC(); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 IMPORT_C virtual ~CCmSqlVideoItem(); |
|
63 |
|
64 public: |
|
65 |
|
66 /** |
|
67 * Sets genre id |
|
68 * @since Series 60 3.1 |
|
69 * @param aGenreId, genre |
|
70 * @return None |
|
71 */ |
|
72 IMPORT_C void SetGenreId( const TInt64 aGenreId ); |
|
73 |
|
74 /** |
|
75 * Gets genre id |
|
76 * @since Series 60 3.1 |
|
77 * @param None |
|
78 * @return genre id |
|
79 */ |
|
80 IMPORT_C TInt64 GenreId() const; |
|
81 |
|
82 protected: |
|
83 |
|
84 /** |
|
85 * Constructor. |
|
86 */ |
|
87 CCmSqlVideoItem(); |
|
88 |
|
89 /** |
|
90 * Second-phase constructor. |
|
91 */ |
|
92 void ConstructL(); |
|
93 |
|
94 |
|
95 private: // data |
|
96 |
|
97 // Genre id |
|
98 TInt64 iGenreId; |
|
99 |
|
100 }; |
|
101 |
|
102 #endif // __CMSQLVIDEOITEM_H |