phoneclientserver/phoneclient/Inc/Notifier/Notifier_Aiw/cphcltcomhandrequestmonitor.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002 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:  CPhCltComHandRequestMonitor observer getting notifications about 
       
    15 *                command handling requests from Phone Server.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CPHCLTCOMHANDREQUESTMONITOR_H
       
    20 #define CPHCLTCOMHANDREQUESTMONITOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <phclttypes.h> 
       
    25 
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class RPhCltServer;
       
    29 class CPhCltDialData;
       
    30 class MPhCltComHandRequestObserver;
       
    31 class CPhCltExtPhoneDialData;
       
    32 class RPhCltCallNotify;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CCallNotify observer getting notifications about call requests
       
    38 *  from Phone Server.
       
    39 *
       
    40 *  @lib phoneclient.lib
       
    41 *  @since 1.0
       
    42 */
       
    43 NONSHARABLE_CLASS( CPhCltComHandRequestMonitor ) : public CActive
       
    44     {
       
    45     public: // Constructors and destructors.
       
    46 
       
    47         
       
    48         static CPhCltComHandRequestMonitor* NewL(RPhCltCallNotify& aCltNotify);
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CPhCltComHandRequestMonitor();
       
    54         
       
    55     public: // New functions
       
    56 
       
    57         
       
    58         
       
    59         /**
       
    60         * Notifies when a Command handler request arrives.
       
    61         *
       
    62         * @param aStatus Status to be changed when command handler request
       
    63         *                has arrived.
       
    64         * @param aCommandArgs Command argument storage place. 
       
    65         *                     That is, packaged version of class 
       
    66         *                     TPhCltComHandCommandParameters.
       
    67         */
       
    68         void NotifyComHandCommand( 
       
    69             MPhCltComHandRequestObserver* , 
       
    70             TDes8& aCommandArgs );
       
    71 
       
    72     
       
    73         /**
       
    74         * Respond to client's command handler request.
       
    75         *
       
    76         * @param aResultCode Result of the response 
       
    77         *        (previous function execution).
       
    78         * @return KErrNone if respond succeeded, otherwise Symbian error code.
       
    79         */
       
    80         TInt RespondComHandClient( const TInt aResultCode );
       
    81 
       
    82     
       
    83     private:
       
    84     
       
    85         /*
       
    86         * Constructor.
       
    87         */
       
    88         CPhCltComHandRequestMonitor(RPhCltCallNotify& aCallNotify);
       
    89         
       
    90         
       
    91     private: // Functions from base classes
       
    92         
       
    93         /**
       
    94         * From CActive. 
       
    95         * Called when send request is completed.
       
    96         */
       
    97         void RunL();
       
    98         
       
    99         
       
   100         /**
       
   101         * From CActive. 
       
   102         * Called when active request is canceled.
       
   103         */
       
   104         void DoCancel();
       
   105         
       
   106     private:
       
   107         
       
   108         //RClass instance
       
   109         RPhCltCallNotify& iCallNotify;
       
   110                
       
   111 
       
   112         // Pointer to dial observer
       
   113         MPhCltComHandRequestObserver* iObserver;
       
   114     
       
   115     };
       
   116 
       
   117 
       
   118 #endif    // CPHCLTCOMHANDREQUESTMONITOR_H
       
   119 
       
   120 // End of File