--- a/connectionmonitoring/connmon/connectionmonitor/inc/CPsdFax.h Wed Oct 27 17:51:11 2010 +0300
+++ b/connectionmonitoring/connmon/connectionmonitor/inc/CPsdFax.h Wed Oct 27 18:01:02 2010 +0300
@@ -18,6 +18,7 @@
#ifndef __CPSDFAX_H
#define __CPSDFAX_H
+#include <e32base.h>
#include <etel.h>
#include <etelmm.h>
#include <etelpckt.h>
@@ -36,6 +37,9 @@
// max PSD connection number
const TInt KMaxPsdConnectionCount = 2;
+// Restore attach mode interval (3 sec)
+const TInt KRestoreAttachModeInterval = 3000000;
+
/**
* CPsdFax
@@ -178,6 +182,21 @@
*/
void DeleteConnections();
+ /**
+ * Timer callback of iRestoreAttachModeTimer
+ *
+ * @param aObject Object that triggered timer
+ * @since 5.2
+ */
+ static TInt RestoreAttachModeCb( TAny* aObject );
+
+ /**
+ * Restores attach mode
+ *
+ * @since 5.2
+ */
+ void RestoreAttachMode();
+
private:
private: // Data
@@ -198,6 +217,9 @@
// Data table for each connection
CPsdFaxConnectionData* iConnectionData[KMaxPsdConnectionCount];
+
+ // Timer to restore attach mode in case at+cgatt=0 given
+ CPeriodic* iRestoreAttachModeTimer;
};