2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Supports Download Menu
20 #ifndef CDOWNLOADMGRUIDOWNLOADMENU_H
21 #define CDOWNLOADMGRUIDOWNLOADMENU_H
26 // FORWARD DECLARATIONS
29 class CDownloadMenuExtension;
34 * Download menu support.
36 * @lib Download Manager UI Lib
37 * @since Series 60 2.8
39 NONSHARABLE_CLASS( CDownloadMgrUiDownloadMenu ) : public CBase
41 public: // Constructors and destructor
44 * Two-phased constructor.
46 static CDownloadMgrUiDownloadMenu* NewL( CCoeEnv& aCoeEnv );
51 virtual ~CDownloadMgrUiDownloadMenu();
53 public: // New functions
56 * Inserts a menu item in the client application's menu to access
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
64 IMPORT_C void AddMenuL( TInt aCommandId,
65 CEikMenuPane& aMenuPane,
71 * C++ default constructor.
73 CDownloadMgrUiDownloadMenu( CCoeEnv& aCoeEnv );
76 * By default Symbian 2nd phase constructor is private.
82 CDownloadMenuExtension* iExtension; ///< Extension class. Owned.
84 CCoeEnv& iCoeEnv; ///< Reference to CONE environment.
88 #endif /* CDOWNLOADMGRUIDOWNLOADMENU_H */