email_pub/email_widget_api/tsrc/3rdpartyapitestplugin2/inc/t_testpluginimpl.h
branchRCL_3
changeset 8 e1b6206813b4
equal deleted inserted replaced
4:e7aa27f58ae1 8:e1b6206813b4
       
     1 /*
       
     2 * Copyright (c) 2009 - 2010 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: 3rd party api testplugin
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTPLUGINIMPL_H
       
    19 #define TESTPLUGINIMPL_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <emailobserverplugin.h>
       
    23 #include <memailmailboxdata.h>
       
    24 
       
    25 class MEmailObserverListener;
       
    26 class CEmailDataImpl;
       
    27 
       
    28 NONSHARABLE_CLASS( CEmailObserverPluginImpl ) : public EmailInterface::CEmailObserverPlugin
       
    29     {
       
    30     public:
       
    31         static EmailInterface::CEmailObserverPlugin* NewL( EmailInterface::MEmailObserverListener* aListener );
       
    32         virtual ~CEmailObserverPluginImpl();
       
    33         virtual EmailInterface::MEmailData& EmailDataL();
       
    34 
       
    35     private:
       
    36         CEmailObserverPluginImpl( EmailInterface::MEmailObserverListener* aListener );
       
    37         void ConstructL();
       
    38         void ReadInitialDatafromPubSubL();
       
    39 
       
    40     private:    // Data
       
    41         EmailInterface::MEmailObserverListener* iListener; // not owned
       
    42         CEmailDataImpl* iData;
       
    43     };
       
    44 
       
    45 #endif // TESTPLUGINIMPL_H