browserutilities/aiwbrowserprovider/inc/AiwBrowserProviderOpenUrl.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  header file for implementation of open url functionality
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AIWBROWSERPROVIDEROPENURL_H
       
    20 #define AIWBROWSERPROVIDEROPENURL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <AiwServiceIfMenu.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 *  Class which solves the open url functionality.
       
    29 *
       
    30 *  @since Series 60 3.1
       
    31 */
       
    32 
       
    33 class CAiwBrowserProviderOpenUrl : public CAiwServiceIfMenu
       
    34     {
       
    35     public:
       
    36         /**
       
    37         * Two-phased constructor.
       
    38         */           
       
    39         static CAiwBrowserProviderOpenUrl* NewL();
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         ~CAiwBrowserProviderOpenUrl();
       
    44         // New functions
       
    45     private: // From CAiwServiceIfMenu
       
    46         /**
       
    47         * init
       
    48         * @since Series 60 3.1
       
    49         * @param all defined in aiw framework
       
    50         * @return none 
       
    51         */        
       
    52         void InitialiseL(MAiwNotifyCallback& aFrameworkCallback, 
       
    53                          const RCriteriaArray& aInterest);
       
    54         
       
    55         /**
       
    56         * Handles service commands
       
    57         * @since Series 60 3.1
       
    58         * @param all defined in aiw framework
       
    59         * @return none
       
    60         */        
       
    61         void HandleServiceCmdL(const TInt& aCmdId,
       
    62 		                       const CAiwGenericParamList& aInParamList,
       
    63 		                       CAiwGenericParamList& aOutParamList,
       
    64 		                       TUint aCmdOptions = 0,
       
    65 		                       const MAiwNotifyCallback* aCallback = NULL);
       
    66         /**
       
    67         * initializes menupane objects
       
    68         * @since Series 60 3.1
       
    69         * @param menupane
       
    70         * @param index
       
    71         * @param cascade id
       
    72         * @param parameter list
       
    73         * @return none
       
    74         */        
       
    75         void InitializeMenuPaneL(CAiwMenuPane& aMenuPane,
       
    76 		                         TInt aIndex,
       
    77 		                         TInt aCascadeId,
       
    78 		                         const CAiwGenericParamList& aInParamList);
       
    79         /**
       
    80         * Handles menu commands
       
    81         * @since Series 60 3.1
       
    82         * @param menu command id 
       
    83         * @param in parameter list
       
    84         * @param out parameter list
       
    85         * @param command options
       
    86         * @param callback
       
    87         * @return none
       
    88         */        
       
    89     	void HandleMenuCmdL(TInt aMenuCmdId,
       
    90 		                    const CAiwGenericParamList& aInParamList,
       
    91 		                    CAiwGenericParamList& aOutParamList,
       
    92 		                    TUint aCmdOptions = 0,
       
    93 		                    const MAiwNotifyCallback* aCallback = NULL);
       
    94 	
       
    95         /**
       
    96         * launches the url
       
    97         * @since Series 60 3.1
       
    98         * @param url to open
       
    99         * @return none
       
   100         */        
       
   101         void LaunchBrowserL( const TDesC& aUrl );
       
   102 	
       
   103     private: // Implementation
       
   104         /**
       
   105         * constructor
       
   106         * @since Series 60 3.1
       
   107         * @param none
       
   108         * @return none
       
   109         */        
       
   110         CAiwBrowserProviderOpenUrl();
       
   111         /**
       
   112         * constructl 
       
   113         * @since Series 60 3.1
       
   114         * @param none
       
   115         * @return none
       
   116         */        
       
   117         void ConstructL();
       
   118 
       
   119     private: // Data
       
   120         TInt iResourceOffset;
       
   121         MAiwNotifyCallback* iNotifyCallback;
       
   122         const RCriteriaArray* iInterest;
       
   123     };
       
   124 
       
   125 #endif // __CAiwBrowserProvider_H__