contacts_plat/contacts_ui_api/inc/cntviewparams.h
changeset 27 de1630741fbe
child 31 2a11b5b00470
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contacts_plat/contacts_ui_api/inc/cntviewparams.h	Mon May 03 12:24:20 2010 +0300
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+#ifndef CNTVIEWPARAMS_H
+#define CNTVIEWPARAMS_H
+
+#include <QMap>
+#include <QVariant>
+#include <qtcontacts.h>
+
+QTM_BEGIN_NAMESPACE
+class QContact;
+class QContactDetail;
+QTM_END_NAMESPACE
+
+QTM_USE_NAMESPACE
+
+enum CntViewParamId
+{
+    EViewId = 0,
+    ESelectedAction,
+    ESelectedContact,
+    ESelectedGroupContact,
+    ESelectedDetail,
+    ESelectionMode,
+	ECustomParam = 100
+};
+
+enum CntViewId
+{
+    noView=0, //exit
+    namesView,
+    commLauncherView,
+    serviceContactCardView,
+    serviceAssignContactCardView,
+    myCardView,
+    myCardSelectionView,
+    serviceContactSelectionView,
+    collectionView,
+    collectionFavoritesView,
+    FavoritesMemberView,
+    editView,
+    serviceEditView,
+    serviceSubEditView,
+    emailEditorView,
+    namesEditorView,
+    urlEditorView,
+    companyEditorView,
+    phoneNumberEditorView,
+    onlineAccountEditorView,
+    noteEditorView,
+    familyDetailEditorView,
+    addressEditorView,
+    dateEditorView,
+    imageEditorView,
+    serviceContactFetchView,
+    groupEditorView,
+    groupMemberView,
+    groupActionsView,
+    historyView,
+    customPhonebookView = 100, // reserved for internal view plugins, DO NOT USE THESE
+    customView = 200 // for all other view plugins
+};
+
+typedef QMap<int, QVariant> CntViewParameters;
+
+Q_DECLARE_METATYPE(QContact)
+Q_DECLARE_METATYPE(QContactDetail)
+
+#endif // CNTVIEWPARAMS_H