phoneengine/callhandling/inc/cpecallhandling.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 21 92ab7f8d0eab
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    52 class CPECallArrayOwner;
    52 class CPECallArrayOwner;
    53 class CPsetSAObserver;
    53 class CPsetSAObserver;
    54 class CCCECallParameters;
    54 class CCCECallParameters;
    55 class CPECCEObserver;
    55 class CPECCEObserver;
    56 class CPESystemCallState;
    56 class CPESystemCallState;
       
    57 class CRepository;
    57 
    58 
    58 // CLASS DECLARATION
    59 // CLASS DECLARATION
    59 
    60 
    60 /**
    61 /**
    61 * CPECallHandling Handles voice call related events from phone engine.
    62 * CPECallHandling Handles voice call related events from phone engine.
   281         * Terminate all connection request. 
   282         * Terminate all connection request. 
   282         */
   283         */
   283         IMPORT_C TInt TerminateAllConnections();
   284         IMPORT_C TInt TerminateAllConnections();
   284         
   285         
   285         /**
   286         /**
   286         * Asks phone identity parameters from the mmetel.
       
   287         * @param aMessage Reply message to the phone application.
       
   288         * @return Error (KErrNone or KErrNotFound).
       
   289         */
       
   290         IMPORT_C TInt UpdatePhoneIdentity( 
       
   291             MEngineMonitor::TPEMessagesFromPhoneEngine aMessage );
       
   292 
       
   293         /**
       
   294         * Sets active line
   287         * Sets active line
   295         */
   288         */
   296         IMPORT_C void SetActiveLine();
   289         IMPORT_C void SetActiveLine();
   297 
   290 
   298         /**
   291         /**
   376         * Returns call terminated error
   369         * Returns call terminated error
   377         * @since Series60_4.0
   370         * @since Series60_4.0
   378         * @return Return errorCode
   371         * @return Return errorCode
   379         */        
   372         */        
   380         IMPORT_C TInt CallTerminatedError( const TInt aCallId );
   373         IMPORT_C TInt CallTerminatedError( const TInt aCallId );
   381         
       
   382         /**
       
   383         * This method gets the lifetime of the MS. The lifetime information 
       
   384         * includes the manufacturing date of the MS and the total amount of airtime use.
       
   385         * @param aLifeTimeInfo Life time information
       
   386         * @return Get succeeded or not.
       
   387         */
       
   388         IMPORT_C TBool GetLifeTime( TDes8& aLifeTimeInfo );
       
   389         
   374         
   390         /**
   375         /**
   391         * Replace active call with waiting call. 
   376         * Replace active call with waiting call. 
   392         * @since Series60_5.0
   377         * @since Series60_5.0
   393         * @return Error (KErrNone is success).
   378         * @return Error (KErrNone is success).
   646          * Set call origin to datastore.
   631          * Set call origin to datastore.
   647          * @param aCallid.
   632          * @param aCallid.
   648          * @param aCall reference to call object
   633          * @param aCall reference to call object
   649          */
   634          */
   650         void SetCallOrigin( const TInt aCallId, const MCCECall& aCall ) const;
   635         void SetCallOrigin( const TInt aCallId, const MCCECall& aCall ) const;
       
   636         
       
   637         /**
       
   638          * Set COLP number to datastore if remote party number is 
       
   639          * different from dialled number.
       
   640          * @param aCallid.
       
   641          * @param aCall reference to call object
       
   642          * @return Updating Colp number was necessary.
       
   643          */
       
   644         TBool UpdateColpNumber( TInt aCallId, const MCCECall& aCall ) const;
   651 
   645 
   652     protected:
   646     protected:
   653         // Phone model instance which owns this object.
   647         // Phone model instance which owns this object.
   654         MPEPhoneModelInternal& iModel;
   648         MPEPhoneModelInternal& iModel;
   655         // Handle to converged call engine (CCE) interface
   649         // Handle to converged call engine (CCE) interface
   687          * CCE observer.
   681          * CCE observer.
   688          */
   682          */
   689         CPECCEObserver* iCCEObserver;
   683         CPECCEObserver* iCCEObserver;
   690         // System Call State
   684         // System Call State
   691         CPESystemCallState* iSystemCallState;
   685         CPESystemCallState* iSystemCallState;
       
   686         
       
   687         CRepository* iRepository;
   692     };
   688     };
   693 
   689 
   694 #endif    // CPECALLHANDLING_H
   690 #endif    // CPECALLHANDLING_H
   695             
   691             
   696 // End of File
   692 // End of File