wvuing/wvuiave/AppSrc/CCASearchView.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006 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:  View class for search view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCASEARCHVIEW_H
       
    21 #define CCASEARCHVIEW_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include "CCAView.h"
       
    26 #include "MCARecipientObserver.h"
       
    27 #include "MCASearchBackgroundObserverPC.h"
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CCASearchViewContainer;
       
    32 class CEikMenuBar;
       
    33 class MCASearchInterfacePC;
       
    34 
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  View class for search view
       
    40 *
       
    41 *  @lib chatng.app
       
    42 *  @since 3.2
       
    43 */
       
    44 class CCASearchView : public CCAView,
       
    45             public MCARecipientObserver,
       
    46             public MCASearchBackgroundObserverPC
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49 
       
    50         /**
       
    51         * C++ default constructor.
       
    52         */
       
    53         CCASearchView();
       
    54 
       
    55         /*
       
    56         * destructor
       
    57         */
       
    58         virtual ~CCASearchView();
       
    59 
       
    60     public: // Functions from base classes
       
    61 
       
    62         /**
       
    63         * From CAknView Handles command events. Gets called by framework
       
    64         * @param aCommand Command that was received
       
    65         */
       
    66         void HandleCommandL( TInt aCommand );
       
    67 
       
    68         /**
       
    69          * From MEikMenuObserver Dynamically initialises a menu pane.
       
    70          * The Uikon framework calls this function, if it is implemented in a
       
    71          * menu’s observer, immediately before the menu pane is activated.
       
    72          * Typically this function should inquire the value of application
       
    73          * data, and initialise menu items accordingly. This includes dimming
       
    74          * menu items, changing their text, setting the state of checked items
       
    75          * and radio buttons and dynamically adding items to a menu.
       
    76          * @param aResourceId Resource ID identifying the menu pane to
       
    77          *                    initialise
       
    78          * @param aMenuPane The in-memory representation of the menu pane
       
    79          */
       
    80         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    81 
       
    82         /**
       
    83          * Shows popup menu instead of application menu
       
    84          */
       
    85         void ShowPopUpMenuL();
       
    86 
       
    87         /**
       
    88          * @see MCASearchBackgroundObserverPC
       
    89          */
       
    90         virtual void HandleBackgroundEventPC(
       
    91             TEnumsPC::TCABackgroundTasks aEventSource,
       
    92             TEnumsPC::TCABackgroundStatus aStatus,
       
    93             TInt aSubTaskNumber,
       
    94             TInt aLeaveCode
       
    95         );
       
    96 
       
    97     public:	// New methods
       
    98 
       
    99         /**
       
   100          * Shows recipient list (not needed indeed)
       
   101          * @param aResourceId Resource id for pop up list
       
   102          * @return Positive value if Oked
       
   103          */
       
   104         TInt ShowRecipientsListL( TInt /*aResourceId*/ );
       
   105 
       
   106 
       
   107     private:
       
   108 
       
   109         /**
       
   110         * From CAknView, Gets called from framework when activating this view
       
   111         * @param aPrevViewId Previous view id
       
   112         * @param aCustomMessageId Custom message's id
       
   113         * @param aCustomMessage Custom message
       
   114         */
       
   115         void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
       
   116                           const TDesC8& aCustomMessage );
       
   117 
       
   118         /**
       
   119         * From CAknView, Gets called from framework when deactivating this view
       
   120         */
       
   121         void DoDeactivate();
       
   122 
       
   123     private:    // Data
       
   124 
       
   125         // Owns
       
   126         CCASearchViewContainer* iContainer;
       
   127 
       
   128         // previous view id
       
   129         TVwsViewId iPrevViewId;
       
   130 
       
   131         // Owns. Popup-menu
       
   132         CEikMenuBar* iPopUpMenu;
       
   133 
       
   134 
       
   135         // group synchronization done or not
       
   136         TBool iGroupSyncDone;
       
   137 
       
   138         //Pointer to SearchInterfacePC,doesnt own
       
   139         MCASearchInterfacePC* iSearchInterfacePC;
       
   140     };
       
   141 
       
   142 #endif      // CCASEARCHVIEW_H   
       
   143 
       
   144 // End of File