contentstorage/casrv/casrvmgr/inc/casrvplugin.h
changeset 60 f62f87b200ec
child 102 8b8b34fa9751
equal deleted inserted replaced
4:1a2a00e78665 60:f62f87b200ec
       
     1 /*
       
     2  * Copyright (c) 2009 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: casrvplugin.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CA_SRV_PLUGIN_H_
       
    19 #define CA_SRV_PLUGIN_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ecom/ecom.h>
       
    23 #include "casrvplugindef.h"
       
    24 
       
    25 class CCaStorageProxy;
       
    26 class CCaSrvEngUtils;
       
    27 
       
    28 struct TPluginParams
       
    29     {
       
    30     CCaStorageProxy* storageProxy;
       
    31     CCaSrvEngUtils* engUtils;
       
    32     };
       
    33 
       
    34 /**
       
    35  * CaSrvPlugin is a class representing ECom plugin.
       
    36  * Class has virtual function responsible for executing
       
    37  * command. It can also returns array of all implementations.
       
    38  * Class is deriving by all ECom plugin implementations.
       
    39  *
       
    40  * @since S60 5.0
       
    41  * @ingroup
       
    42  */
       
    43 NONSHARABLE_CLASS( CCaSrvPlugin ): public CBase
       
    44     {
       
    45 public:
       
    46     /**
       
    47      * Instantiates an object of this type.
       
    48      * @param aUid ECom plugin's UID.
       
    49      * @param aPluginParam The plugin's parameters.
       
    50      * @return Instance of the CaSrvPlugin class.
       
    51      */
       
    52     static CCaSrvPlugin* NewL( TUid aUid, TPluginParams* aPluginParam );
       
    53 
       
    54     /**
       
    55      * Virtual C++ Destructor.
       
    56      */
       
    57     virtual ~CCaSrvPlugin();
       
    58 
       
    59     /**
       
    60      * Request a list of all available implementations which
       
    61      * satisfy this given interface.
       
    62      * @param aImplInfoArray ECom plugin implementations array.
       
    63      */
       
    64     static void ListAllImplementationsL( RImplInfoPtrArray& aImplInfoArray );
       
    65 
       
    66 protected:
       
    67     /**
       
    68      * Default constructor.
       
    69      */
       
    70     inline CCaSrvPlugin();
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * Unique instance identifier key.
       
    76      */
       
    77     TUid iDtor_ID_Key;
       
    78     };
       
    79 
       
    80 #include "casrvplugin.inl"
       
    81 
       
    82 #endif /* CA_SRV_PLUGIN_H_ */
       
    83 
       
    84 // End of file