phonebookui/cntcommonui/contactcard/cntcontactcardview.h
changeset 72 6abfb1094884
parent 61 d30183af6ca6
child 81 640d30f4fb64
equal deleted inserted replaced
67:59984e68247d 72:6abfb1094884
       
     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 CNTCONTACTCARDVIEW_H
       
    19 #define CNTCONTACTCARDVIEW_H
       
    20 
       
    21 #include <cntabstractview.h>
       
    22 #include "cntglobal.h"
       
    23 #include <QObject>
       
    24 
       
    25 class HbView;
       
    26 class CntContactCardViewPrivate;
       
    27 
       
    28 QTM_BEGIN_NAMESPACE
       
    29 class QContact;
       
    30 class QContactDetail;
       
    31 QTM_END_NAMESPACE
       
    32 
       
    33 QTM_USE_NAMESPACE
       
    34 
       
    35 class QTPBK_EXPORT CntContactCardView : public QObject, public CntAbstractView
       
    36 {
       
    37     Q_OBJECT
       
    38     
       
    39 public:
       
    40     CntContactCardView(bool isTemporary = false);
       
    41     ~CntContactCardView();
       
    42   
       
    43 signals:
       
    44     void backPressed(int value); // value is return value for services (from cntservicescontact.h)
       
    45     void viewActivated(CntAbstractViewManager* aMgr, const CntViewParameters aArgs);
       
    46     void addToContacts();
       
    47     
       
    48 public: // From CntAbstractView
       
    49     void activate(const CntViewParameters aArgs);
       
    50     void deactivate();
       
    51     HbView* view() const;
       
    52     
       
    53     bool isDefault() const;
       
    54     int viewId() const;
       
    55      
       
    56     void setEngine( CntAbstractEngine& aEngine );
       
    57 private:
       
    58     CntContactCardViewPrivate* const d_ptr;
       
    59     Q_DECLARE_PRIVATE_D(d_ptr, CntContactCardView)
       
    60     Q_DISABLE_COPY(CntContactCardView)    
       
    61 };
       
    62 #endif // CNTCONTACTCARDVIEW_H
       
    63 
       
    64 // EOF