bluetoothengine/btmac/inc/btmonocmdhandler/BTMonoCdmaIncomingFlash.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 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 "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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTMONOCDMACALLMONITOR_H
       
    20 #define BTMONOCDMACALLMONITOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <etelmm.h>
       
    25 #include <etelcdma.h>
       
    26 #include "BTMonoActive.h"
       
    27 
       
    28 NONSHARABLE_CLASS(CBTMonoCdmaIncomingFlash) : public CBTMonoActive
       
    29 	{
       
    30 	public:	//Constructors and descructor
       
    31 		
       
    32 		/**
       
    33         * Two-phased constructor.
       
    34         */
       
    35 		static CBTMonoCdmaIncomingFlash* NewL(
       
    36             MBTMonoActiveObserver& aObserver, 
       
    37             CActive::TPriority aPriority, 
       
    38             TInt aServiceId,		
       
    39 		    RMobileLine& aLine,
       
    40 			const TName& aName );
       
    41 
       
    42 		/**
       
    43         * Two-phased constructor.
       
    44         */
       
    45 		static CBTMonoCdmaIncomingFlash* NewLC(
       
    46             MBTMonoActiveObserver& aObserver, 
       
    47             CActive::TPriority aPriority, 
       
    48             TInt aServiceId,		
       
    49 		    RMobileLine& aLine,
       
    50 			const TName& aName );
       
    51 
       
    52 		/**
       
    53         * Destructor.
       
    54         */
       
    55 		virtual ~CBTMonoCdmaIncomingFlash();
       
    56 
       
    57         void GoActive();
       
    58 
       
    59 	protected: // From CActive
       
    60 		/**
       
    61         * Cancels asyncronous request(s).
       
    62         * 
       
    63 		* @return None.
       
    64         */
       
    65         void DoCancel();
       
    66 
       
    67 		/**
       
    68         * Informs object that asyncronous request is ready.
       
    69         * 
       
    70 		* @return None.
       
    71         */
       
    72         void RunL();
       
    73         
       
    74         TInt RunError(TInt aErr);
       
    75         
       
    76 
       
    77     private:
       
    78 
       
    79         /**
       
    80 		* C++ default constructor can NOT contain any code, that might leave
       
    81         */
       
    82 		CBTMonoCdmaIncomingFlash(
       
    83             MBTMonoActiveObserver& aObserver, 
       
    84             CActive::TPriority aPriority, 
       
    85             TInt aServiceId,		
       
    86 		    RMobileLine& aLine,
       
    87 			const TName& aName );
       
    88 
       
    89         /**
       
    90         * By default Symbian OS constructor is private.
       
    91         */
       
    92         void ConstructL();
       
    93 	
       
    94     private:
       
    95 
       
    96 		// needed for opening RMobileCall
       
    97 		RMobileLine& iCdmaLine; // unowned
       
    98     
       
    99 		// handle to CDMA Phone
       
   100 		RCdmaMobileCall iCdmaCall; // owned
       
   101 		
       
   102 		// stores the call name 
       
   103 		TName iCallName; 
       
   104 		
       
   105 		// call waiting information package
       
   106 		RCdmaMobileCall::TMobileCallIncomingFlashMessageV1Pckg iFlashMessagePckg;		
       
   107 	}; 
       
   108 
       
   109 #endif  // BTMONOCDMACALLMONITOR_H
       
   110 
       
   111 // End of File