--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneclientserver/phoneserver/Inc/Ussd/CPhSrvUssdNotifyNWRelease.h Tue Feb 02 01:11:09 2010 +0200
@@ -0,0 +1,126 @@
+/*
+* 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