phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerEndCall.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerEndCall.h	Tue Feb 02 01:11:09 2010 +0200
@@ -0,0 +1,135 @@
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CPhoneHandlerEndCall class.
+*
+*/
+
+
+#ifndef CPHONEHANDLERENDCALL_H
+#define CPHONEHANDLERENDCALL_H
+
+//  INCLUDES
+#include "PhoneHandlerCallBase.h"
+#include <RemConExtensionApi.h>
+
+// CONSTANTS
+
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+class CPhoneHandlerControl;
+
+// CLASS DECLARATION
+
+/**
+*  Handles end call and reject call key presses.
+*
+*  @lib PhoneCmdHandler
+*  @since S60 3.1
+*/
+NONSHARABLE_CLASS( CPhoneHandlerEndCall ) : public CPhoneHandlerCallBase
+							 				
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        static CPhoneHandlerEndCall* NewL( 
+        				CPhoneHandlerControl& aControl,
+        				TRemConExtCallHandlingApiOperationId aOperation
+        					= ERemConExtEndCall );
+        
+        /**
+        * Destructor.
+        */
+        virtual ~CPhoneHandlerEndCall();
+
+    public: // New functions
+    
+    public: // Functions from base classes
+
+        /**
+        * From MPhoneHandlerService. Starts processing service.
+        * @since S60 3.1
+        * @return void
+        */
+        void Process();
+        
+        /**
+        * From MPhoneHandlerService. Deletes service.
+        * @since S60 3.1
+        * @return void
+        */
+        void Delete();
+        
+        /**
+        * From MPhoneHandlerObserver. Notifies when asynchronous request has 
+        * been completed.
+        * @since S60 3.1
+        * @param aError request error code
+        * @return void
+        */
+        void RequestCompleted( const TInt aError );
+            
+    protected:  // New functions
+    
+    protected:  // Functions from base classes
+        
+    private:
+
+        /**
+        * C++ default constructor.
+        */
+        CPhoneHandlerEndCall( 
+        		CPhoneHandlerControl& aControl, 
+        		TRemConExtCallHandlingApiOperationId aOperation );
+        
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL();
+		
+    public:     // Data
+          
+    protected:  // Data
+      
+    private:    // Data
+                
+        // reference to control
+        CPhoneHandlerControl& iControl;
+        
+        // RemConExtensionApi command which initiates end call in BT case 
+        // is either ERemConExtEndCall or ERemConExtAnswerEnd.
+        // RemConExtensionApi command which initiates end call in wired case 
+        // is ERemConExtAnswerEnd.
+        // iOperation is used to give response to exact RemConExtensionApi
+        // command.
+        TRemConExtCallHandlingApiOperationId iOperation;
+        
+    public:     // Friend classes
+    
+    protected:  // Friend classes
+    
+    private:    // Friend classes
+    
+    };
+
+#endif      // CPHONEHANDLERENDCALL_H   
+            
+// End of File