phoneengine/loghandling/inc/cpeloghandlingcommand.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-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:  This file contains the header file of the CPELogHandlingCommand object
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPELOGHANDLINGCOMMAND_H
       
    20 #define CPELOGHANDLINGCOMMAND_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <pevirtualengine.h>
       
    25 #include <logwrap.h>
       
    26 
       
    27 // CONSTANTS
       
    28 // None.
       
    29 
       
    30 // MACROS
       
    31 // None.
       
    32 
       
    33 // DATA TYPES
       
    34 // None.
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 class CPELogHandling;
       
    40 class CLogClient;
       
    41 class CLogEvent;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46 *  Sends Supplementary string directly to the serving network
       
    47 *  
       
    48 *
       
    49 *  @lib callhandling.lib
       
    50 *  @since Series60_2.7
       
    51 */
       
    52 class CPELogHandlingCommand   
       
    53     : public CActive
       
    54     {
       
    55     public: //Constructors and descructor
       
    56         /**
       
    57         * C++ default constructor.
       
    58         */
       
    59         /*****************************************************
       
    60         *    Series 60 Customer / LOGENG
       
    61         *    Series 60  LOGENG API
       
    62         *****************************************************/        
       
    63         CPELogHandlingCommand( CPELogHandling& aOwner, CLogClient& aLogClient );
       
    64         
       
    65         /**
       
    66         * Destructor.
       
    67         */
       
    68         virtual ~CPELogHandlingCommand( );        
       
    69 
       
    70     public:    //New functions
       
    71         /**
       
    72         * This method offers phone's identity
       
    73         * @since Series60_2.7
       
    74         * @param aPhoneIdentity includes phone identity parameters.
       
    75         * @return None.
       
    76         */
       
    77         /*****************************************************
       
    78         *    Series 60 Customer / LOGENG
       
    79         *    Series 60  LOGENG API
       
    80         *****************************************************/                
       
    81         virtual TInt AddEvent( CLogEvent& aLogEvent );
       
    82 
       
    83         /**
       
    84         * This method asks phone identity parameters from the mmetel.
       
    85         * @since Series60_2.7
       
    86         * @param aMessage,The reply message to the phone application.
       
    87         * @return KErrNone or KErrInUse if CPELogHandlingCommand is active allready
       
    88         */
       
    89         /*****************************************************
       
    90         *    Series 60 Customer / LOGENG
       
    91         *    Series 60  LOGENG API
       
    92         *****************************************************/                
       
    93         virtual TInt ChangeEvent( const CLogEvent& aLogEvent );
       
    94         
       
    95     protected: // From CActive
       
    96         /**
       
    97         * Informs object that asyncronous request is ready.
       
    98         * @since Series60_4.0
       
    99         * @param None. 
       
   100         * @return None.
       
   101         */
       
   102         virtual void RunL();   
       
   103                       
       
   104         /**
       
   105         * Cancels asyncronous request(s).
       
   106         * @since Series60_4.0
       
   107         * @param None.    
       
   108         * @return None.
       
   109         */
       
   110         /*****************************************************
       
   111         *    Series 60 Customer / LOGENG
       
   112         *    Series 60  LOGENG API
       
   113         *****************************************************/                
       
   114         virtual void DoCancel();
       
   115         
       
   116         
       
   117     private:
       
   118         CPELogHandling& iOwner;
       
   119     
       
   120         // reference to log client
       
   121         /*****************************************************
       
   122         *    Series 60 Customer / LOGENG
       
   123         *    Series 60  LOGENG API
       
   124         *****************************************************/                
       
   125         CLogClient& iLogClient;  
       
   126         
       
   127         // reference to log database event.
       
   128         /*****************************************************
       
   129         *    Series 60 Customer / LOGENG
       
   130         *    Series 60  LOGENG API
       
   131         *****************************************************/                
       
   132         TLogId iLogId;       
       
   133               
       
   134     };
       
   135 
       
   136 #endif // CPELOGHANDLINGCOMMAND_H
       
   137 
       
   138 // End of File