phoneclientserver/phoneserver/Inc/Ussd/CPhSrvUssdNotifyNWRelease.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:15:03 +0100
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Get network message.
*
*/


#ifndef CPHSRVUSSDNOTIFYNWRELEASE_H
#define CPHSRVUSSDNOTIFYNWRELEASE_H


// INCLUDES
#include <e32base.h>
#include <etelmm.h>            // ETel


// FORWARD DECLARATIONS
class MPhSrvUssdNetworkObserver;


// CLASS DECLARATION

/**
*  Get network message.
*
*  @since 1.0
*/
class CPhSrvUssdNotifyNWRelease : public CActive
    {
    public:
        
        /**
        * C++ constructor.
        *
        * @param aObserver Observer for receive actions.
        * @param aUssdMessaging The actual sending class.
        */
        /*****************************************************
        *   Series 60 Customer / ETel
        *   Series 60  ETel API
        *****************************************************/
        CPhSrvUssdNotifyNWRelease( 
            MPhSrvUssdNetworkObserver& aObserver,
            RMobileUssdMessaging& aUssdMessaging );

        /**
        * Destructor.
        */
        ~CPhSrvUssdNotifyNWRelease();
        
        /**
        * Symbian OS second phase constructor.
        */
        void ConstructL();


    public:  // New functions
        
        /**
        *  Notifies a client of a MT USSD release message to the mobile device
        *
        * @return errorcode
        */
       TInt NotifyNetworkRelease(); 


    private:  // Functions from base classes
        
        /**
        * From CActive. 
        * Called when Ussd message is received.
        */
        void RunL();
        
        /**
        * From CActive. 
        * Called when receive is cancelled.
        */
        void DoCancel();
        
        /**
        * From CActive. 
        * Called when RunL leaves.
        */
        TInt RunError( TInt aError );


    private:    // Data
        
        // If this is true, receiving starts automatically.
        TBool iAutoReceive;
        
        // The observer for actions.
        MPhSrvUssdNetworkObserver& iObserver;

        // The actual sending class.
        /*****************************************************
        *   Series 60 Customer / ETel
        *   Series 60  ETel API
        *****************************************************/
        RMobileUssdMessaging& iUssdMessaging;

        // The USSD message data.
        
         RMobilePhone::TMobilePhoneSendSSRequestV3 iReturnResult;
        
         RMobilePhone::TMobilePhoneSendSSRequestV3Pckg iReturnResultPckg;
        
   
    };

#endif // CPHSRVUSSDNOTIFYNWRELEASE_H


// End of File