--- a/idlefw/plugins/wrtdataplugin/src/wrtdataplugin.cpp Wed Mar 31 22:04:35 2010 +0300
+++ b/idlefw/plugins/wrtdataplugin/src/wrtdataplugin.cpp Wed Apr 14 16:16:44 2010 +0300
@@ -148,7 +148,7 @@
if( aReason == EPluginShutdown ||
aReason == ESystemShutdown )
{
- TRAP_IGNORE(iData->DeActivateL());
+ TRAP_IGNORE(iData->NotifyPublisherL( KDeActive ));
}
}
@@ -163,7 +163,7 @@
{
iPluginState = EResume;
- TRAP_IGNORE( iData->ResumeL() );
+ TRAP_IGNORE( iData->NotifyPublisherL( KResume ));
}
}
@@ -178,7 +178,7 @@
{
iPluginState = ESuspend;
- TRAP_IGNORE ( iData->SuspendL() );
+ TRAP_IGNORE ( iData->NotifyPublisherL( KSuspend ));
}
}
@@ -189,12 +189,8 @@
//
void CWrtDataPlugin::SetOnline()
{
- if ( iNetworkStatus != EOnline )
- {
- iNetworkStatus = EOnline;
-
- TRAP_IGNORE( iData->OnLineL() );
- }
+ iNetworkStatus = EOnline;
+ TRAP_IGNORE( iData->NotifyPublisherL( KOnLine ));
}
// ----------------------------------------------------------------------------
@@ -204,12 +200,8 @@
//
void CWrtDataPlugin::SetOffline()
{
- if ( iNetworkStatus != EOffline )
- {
- iNetworkStatus = EOffline;
-
- TRAP_IGNORE( iData->OffLineL() );
- }
+ iNetworkStatus = EOffline;
+ TRAP_IGNORE( iData->NotifyPublisherL( KOffLine ));
}
// ----------------------------------------------------------------------------
@@ -316,7 +308,7 @@
iData->RegisterL();
// Activate the publisher
- iData->ActivateL();
+ iData->NotifyPublisherL( KActive );
}
settingItemsArr.Reset();
@@ -328,6 +320,19 @@
}
// ----------------------------------------------------------------------------
+// CWrtDataPlugin::SetProperty
+//
+// ----------------------------------------------------------------------------
+//
+void CWrtDataPlugin::SetProperty( TProperty aProperty, TAny* aAny )
+ {
+ if (aProperty == ECpsCmdBuffer )
+ {
+ iData->SetCommandBuffer( aAny, PublisherInfo().Namespace() );
+ }
+ }
+
+// ----------------------------------------------------------------------------
// CWrtDataPlugin::GetProperty
//
// ----------------------------------------------------------------------------