os/mm/devsoundextensions/telephonyaudiorouting/Session/inc/TelephonyAudioRoutingRequest.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2006 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 "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:   Active object for each asynchronous request in RTelephonyAudioRoutingSession.
    15 *				 Notifies MTelephonyAudioObserver upon request completion.
    16 *
    17 */
    18 
    19 
    20 
    21 
    22 #ifndef TELEPHONYAUDIOROUTINGREQUEST_H
    23 #define TELEPHONYAUDIOROUTINGREQUEST_H
    24 
    25 #include <e32base.h>
    26 #include "TelephonyAudioRoutingSession.h"
    27 #include "TelephonyAudioRoutingClientServer.h"
    28 #include "TelephonyAudioRouting.h"
    29 
    30 
    31 // CLASS DECLARATION
    32 
    33 /**
    34 *  Implements active object for outstanding asynchronous request.
    35 *
    36 *  @lib TelephonyAudioRoutingSession.lib
    37 *  @since Series 60 3.1
    38 */
    39 class CTelephonyAudioRoutingRequest : public CActive
    40     {
    41     
    42     public:  // Constructors and destructor
    43 
    44         /**
    45         * Two-phased constructor.
    46         */
    47         static CTelephonyAudioRoutingRequest* NewL( RTelephonyAudioRoutingSession& aSession, MTelephonyAudioRoutingObserver& aObserver, CTelephonyAudioRouting& aAudioRouting, TTelAudRtngServRqst aRequest );
    48         
    49     
    50         /**
    51         * Destructor.
    52         */
    53         virtual ~CTelephonyAudioRoutingRequest();
    54 
    55     private:  // Functions from base classes
    56 
    57         /**
    58         * From CActive
    59         * Cancel outstanding request
    60         * @param none
    61         * @return void        
    62         */
    63 		void DoCancel();
    64 
    65         /**
    66         * From CActive
    67 		* Implementation of CActive::RunL. Called when server request has completed.
    68         * @param none
    69         * @return void		
    70 		**/
    71 		void RunL();
    72 
    73     private:
    74 
    75         /**
    76         * C++ default constructor.
    77         */
    78         CTelephonyAudioRoutingRequest( RTelephonyAudioRoutingSession& aSession, MTelephonyAudioRoutingObserver& aObserver, CTelephonyAudioRouting& aAudioRouting, TTelAudRtngServRqst aRequest );
    79         
    80       
    81         /**
    82         * By default Symbian 2nd phase constructor is private.
    83         */
    84         void ConstructL();
    85 
    86     private:    // Data
    87 
    88 		
    89 		RTelephonyAudioRoutingSession& iSession;
    90     	MTelephonyAudioRoutingObserver& iObserver;
    91 		CTelephonyAudioRouting& iAudioRouting;
    92     	TTelAudRtngServRqst iRequestOpcode;
    93     	
    94 	private:    // Friend classes
    95        friend class RTelephonyAudioRoutingSession;
    96 
    97     };
    98 
    99 #endif      // TELEPHONYAUDIOROUTINGREQUEST_H
   100 
   101 // End of File