browserui/browser/BrowserAppInc/BrowserLauncherService.h
branchRCL_3
changeset 64 6385c4c93049
parent 63 4baee4f15982
child 65 8e6fa1719340
equal deleted inserted replaced
63:4baee4f15982 64:6385c4c93049
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *      Implementation of BrowserLauncherService
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef BROWSERLAUNCHERSERVICE_H
       
    22 #define BROWSERLAUNCHERSERVICE_H
       
    23 
       
    24 // INCLUDE FILES 
       
    25 #include "LauncherServerBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class TBrowserOverriddenSettings;
       
    29 class CAiwGenericParamList;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 class CBrowserLauncherService: public CLauncherServerBase
       
    33 {
       
    34 public:
       
    35 
       
    36     /**
       
    37     * Destructor.
       
    38     */
       
    39     virtual ~CBrowserLauncherService();   
       
    40 
       
    41 private: 
       
    42 	/**
       
    43 	* Process incoming messages syncronously.
       
    44     * @param aEmbeddingApplicationUid Embedding application`s UID	
       
    45     * @param aSettings Overridden user preferences.
       
    46     * @param aFolderUid Uid of the folder that the Browser should open.
       
    47     * @param aSeamlessParam 
       
    48     * @param aIsContentHandlerRegistered True if a content handler is registered
       
    49 	* @return The result of processing. ( same as SendRecieve() )
       
    50 	*/ 
       
    51 	// from CLauncherServerBase
       
    52 	TInt ProcessMessageSyncL( TUid aEmbeddingApplicationUid, 
       
    53 							  TBrowserOverriddenSettings aSettings, 
       
    54 							  TInt aFolderUid, 
       
    55 							  TPtrC aSeamlessParam, 
       
    56 							  TBool aIsContentHandlerRegistered );
       
    57 	
       
    58 	/**
       
    59 	* Process incoming messages asyncronously.
       
    60     * @param aEmbeddingApplicationUid Embedding application`s UID
       
    61     * @param aSettings Overridden user preferences.
       
    62 	* @param aFolderUid Uid of the folder that the Browser should open.
       
    63     * @param aSeamlessParam
       
    64     * @param aIsContentHandlerRegistered True if a content handler is registered    
       
    65     * @param isOverridenSettings True if the client sended an overidden setting
       
    66 	*/
       
    67 	// from CLauncherServerBase
       
    68     void ProcessMessageASyncL( TUid aEmbeddingApplicationUid, 
       
    69     						   TBrowserOverriddenSettings aSettings, 
       
    70     						   TInt aFolderUid, 
       
    71     						   TPtrC aSeamlessParam, 
       
    72     						   TBool aIsContentHandlerRegistered, 
       
    73     						   TBool isOverridenSettings );
       
    74 
       
    75 	/**
       
    76 	* Write iClientBuffer member to  client`s address space.
       
    77 	* @return The error code of the process.
       
    78 	*/    
       
    79     TInt ProcessMessageSyncBufferL( );
       
    80     
       
    81         /**
       
    82         * Process TBool parameters.
       
    83         */
       
    84         void ProcessBoolsL( TBool aClientWantsToContinue, TBool aWasContentHandled );
       
    85 
       
    86     /**
       
    87     * Closes the Browser.
       
    88     */
       
    89     void DoBrowserExit( );
       
    90     
       
    91 public:
       
    92     
       
    93 	/**
       
    94 	* Notifies client about finished download.
       
    95 	* @param aReason Result of the downloading
       
    96 	*/    
       
    97     void DownloadFinishedL( TInt aReason, const CAiwGenericParamList& aParamList );
       
    98     
       
    99 public:	
       
   100 	/**
       
   101 	* Second phase constructor.
       
   102 	*/
       
   103     void ConstructL();   
       
   104 };
       
   105 
       
   106 #endif	// CBrowserAppServer_H