uiservicetab/vimpstui/inc/mvimpstuitabbedviewcontrol.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     1 /*
       
     2 * Copyright (c) 2008 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:  parent class for tabbed view control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _MVIMPSTUITABBEDVIEWCONTROL_H
       
    20 #define _MVIMPSTUITABBEDVIEWCONTROL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 #include "mvimpstprocessArrayobserver.h"
       
    25 
       
    26 #include <eiklbo.h> // MEikListBoxObserver
       
    27 #include <AiwServiceHandler.h>
       
    28 #include <AiwContactSelectionDataTypes.h>
       
    29 
       
    30 #include <MVPbkContactStoreListObserver.h>
       
    31 #include <AiwContactSelectionDataTypes.h>
       
    32 #include <MVPbkSingleContactOperationObserver.h> // for phonebook2
       
    33 #include <MVPbkContactStoreObserver.h>
       
    34 
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 class MPbk2KeyEventHandler;
       
    39 class MVIMPSTCmdHandler;
       
    40 class MVIMPSTProcessArray;
       
    41 class CVIMPSTUiBrandData;
       
    42 class CAknSearchField;
       
    43 class MVIMPSTEngine;
       
    44 class CVIMPSTUiTabbedView;
       
    45 class CVPbkFieldTypeSelector;
       
    46 class CVPbkContactManager;
       
    47 class CAiwServiceHandler;
       
    48 class CPbk2SortOrderManager;
       
    49 class MPbk2ContactNameFormatter;
       
    50 class MVPbkContactStore;
       
    51 class TVPbkContactStoreEvent;
       
    52 class CCAStatusPaneHandler;
       
    53 
       
    54 //CLASS DECLARATION
       
    55 /**
       
    56  *  parent class for tabbed view control
       
    57  *
       
    58  *  there are two implementations of this class for  single style/line and double style/line  listboxes
       
    59  *  container holds the corresponding type of listbox and array.
       
    60  *  The common methods accessed from view( tabbed view ) are here which has to be 
       
    61  *  implemented by the concrete class containers.
       
    62  *  
       
    63  *  @lib vimpstui.dll
       
    64  *  @since S60 v5.0
       
    65  */
       
    66 class MVIMPSTUiTabbedViewControl
       
    67     {
       
    68 public:
       
    69     /**
       
    70      *  Public destructor 
       
    71      */  
       
    72     virtual ~MVIMPSTUiTabbedViewControl() {}; 
       
    73 public:
       
    74     /*
       
    75      * Returns the coecontrol pointer from the  aControl
       
    76      * 
       
    77      * @return  the pointer to  CCoeControl 
       
    78      */
       
    79     virtual CCoeControl*  CoeControl() = 0;
       
    80     /**
       
    81      * Returns the currently focused item's index.
       
    82      * @return TInt, current item index.
       
    83      */
       
    84     virtual TInt CurrentItemIndex() const = 0;
       
    85     
       
    86     /**
       
    87      * send the message using selected item
       
    88      * this will launch the conversation view if im is enabled.
       
    89      */
       
    90     virtual  void SendMessageL()= 0;
       
    91 
       
    92       
       
    93     /**
       
    94      * Activates find-pane
       
    95      */
       
    96     virtual void ActivateFindPaneL() = 0 ;
       
    97     
       
    98     /**
       
    99      * De-activates find-pane
       
   100      */
       
   101     virtual void DeactivateFindPaneL() = 0;
       
   102 
       
   103    /**
       
   104      * Checks if the last contact is focused and Sets the iLastItemFlag
       
   105      */            
       
   106     virtual void CheckAndSetLastItemFlag()= 0 ; 
       
   107     /**
       
   108      * Sets the flag to clear the find pane
       
   109      */ 
       
   110     virtual void SetClrFindPaneFlag(TBool aFlag) = 0;
       
   111     
       
   112     /**
       
   113      * Updates view after edit.
       
   114      * @param aIndex is the index of item that has changed.
       
   115      * @param aType is list item type. 
       
   116      */
       
   117     virtual void UpdateViewL( TInt aIndex, TVIMPSTEnums::TItem aType)= 0;
       
   118     
       
   119     /**
       
   120      * Handles item addition for this control.
       
   121      */
       
   122     virtual void HandleItemAdditionL()= 0;
       
   123     
       
   124     /**
       
   125     *Handle the avatar deletion in UI
       
   126     */
       
   127 	virtual void HandleAvatarDeleteL( const TDesC& aUserId )= 0;
       
   128 	
       
   129 	/**
       
   130     *Handle the avatar deletion in UI
       
   131     */
       
   132 	virtual void SetFocussedId(const TDesC& aContact) = 0 ;
       
   133 	
       
   134 	/**
       
   135     *Handle the avatar deletion in UI
       
   136     */
       
   137 	virtual TPtrC GetFocussedId() = 0 ;
       
   138 	
       
   139     
       
   140     };
       
   141 
       
   142 
       
   143 #endif // _MVIMPSTUITABBEDVIEWCONTROL_H