os/mm/devsoundextensions/telephonyaudiorouting/Session/inc/TelephonyAudioRoutingRequest.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsoundextensions/telephonyaudiorouting/Session/inc/TelephonyAudioRoutingRequest.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,101 @@
1.4 +/*
1.5 +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: Active object for each asynchronous request in RTelephonyAudioRoutingSession.
1.18 +* Notifies MTelephonyAudioObserver upon request completion.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +#ifndef TELEPHONYAUDIOROUTINGREQUEST_H
1.26 +#define TELEPHONYAUDIOROUTINGREQUEST_H
1.27 +
1.28 +#include <e32base.h>
1.29 +#include "TelephonyAudioRoutingSession.h"
1.30 +#include "TelephonyAudioRoutingClientServer.h"
1.31 +#include "TelephonyAudioRouting.h"
1.32 +
1.33 +
1.34 +// CLASS DECLARATION
1.35 +
1.36 +/**
1.37 +* Implements active object for outstanding asynchronous request.
1.38 +*
1.39 +* @lib TelephonyAudioRoutingSession.lib
1.40 +* @since Series 60 3.1
1.41 +*/
1.42 +class CTelephonyAudioRoutingRequest : public CActive
1.43 + {
1.44 +
1.45 + public: // Constructors and destructor
1.46 +
1.47 + /**
1.48 + * Two-phased constructor.
1.49 + */
1.50 + static CTelephonyAudioRoutingRequest* NewL( RTelephonyAudioRoutingSession& aSession, MTelephonyAudioRoutingObserver& aObserver, CTelephonyAudioRouting& aAudioRouting, TTelAudRtngServRqst aRequest );
1.51 +
1.52 +
1.53 + /**
1.54 + * Destructor.
1.55 + */
1.56 + virtual ~CTelephonyAudioRoutingRequest();
1.57 +
1.58 + private: // Functions from base classes
1.59 +
1.60 + /**
1.61 + * From CActive
1.62 + * Cancel outstanding request
1.63 + * @param none
1.64 + * @return void
1.65 + */
1.66 + void DoCancel();
1.67 +
1.68 + /**
1.69 + * From CActive
1.70 + * Implementation of CActive::RunL. Called when server request has completed.
1.71 + * @param none
1.72 + * @return void
1.73 + **/
1.74 + void RunL();
1.75 +
1.76 + private:
1.77 +
1.78 + /**
1.79 + * C++ default constructor.
1.80 + */
1.81 + CTelephonyAudioRoutingRequest( RTelephonyAudioRoutingSession& aSession, MTelephonyAudioRoutingObserver& aObserver, CTelephonyAudioRouting& aAudioRouting, TTelAudRtngServRqst aRequest );
1.82 +
1.83 +
1.84 + /**
1.85 + * By default Symbian 2nd phase constructor is private.
1.86 + */
1.87 + void ConstructL();
1.88 +
1.89 + private: // Data
1.90 +
1.91 +
1.92 + RTelephonyAudioRoutingSession& iSession;
1.93 + MTelephonyAudioRoutingObserver& iObserver;
1.94 + CTelephonyAudioRouting& iAudioRouting;
1.95 + TTelAudRtngServRqst iRequestOpcode;
1.96 +
1.97 + private: // Friend classes
1.98 + friend class RTelephonyAudioRoutingSession;
1.99 +
1.100 + };
1.101 +
1.102 +#endif // TELEPHONYAUDIOROUTINGREQUEST_H
1.103 +
1.104 +// End of File