contacts_plat/contacts_ui_api/inc/cntabstractview.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 #ifndef CNTABSTRACTVIEW_H_
       
    18 #define CNTABSTRACTVIEW_H_
       
    19 
       
    20 #include <cntabstractviewmanager.h>
       
    21 #include <cntviewparams.h>
       
    22 #include <cntabstractengine.h>
       
    23 
       
    24 class HbView;
       
    25 
       
    26 class CntAbstractView
       
    27 {
       
    28       
       
    29 public:
       
    30     virtual ~CntAbstractView(){}
       
    31     
       
    32 public:
       
    33     /**
       
    34      * View is activated after its added to main window and is
       
    35      * ready to be drawn.
       
    36      */
       
    37     virtual void activate( const CntViewParameters aArgs ) = 0;
       
    38     
       
    39     /**
       
    40      * View is deactivated just before its removed from
       
    41      * main window.
       
    42      */
       
    43     virtual void deactivate() = 0;
       
    44     
       
    45     /**
       
    46      * Default view is not deleted when its removed from
       
    47      * main window. So, if view is NOT default, its deleted
       
    48      * after its removed from main window.
       
    49      */
       
    50     virtual bool isDefault() const = 0;
       
    51     
       
    52     /**
       
    53      * return the view implementation.
       
    54      */
       
    55     virtual HbView* view() const = 0;
       
    56     
       
    57     /*!
       
    58      * return the view id
       
    59      */
       
    60     virtual int viewId() const = 0;
       
    61 	
       
    62 	/*!
       
    63 	 * set engine. This must be called right after C'tor.
       
    64 	 */
       
    65 	virtual void setEngine( CntAbstractEngine& aEngine ) = 0;
       
    66 };
       
    67 #endif /* CNTABSTRACTVIEW_H_ */