appinstaller/AppMngr2/inc/appmngr2installedcontainer.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   Container for list view that shows installed applications
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_APPMNGR2INSTALLEDCONTAINER_H
       
    20 #define C_APPMNGR2INSTALLEDCONTAINER_H
       
    21 
       
    22 #include "appmngr2listcontainer.h"      // CAppMngr2ListContainer
       
    23 
       
    24 class CAppMngr2InstalledView;
       
    25 
       
    26 
       
    27 class CAppMngr2InstalledContainer : public CAppMngr2ListContainer
       
    28     {
       
    29 public:     // constructor and destructor
       
    30     static CAppMngr2InstalledContainer* NewL( CAppMngr2InstalledView& aView );
       
    31     ~CAppMngr2InstalledContainer();
       
    32 
       
    33 public:     // from CCoeControl (via CAppMngr2ListContainer)
       
    34     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    35     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    36 
       
    37 public:     // from MEikListBoxObserver (via CAppMngr2ListContainer)
       
    38     void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
    39 
       
    40 public:     // from CAppMngr2ListContainer
       
    41     CAppMngr2InfoBase& CurrentItem() const;
       
    42     TInt ListEmptyTextResourceId() const;
       
    43 
       
    44 protected:  // from CAppMngr2ListContainer
       
    45     TInt ItemCount() const;
       
    46     CAppMngr2InfoBase& ItemInfo( TInt aIndex );
       
    47 
       
    48 private:    // new functions
       
    49     CAppMngr2InstalledContainer( CAppMngr2InstalledView& aView );
       
    50     void ConstructL( CAppMngr2InstalledView& aView );
       
    51     };
       
    52 
       
    53 #endif  // C_APPMNGR2INSTALLEDCONTAINER_H
       
    54