contacts_plat/contacts_ui_api/inc/cntviewparams.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:24:20 +0300
changeset 27 de1630741fbe
child 31 2a11b5b00470
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
 * 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