contacts_plat/contacts_ui_extensions_api/inc/cntextensiongroupcallback.h
changeset 37 fd64c38c277d
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
       
     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 CNTEXTENSIONGROUPCALLBACK_H
       
    19 #define CNTEXTENSIONGROUPCALLBACK_H
       
    20 
       
    21 #include <cntviewparams.h>
       
    22 
       
    23 /**
       
    24  * Class for asynchronously handling action callbacks from cntuiextensiongroup longPressed method
       
    25  */
       
    26 class CntExtensionGroupCallback
       
    27 {
       
    28 public:
       
    29 
       
    30     /**
       
    31      * Handles the view switching callback from CntUiExtensionGroup::longPressed(...)
       
    32      *
       
    33      * @param CntViewParameters&, callback for view switching
       
    34      */
       
    35     virtual void openView(CntViewParameters& viewParams) = 0;
       
    36 
       
    37 protected:
       
    38     // prevent deleting by client
       
    39     virtual ~CntExtensionGroupCallback() {}
       
    40 };
       
    41 
       
    42 #endif //CNTEXTENSIONGROUPCALLBACK_H