localconnectivityservice/locod/commoninc/locodbearerplugin.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     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:  This is the LCD Bearer Plugin base class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_LOCODBEARERPLUGIN_H
       
    20 #define C_LOCODBEARERPLUGIN_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "locodbearerpluginparams.h"
       
    24 
       
    25 /**
       
    26  *  Bearer Plugin base class
       
    27  *
       
    28  *  This is the base class from which bearer plugins inherit.
       
    29  *
       
    30  * See locodplugin.hrh for the resource registration definitions.
       
    31  * 
       
    32  *  @lib euser.lib
       
    33  *  @since S60 v3.2
       
    34  */
       
    35 class CLocodBearerPlugin : public CBase
       
    36     {
       
    37 public:
       
    38 
       
    39     static CLocodBearerPlugin* NewL(TLocodBearerPluginParams& aParams);
       
    40 
       
    41     virtual ~CLocodBearerPlugin();
       
    42 
       
    43     /**
       
    44      * Gets the implementation uid of this plugin
       
    45      *
       
    46      * @since S60 v3.2
       
    47      * @return The implementation uid
       
    48      */
       
    49     TUid ImplementationUid() const;
       
    50     
       
    51 protected:
       
    52 
       
    53     CLocodBearerPlugin(TLocodBearerPluginParams& aParams);
       
    54 
       
    55     /**
       
    56      * Gets the observer interface object associated with this plugin
       
    57      *
       
    58      * @since S60 v3.2
       
    59      * @return The observer object
       
    60      */
       
    61     MLocodBearerPluginObserver& Observer() const;
       
    62 
       
    63 private: // data
       
    64 
       
    65     /**
       
    66      * UID set by ECOM when the instance is created.  Used when the instance
       
    67      * is destroyed.
       
    68      */
       
    69     TUid iInstanceUid;
       
    70 
       
    71     /**
       
    72      * Implementation UID of the concrete instance.
       
    73      */
       
    74     TUid iImplementationUid;
       
    75 
       
    76     /**
       
    77      * Holds the observer object which will be notified when the operations
       
    78      * complete
       
    79      * Not own.
       
    80      */
       
    81     MLocodBearerPluginObserver& iObserver;
       
    82 
       
    83     };
       
    84 
       
    85 #include "locodbearerplugin.inl"
       
    86 
       
    87 #endif // C_LOCODBEARERPLUGIN_H