phoneclientserver/phoneclient/Inc/Notifier/Notifier_Aiw/cphcltdialrequestmonitor.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     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:  CPhCltDialRequestMonitor observer getting notifications about call requests
       
    15 *                from Phone Server.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CPHCLTDIALREQUESTMONITOR_H
       
    20 #define CPHCLTDIALREQUESTMONITOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <PhCltTypes.h>
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class RPhCltServer;
       
    28 class CPhCltDialData;
       
    29 class MPhCltDialRequestObserver;
       
    30 class CPhCltExtPhoneDialData;
       
    31 class MPhCltComHandRequestObserver;
       
    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( CPhCltDialRequestMonitor ): public CActive
       
    44     {
       
    45     public: // Constructors and destructors.
       
    46 
       
    47         
       
    48         static CPhCltDialRequestMonitor* NewL(RPhCltCallNotify& aCallNotify);
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CPhCltDialRequestMonitor();
       
    54         
       
    55     public: // New functions
       
    56 
       
    57     
       
    58         /**
       
    59         * Notify dial requests through given observer.
       
    60         * @param aObserver dial request observer
       
    61         */
       
    62         void NotifyDialRequest( 
       
    63 			MPhCltDialRequestObserver* aObserver );
       
    64 
       
    65         /**
       
    66         * Respond to client request to make a call
       
    67         *
       
    68         * @param aResultCode Result of the response.
       
    69         */
       
    70         TInt RespondClient( const TInt aResultCode );
       
    71         
       
    72     
       
    73     private:
       
    74     
       
    75         /*
       
    76         * Constructor.
       
    77         */
       
    78         CPhCltDialRequestMonitor(RPhCltCallNotify& aCallNotify);
       
    79         
       
    80         
       
    81     private: // Functions from base classes
       
    82         
       
    83         /**
       
    84         * From CActive. 
       
    85         * Called when send request is completed.
       
    86         */
       
    87         void RunL();
       
    88         
       
    89         /**
       
    90         * From CActive.
       
    91         * Called when RunL leaves.
       
    92         */        
       
    93         TInt RunError(TInt aError);
       
    94         
       
    95         /**
       
    96         * From CActive. 
       
    97         * Called when active request is canceled.
       
    98         */
       
    99         void DoCancel();
       
   100         
       
   101     private:
       
   102         
       
   103         //RClass instance
       
   104         RPhCltCallNotify& iCallNotify;
       
   105                
       
   106         //Used to get dial data length from server
       
   107         TInt iDialDataLength;
       
   108         
       
   109         //Package buffer for dial data length 
       
   110         TPckg< TInt > iDataLengthPckg;
       
   111 
       
   112 
       
   113         // Pointer to dial observer
       
   114         MPhCltDialRequestObserver* iObserver;
       
   115     
       
   116     };
       
   117 
       
   118 
       
   119 #endif    // CPhCLTDIALREQUESTMONITOR_H
       
   120 
       
   121 // End of File