epoc32/include/mw/cdownloadmgruidownloadmenu.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2002-2004 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 the License "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:  Supports Download Menu
    15 *
    16 */
    17 
    18 
    19 
    20 #ifndef CDOWNLOADMGRUIDOWNLOADMENU_H
    21 #define CDOWNLOADMGRUIDOWNLOADMENU_H
    22 
    23 //  INCLUDES
    24 #include <E32BASE.H>
    25 
    26 // FORWARD DECLARATIONS
    27 class CEikMenuPane;
    28 class CCoeEnv;
    29 class CDownloadMenuExtension;
    30 
    31 // CLASS DECLARATION
    32 
    33 /**
    34 *  Download menu support.
    35 *
    36 *  @lib Download Manager UI Lib
    37 *  @since Series 60 2.8
    38 */
    39 NONSHARABLE_CLASS( CDownloadMgrUiDownloadMenu ) : public CBase
    40     {
    41     public:  // Constructors and destructor
    42         
    43         /**
    44         * Two-phased constructor.
    45         */
    46         static CDownloadMgrUiDownloadMenu* NewL( CCoeEnv& aCoeEnv );
    47         
    48         /**
    49         * Destructor.
    50         */
    51         virtual ~CDownloadMgrUiDownloadMenu();
    52 
    53     public: // New functions
    54         
    55         /**
    56         * Inserts a menu item in the client application's menu to access 
    57         * the Downloads List.
    58         * @since Series 60 2.8
    59         * @param aCommandId Command ID of the menu item
    60         * @param aMenuPane The item is inserted into this menu pane
    61         * @param aPreviousId The item is inserted after this command ID
    62         * @return -
    63         */
    64         IMPORT_C void AddMenuL( TInt aCommandId, 
    65                                 CEikMenuPane& aMenuPane, 
    66                                 TInt aPreviousId );
    67 
    68     protected:
    69 
    70         /**
    71         * C++ default constructor.
    72         */
    73         CDownloadMgrUiDownloadMenu( CCoeEnv& aCoeEnv );
    74 
    75         /**
    76         * By default Symbian 2nd phase constructor is private.
    77         */
    78         void ConstructL();
    79 
    80     protected:  // Data
    81 
    82         CDownloadMenuExtension* iExtension; ///< Extension class. Owned.
    83 
    84         CCoeEnv& iCoeEnv; ///< Reference to CONE environment.
    85 
    86     };
    87 
    88 #endif /* CDOWNLOADMGRUIDOWNLOADMENU_H */