--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bearermanagement/mpm/inc/mpmdtmwatcher.h Thu Dec 17 08:55:21 2009 +0200
@@ -0,0 +1,107 @@
+/*
+* Copyright (c) 2005-2007 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: MPM Dual Transfer Mode watcher
+*
+*/
+
+/**
+@file mpmdtmwatcher.h
+Mobility Policy Manager Dual Transfer Mode watcher class definitions.
+*/
+
+#ifndef MPMDTMWATCHER_H
+#define MPMDTMWATCHER_H
+
+// INCLUDES
+#include <etelpckt.h>
+
+// FORWARD DECLARATIONS
+class CMPMServer;
+
+// CLASS DECLARATION
+/**
+* Mobility Policy Manager Dual Transfer Mode watcher.
+* @lib MPMServer.exe
+* @since 3.1
+*/
+class CMPMDtmWatcher : public CActive
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ *
+ * @return An initialized instance of this class.
+ */
+ static CMPMDtmWatcher* NewL( RPacketService& aPacketService );
+
+ /**
+ * Destructor.
+ */
+ ~CMPMDtmWatcher();
+
+ public: // New methods
+
+ /**
+ * Checks if phone supports Dual Transfer Mode.
+ * @since 3.1
+ * @return ETrue phone supports DTM, otherwise EFalse.
+ */
+ TBool IsInDualMode() const;
+
+ protected: // Functions from base classes
+
+ /**
+ * From CActive. Cancels request.
+ * @since 3.1
+ */
+ void DoCancel();
+
+ /**
+ * From CActive. Run when request completes.
+ * @since 3.1
+ */
+ void RunL();
+
+ private: // New methods
+
+ /**
+ * Constructor.
+ */
+ CMPMDtmWatcher( RPacketService& aPacketService );
+
+ /**
+ * C++ default constructor. Not implemented.
+ */
+ CMPMDtmWatcher();
+
+ /**
+ * 2nd phase constructor.
+ */
+ void ConstructL();
+
+ /**
+ * Writes the packet class to log.
+ * @since 3.1
+ */
+ void LogPacketClass() const;
+
+ private: // Data
+
+ RPacketService& iPacketService;
+ RPacketService::TMSClass iMsClass;
+ RPacketService::TMSClass iMaxMsClass;
+ };
+
+#endif // MPMDTMWATCHER_H