ipsservices/ipssosplugin/src/ipsstateextension.cpp
changeset 44 c2d07d913565
equal deleted inserted replaced
43:99bcbff212ad 44:c2d07d913565
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *       Extension to monitor Activer folder change events
       
    16 *
       
    17 */
       
    18 #include "ipsstateextension.h"
       
    19 
       
    20 // ----------------------------------------------------------------------------
       
    21 // ----------------------------------------------------------------------------
       
    22 CIpsStateExtension* CIpsStateExtension::NewL(MStateObserverCallback& aCallback)
       
    23     {
       
    24     CIpsStateExtension* self = new(ELeave) CIpsStateExtension(aCallback);
       
    25     CleanupStack::PushL(self);
       
    26     self->ConstructL();
       
    27     CleanupStack::Pop();
       
    28     return self;
       
    29     }
       
    30 
       
    31 // ----------------------------------------------------------------------------
       
    32 // ----------------------------------------------------------------------------
       
    33 void CIpsStateExtension::SetStateDataProvider( MEmailMailboxState* aDataProvider )
       
    34     {
       
    35     iDataProvider = aDataProvider;
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // ----------------------------------------------------------------------------
       
    40 void CIpsStateExtension::NotifyActiveFolderChanged(
       
    41         const TFSMailMsgId& aActiveMailboxId,
       
    42         const TFSMailMsgId& aActiveFolderId)
       
    43     {
       
    44     iCallback.ActiveFolderChanged( aActiveMailboxId, aActiveFolderId );
       
    45     }
       
    46 
       
    47 // ----------------------------------------------------------------------------
       
    48 // ----------------------------------------------------------------------------
       
    49 CIpsStateExtension::CIpsStateExtension(MStateObserverCallback& aCallback):
       
    50         iCallback(aCallback)
       
    51     {
       
    52     
       
    53     }
       
    54 
       
    55 // ----------------------------------------------------------------------------
       
    56 // ----------------------------------------------------------------------------
       
    57 CIpsStateExtension::~CIpsStateExtension()
       
    58     {
       
    59     
       
    60     }
       
    61 
       
    62 // ----------------------------------------------------------------------------
       
    63 // ----------------------------------------------------------------------------
       
    64 void CIpsStateExtension::ConstructL()
       
    65     {
       
    66     
       
    67     }
       
    68 //EOF