--- a/ui/viewmanagement/statehandler/src/glxtnobserver.cpp Thu May 27 12:51:42 2010 +0300
+++ b/ui/viewmanagement/statehandler/src/glxtnobserver.cpp Fri Jun 11 13:38:23 2010 +0300
@@ -18,22 +18,27 @@
#include <glxtnobserver.h>
#include <e32property.h>
+#include "glxtracer.h"
+
const TUid KTAGDPSNotification = { 0x2001FD51 };
const TInt KForceBackgroundGeneration = 0x00000010;
const TInt KItemsleft = 0x00000008;
GlxTNObserver::GlxTNObserver() : mTNMonitor( NULL )
{
+ TRACER("GlxTNObserver::GlxTNObserver() ");
RProperty::Set( KTAGDPSNotification, KForceBackgroundGeneration, ETrue );
}
void GlxTNObserver::updateTNCount(int &count)
{
+ TRACER("GlxTNObserver::updateTNCount() ");
emit leftTNCount( count );
}
int GlxTNObserver::getTNLeftCount()
{
+ TRACER("GlxTNObserver::getTNLeftCount() ");
TInt leftVariable = 0;
RProperty::Get( KTAGDPSNotification, KItemsleft, leftVariable );
//To:Do error handling
@@ -42,10 +47,24 @@
void GlxTNObserver::startTNObserving()
{
+ TRACER("GlxTNObserver::startTNObserving() ");
mTNMonitor = CGlxTNMonitor::NewL( this );
}
+void GlxTNObserver::startTNMDaemon()
+{
+ TRACER("GlxTNObserver::startTNMDaemon() ");
+ RProperty::Set( KTAGDPSNotification, KForceBackgroundGeneration, ETrue );
+}
+
+void GlxTNObserver::stopTNMDaemon()
+{
+ TRACER("GlxTNObserver::stopTNMDaemon() ");
+ RProperty::Set( KTAGDPSNotification, KForceBackgroundGeneration, EFalse );
+}
+
GlxTNObserver::~GlxTNObserver()
{
+ TRACER("GlxTNObserver::~GlxTNObserver() ");
delete mTNMonitor;
}