videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/inc/mdeinstanceitem.h
equal
deleted
inserted
replaced
|
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 #ifndef __MDEINSTANCEITEM_H__ |
|
20 #define __MDEINSTANCEITEM_H__ |
|
21 |
|
22 |
|
23 #include <mdeitem.h> |
|
24 |
|
25 enum TMdEInstanceType |
|
26 { |
|
27 EMdETypeObject = 1, |
|
28 EMdETypeRelation, |
|
29 EMdETypeEvent, |
|
30 EMdETypeProperty |
|
31 }; |
|
32 |
|
33 /** |
|
34 * Abstract base class for all instance items stored in the metadata engine database. |
|
35 */ |
|
36 NONSHARABLE_CLASS(CMdEInstanceItem) : public CMdEItem |
|
37 { |
|
38 public: |
|
39 |
|
40 /* Destructor. */ |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CMdEInstanceItem(); |
|
46 |
|
47 |
|
48 /* Methods. */ |
|
49 |
|
50 virtual TMdEInstanceType InstanceType() const = 0; |
|
51 |
|
52 protected: |
|
53 |
|
54 /* Constructors. */ |
|
55 |
|
56 /** |
|
57 * Constructor. |
|
58 */ |
|
59 CMdEInstanceItem(CMdESession* aSession, TItemId aId); |
|
60 |
|
61 /** |
|
62 * Second-phase constructor. |
|
63 */ |
|
64 void InstanceItemBaseConstruct(); |
|
65 }; |
|
66 |
|
67 #endif // __MDEINSTANCEITEM_H__ |