phonebookui/pbkcommonui/inc/cnteditview.h
branchRCL_3
changeset 62 5b6f26637ad3
equal deleted inserted replaced
58:d4f567ce2e7c 62:5b6f26637ad3
       
     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 *
       
    16 */
       
    17 
       
    18 #ifndef CNTEDITVIEW__H
       
    19 #define CNTEDITVIEW__H
       
    20 
       
    21 #include <QObject>
       
    22 #include <cntabstractview.h>
       
    23 #include "cntglobal.h"
       
    24 
       
    25 class CntEditViewPrivate;
       
    26 class HbView;
       
    27 
       
    28 class QTPBK_EXPORT CntEditView : public QObject, public CntAbstractView
       
    29 { 
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     CntEditView();
       
    34     ~CntEditView();
       
    35     
       
    36 signals:
       
    37     void contactUpdated(int aSuccess);
       
    38     void contactRemoved(bool aSuccess);
       
    39     void changesDiscarded();
       
    40     
       
    41     
       
    42 public:
       
    43     void activate( const CntViewParameters aArgs );
       
    44     void deactivate();
       
    45     bool isDefault() const;
       
    46     HbView* view() const;
       
    47     int viewId() const;
       
    48 
       
    49     void setEngine( CntAbstractEngine& aEngine );
       
    50     
       
    51 private:
       
    52     CntEditViewPrivate* const d_ptr;
       
    53     Q_DECLARE_PRIVATE_D(d_ptr, CntEditView)
       
    54     Q_DISABLE_COPY(CntEditView)   
       
    55 };
       
    56 #endif //CNTEDITVIEW__H
       
    57 // EOF