epoc32/include/mw/cdownloadmgruidownloadmenu.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
     1.1 --- a/epoc32/include/mw/cdownloadmgruidownloadmenu.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/cdownloadmgruidownloadmenu.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,88 @@
     1.4 -cdownloadmgruidownloadmenu.h
     1.5 +/*
     1.6 +* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Eclipse Public License v1.0"
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Supports Download Menu
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef CDOWNLOADMGRUIDOWNLOADMENU_H
    1.25 +#define CDOWNLOADMGRUIDOWNLOADMENU_H
    1.26 +
    1.27 +//  INCLUDES
    1.28 +#include <E32BASE.H>
    1.29 +
    1.30 +// FORWARD DECLARATIONS
    1.31 +class CEikMenuPane;
    1.32 +class CCoeEnv;
    1.33 +class CDownloadMenuExtension;
    1.34 +
    1.35 +// CLASS DECLARATION
    1.36 +
    1.37 +/**
    1.38 +*  Download menu support.
    1.39 +*
    1.40 +*  @lib Download Manager UI Lib
    1.41 +*  @since Series 60 2.8
    1.42 +*/
    1.43 +NONSHARABLE_CLASS( CDownloadMgrUiDownloadMenu ) : public CBase
    1.44 +    {
    1.45 +    public:  // Constructors and destructor
    1.46 +        
    1.47 +        /**
    1.48 +        * Two-phased constructor.
    1.49 +        */
    1.50 +        static CDownloadMgrUiDownloadMenu* NewL( CCoeEnv& aCoeEnv );
    1.51 +        
    1.52 +        /**
    1.53 +        * Destructor.
    1.54 +        */
    1.55 +        virtual ~CDownloadMgrUiDownloadMenu();
    1.56 +
    1.57 +    public: // New functions
    1.58 +        
    1.59 +        /**
    1.60 +        * Inserts a menu item in the client application's menu to access 
    1.61 +        * the Downloads List.
    1.62 +        * @since Series 60 2.8
    1.63 +        * @param aCommandId Command ID of the menu item
    1.64 +        * @param aMenuPane The item is inserted into this menu pane
    1.65 +        * @param aPreviousId The item is inserted after this command ID
    1.66 +        * @return -
    1.67 +        */
    1.68 +        IMPORT_C void AddMenuL( TInt aCommandId, 
    1.69 +                                CEikMenuPane& aMenuPane, 
    1.70 +                                TInt aPreviousId );
    1.71 +
    1.72 +    protected:
    1.73 +
    1.74 +        /**
    1.75 +        * C++ default constructor.
    1.76 +        */
    1.77 +        CDownloadMgrUiDownloadMenu( CCoeEnv& aCoeEnv );
    1.78 +
    1.79 +        /**
    1.80 +        * By default Symbian 2nd phase constructor is private.
    1.81 +        */
    1.82 +        void ConstructL();
    1.83 +
    1.84 +    protected:  // Data
    1.85 +
    1.86 +        CDownloadMenuExtension* iExtension; ///< Extension class. Owned.
    1.87 +
    1.88 +        CCoeEnv& iCoeEnv; ///< Reference to CONE environment.
    1.89 +
    1.90 +    };
    1.91 +
    1.92 +#endif /* CDOWNLOADMGRUIDOWNLOADMENU_H */