telephonyserverplugins/common_tsy/commontsy/inc/mmfax/CMmFaxCompletion.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMMFAXCOMPLETION_H
       
    21 #define CMMFAXCOMPLETION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "et_tsy.h"
       
    25 #include "faxstd.h"
       
    26 #include "faxserv.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMmCallTsy;
       
    30 class CTelObject;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Internal Fax completion operations in MMTSY.
       
    36 */
       
    37 class CMmFaxCompletion : public MFaxCompletionBase, public CBase
       
    38     {
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         ~CMmFaxCompletion();
       
    45 
       
    46     	// New functions
       
    47         
       
    48         /**
       
    49          * Completes ongoing write/read operation.
       
    50          *          
       
    51          *
       
    52          * @param aError, error value
       
    53          */
       
    54         void CompleteOperation( TInt aError );
       
    55 
       
    56         /**
       
    57          * Configure completion object
       
    58          *          
       
    59          *
       
    60          * @param aTsyReqHandle, request handle 
       
    61          * @param aTelObject 
       
    62          */
       
    63         void Configure( const TTsyReqHandle aTsyReqHandle, 
       
    64             CTelObject* aTelObject);
       
    65         
       
    66         /**
       
    67          * Last ring of Cadence and Time.
       
    68          *          
       
    69          *
       
    70          * @param aCadence, Cadence
       
    71          * @param aTime, Time
       
    72          */
       
    73         virtual void GetCadenceAndTimeOfLastRing(
       
    74             TTimeIntervalMicroSeconds& aCadence, TTime& aTime );
       
    75         
       
    76         /**
       
    77          * Connection of Fax Reception completed.
       
    78          *          
       
    79          *
       
    80          * @param aError, error value
       
    81          */
       
    82         virtual void RxConnectComplete( TInt aError );
       
    83         
       
    84         /**
       
    85          * Fax Reception Data completed.
       
    86          *          
       
    87          *
       
    88          * @param aError, error value
       
    89          */
       
    90         virtual void RxFaxDataComplete( TInt aError );
       
    91         
       
    92         /**
       
    93          * Fax Reception's PostPage transfered.
       
    94          *          
       
    95          *
       
    96          * @param aError, error value
       
    97          */
       
    98         virtual void RxPostPageComplete( TInt aError );
       
    99 
       
   100         /**
       
   101          * Connection of Fax Transmission completed.
       
   102          *          
       
   103          *
       
   104          * @param aError, error value
       
   105          */
       
   106         virtual void TxConnectComplete( TInt aError );
       
   107 
       
   108         /**
       
   109          * Fax Tansmission Data completed.
       
   110          *          
       
   111          *
       
   112          * @param aError, error value
       
   113          */
       
   114         virtual void TxFaxDataComplete( TInt aError );
       
   115 
       
   116         /**
       
   117          * Fax Transmission's PostPage transfered.
       
   118          *          
       
   119          *
       
   120          * @param aError, error value
       
   121          */
       
   122         virtual void TxPostPageComplete( TInt aError );
       
   123        
       
   124 	private:
       
   125 		
       
   126 		/**
       
   127           * C++ default constructor.
       
   128           */
       
   129         CMmFaxCompletion();
       
   130         
       
   131         /**
       
   132           * Checks progress information chunk and fills 
       
   133           *           
       
   134           * iAnswerBack field
       
   135           *
       
   136           * @param aMmCall, ponter to Call object
       
   137           */
       
   138         void FillAnswerback( CMmCallTsy* aMmCall );
       
   139 		
       
   140     private:  //Data
       
   141 
       
   142         /**
       
   143          * Used for client-side synchronous requests
       
   144          */        
       
   145         TTsyReqHandle iTsyReqHandle;
       
   146 
       
   147         /**
       
   148          * TelObject.
       
   149          */                
       
   150         CTelObject* iTelObject;
       
   151     };
       
   152 
       
   153 #endif      // CMMFAXCOMPLETION_H 
       
   154             
       
   155 // End of File
       
   156