remoteconn_plat/locod_bearer_plugin_api/inc/locodbearerplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:03:15 +0300
branchRCL_3
changeset 19 0aa8cc770c8a
permissions -rw-r--r--
Revision: 201032 Kit: 201035

/*
* 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:  This is the LCD Bearer Plugin base class declaration.
*
*/


#ifndef C_LOCODBEARERPLUGIN_H
#define C_LOCODBEARERPLUGIN_H

#include <e32base.h>
#include "locodbearerpluginparams.h"

/**
 *  Bearer Plugin base class
 *
 *  This is the base class from which bearer plugins inherit.
 *
 * See locodplugin.hrh for the resource registration definitions.
 * 
 *  @lib euser.lib
 *  @since S60 v3.2
 */
class CLocodBearerPlugin : public CBase
    {
public:

    static CLocodBearerPlugin* NewL(TLocodBearerPluginParams& aParams);

    virtual ~CLocodBearerPlugin();

    /**
     * Gets the implementation uid of this plugin
     *
     * @since S60 v3.2
     * @return The implementation uid
     */
    TUid ImplementationUid() const;
    
protected:

    CLocodBearerPlugin(TLocodBearerPluginParams& aParams);

    /**
     * Gets the observer interface object associated with this plugin
     *
     * @since S60 v3.2
     * @return The observer object
     */
    MLocodBearerPluginObserver& Observer() const;

private: // data

    /**
     * UID set by ECOM when the instance is created.  Used when the instance
     * is destroyed.
     */
    TUid iInstanceUid;

    /**
     * Implementation UID of the concrete instance.
     */
    TUid iImplementationUid;

    /**
     * Holds the observer object which will be notified when the operations
     * complete
     * Not own.
     */
    MLocodBearerPluginObserver& iObserver;

    };

#include "locodbearerplugin.inl"

#endif // C_LOCODBEARERPLUGIN_H