browserui/browser/Launcher2/inc/LauncherReceiveHandler.h
branchRCL_3
changeset 65 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
64:6385c4c93049 65:8e6fa1719340
       
     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:  Header file for CBrowserAppUi
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LAUNCHERRECEIVEHANDLER_H__
       
    21 #define __LAUNCHERRECEIVEHANDLER_H__
       
    22 
       
    23 // INCLUDE FILES 
       
    24 #include <e32base.h>
       
    25 #include "Launcherclientservice.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class CLauncherReceiveHandler : public CActive
       
    29 {
       
    30 public:
       
    31 	/**
       
    32 	* Default constructor.
       
    33     * @param aHandler Notify events of server exit, and server asyncronous data handling.
       
    34     * @param aSession Session of the RLauncherClientService
       
    35 	*/
       
    36     CLauncherReceiveHandler( MLaunchedServerObserver* aHandler, RLauncherClientService& aSession );
       
    37 
       
    38 	/**
       
    39 	* Destroy the object and release all memory objects.
       
    40 	*/
       
    41     ~CLauncherReceiveHandler();
       
    42 
       
    43 	/**
       
    44 	* Create a CLauncherReceiveHandler object.
       
    45     * @param aHandler Notify events of server exit, and server asyncronous data handling.
       
    46     * @param aSession Session of the RLauncherClientService
       
    47 	* @return A pointer to the created instance of CLauncherReceiveHandler
       
    48 	*/
       
    49     static CLauncherReceiveHandler* NewL( MLaunchedServerObserver* aHandler, RLauncherClientService& aSession );
       
    50 
       
    51 	/**
       
    52 	* Create a CLauncherReceiveHandler object
       
    53     * @param aHandler Notify events of server exit, and server asyncronous data handling.
       
    54     * @param aSession Session of the RLauncherClientService
       
    55 	* @return A pointer to the created instance of CLauncherReceiveHandler
       
    56 	*/
       
    57     static CLauncherReceiveHandler* NewLC( MLaunchedServerObserver* aHandler, RLauncherClientService& aSession );
       
    58 
       
    59 	/**
       
    60 	* Second phase constructor.
       
    61 	*/
       
    62     void ConstructL();
       
    63 
       
    64 	/**
       
    65 	* Starts listening of the server appliacion, so the client can be notified
       
    66 	* when the server application sends data.
       
    67 	*/
       
    68     void StartListen();
       
    69             
       
    70 protected: // from CActive
       
    71 	/**
       
    72 	* Cancel any outstanding requests
       
    73 	*/
       
    74     void DoCancel();
       
    75 
       
    76 	/**
       
    77 	* Respond to an event
       
    78 	*/
       
    79     void RunL();
       
    80 
       
    81 private:
       
    82 	/**
       
    83 	* Observes server application events.
       
    84 	*/
       
    85 	MLaunchedServerObserver* iServerObserver; // "uses-a"
       
    86 	
       
    87 	/**
       
    88 	* Reference to the current session.
       
    89 	*/	
       
    90 	RLauncherClientService& iSession;         // "uses-a"
       
    91 };
       
    92 
       
    93 #endif // __LAUNCHERReceiveHANDLER_H__
       
    94 
       
    95 // End of File