cbsref/telephonyrefplugins/atltsy/atcommand/callcontrol/inc/unsolicitedcommandcallcontrolhandler.h
changeset 49 f50f4094acd7
equal deleted inserted replaced
48:14460bf2a402 49:f50f4094acd7
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // CUnsolicitedCommandCallControlHandler. The handler for handling the unsolicited command related to call control
       
    15 
       
    16 #ifndef UNSOLICITEDCOMMANDCALLCONTROLHANDLER_H_
       
    17 #define UNSOLICITEDCOMMANDCALLCONTROLHANDLER_H_
       
    18 
       
    19 //system include
       
    20 #include <e32base.h>
       
    21 //user include
       
    22 #include "atunsolicitedobserver.h"
       
    23 #include "callinformationquerycompletenotify.h"
       
    24 
       
    25 //class forward
       
    26 class CGlobalPhonemanager;
       
    27 class CCtsyDispatcherCallback;
       
    28 class CATClcc;
       
    29 
       
    30 class CUnsolicitedCommandCallControlHandler : public CBase, 
       
    31 											  public MLtsyUnsolicitedCommandObserver,
       
    32 											  public MCallInformationQueryCompleteNotify											  
       
    33 	{
       
    34 public:
       
    35 	/**
       
    36 	 * Factory function
       
    37 	 * 
       
    38 	 */
       
    39 	static CUnsolicitedCommandCallControlHandler* NewL(CGlobalPhonemanager& aGloblePhone,
       
    40 			                                           CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    41 	/**
       
    42 	 * Factory function
       
    43 	 * 
       
    44 	 */
       
    45 	static CUnsolicitedCommandCallControlHandler* NewLC(CGlobalPhonemanager& aGloblePhone,
       
    46 			                                            CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    47 	/**
       
    48 	 * Destructor
       
    49 	 * 
       
    50 	 */
       
    51 	virtual ~CUnsolicitedCommandCallControlHandler();
       
    52 
       
    53 	/**
       
    54 	 * From MLtsyUnsolicitedCommandObserver
       
    55 	 * 
       
    56 	 */
       
    57 	virtual void UnsolicitedCommandArriving(TInt aEvent, const TDesC8& aWindPkg);
       
    58 	
       
    59 	/**
       
    60 	 * From MCallInformationQueryCompleteNotify
       
    61 	 * 
       
    62 	 */
       
    63 	virtual void QueryCallInformationComplete(TInt aError);
       
    64 	
       
    65 protected:
       
    66 	/**
       
    67 	 * Constructor
       
    68 	 * 
       
    69 	 */
       
    70 	CUnsolicitedCommandCallControlHandler(CGlobalPhonemanager& aGloblePhone,
       
    71 			                              CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    72 	/**
       
    73 	 * 2nd constructor
       
    74 	 * 
       
    75 	 */
       
    76 	void ConstructL();
       
    77 	
       
    78 private:
       
    79 	/**
       
    80 	 * Handler sim remove event
       
    81 	 * 
       
    82 	 */
       
    83 	void HandleSimRemoveEvent();
       
    84 	
       
    85 	/**
       
    86 	 * Handle product init event
       
    87 	 * 
       
    88 	 */
       
    89 	void HandleProductInitEvent();
       
    90 	
       
    91 	/**
       
    92 	 * Handle network lost event
       
    93 	 * 
       
    94 	 */
       
    95 	void HandleNetworkLostEvent();
       
    96 	
       
    97 	/**
       
    98 	 * Handle call created event
       
    99 	 * 
       
   100 	 */
       
   101 	void HandleCallCreatedEvent(const TDesC8& aWindPkg);
       
   102 	
       
   103 	/**
       
   104 	 * Handle call release event
       
   105 	 * 
       
   106 	 */
       
   107 	void HandleCallReleasedEvent(const TDesC8& aWindPkg);
       
   108 
       
   109 private:
       
   110 	/**
       
   111 	 * Phone manager
       
   112 	 * 
       
   113 	 */
       
   114 	CGlobalPhonemanager& iGlobalPhone;
       
   115 	
       
   116 	/**
       
   117 	 * Call back reference
       
   118 	 * 
       
   119 	 */
       
   120 	CCtsyDispatcherCallback& iCtsyDispatcherCallback;
       
   121 	
       
   122 	/**
       
   123 	 * The at command for querying the call infomation
       
   124 	 * 
       
   125 	 */
       
   126 	CATClcc* iAtClcc;
       
   127 	};
       
   128 
       
   129 #endif /*UNSOLICITEDCOMMANDCALLCONTROLHANDLER_H_*/