ipsservices/ipssosplugin/src/ipsstateextension.cpp
changeset 44 c2d07d913565
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ipsservices/ipssosplugin/src/ipsstateextension.cpp	Thu Jun 10 16:14:05 2010 +0300
@@ -0,0 +1,68 @@
+/*
+* Copyright (c) 2006 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: 
+*       Extension to monitor Activer folder change events
+*
+*/
+#include "ipsstateextension.h"
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+CIpsStateExtension* CIpsStateExtension::NewL(MStateObserverCallback& aCallback)
+    {
+    CIpsStateExtension* self = new(ELeave) CIpsStateExtension(aCallback);
+    CleanupStack::PushL(self);
+    self->ConstructL();
+    CleanupStack::Pop();
+    return self;
+    }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+void CIpsStateExtension::SetStateDataProvider( MEmailMailboxState* aDataProvider )
+    {
+    iDataProvider = aDataProvider;
+    }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+void CIpsStateExtension::NotifyActiveFolderChanged(
+        const TFSMailMsgId& aActiveMailboxId,
+        const TFSMailMsgId& aActiveFolderId)
+    {
+    iCallback.ActiveFolderChanged( aActiveMailboxId, aActiveFolderId );
+    }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+CIpsStateExtension::CIpsStateExtension(MStateObserverCallback& aCallback):
+        iCallback(aCallback)
+    {
+    
+    }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+CIpsStateExtension::~CIpsStateExtension()
+    {
+    
+    }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+void CIpsStateExtension::ConstructL()
+    {
+    
+    }
+//EOF