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: |
|
15 * Base view for all messaging views (CLV,CV etc). |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <HbView> |
|
20 #include <QVariant> |
|
21 |
|
22 #ifndef MSG_BASE_VIEW_H_ |
|
23 #define MSG_BASE_VIEW_H_ |
|
24 |
|
25 |
|
26 class MsgBaseView : public HbView |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 /** |
|
32 * constructor. |
|
33 */ |
|
34 MsgBaseView(QGraphicsItem* parent=0):HbView(parent){} |
|
35 |
|
36 /** |
|
37 * enum defining view id(s). |
|
38 */ |
|
39 enum viewId |
|
40 { |
|
41 DEFAULT = 0, |
|
42 CLV, |
|
43 CV, |
|
44 DLV, |
|
45 UNIEDITOR, |
|
46 UNIVIEWER, |
|
47 MSGSETTINGS, |
|
48 SERVICE |
|
49 }; |
|
50 |
|
51 /** |
|
52 * enum definition for differentiating switchview to unieditor command further |
|
53 */ |
|
54 enum UniEditorOperation |
|
55 { |
|
56 ADD_PHOTO = 0x01, |
|
57 ADD_AUDIO = 0x02, |
|
58 ADD_VIDEO = 0x04, |
|
59 ADD_VCARD = 0x08, |
|
60 ADD_OTHERS = 0x10, |
|
61 ADD_RECIPIENTS = 0x20, |
|
62 ADD_SUBJECT = 0x40, |
|
63 FORWARD_MSG = 0x80 |
|
64 }; |
|
65 |
|
66 signals: |
|
67 /** |
|
68 * This signal is emitted whenever a view switch is needed. |
|
69 */ |
|
70 void switchView(const QVariantList& data); |
|
71 |
|
72 |
|
73 }; |
|
74 |
|
75 #endif //MSG_BASE_VIEW_H_ |