contentstorage/casrv/casrvmgr/inc/casrvmanager.h
changeset 60 f62f87b200ec
child 80 397d00875918
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: casrvmanager.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CA_SRV_MANAGER_H
       
    19 #define CA_SRV_MANAGER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <e32hashtab.h>
       
    25 #include "casrvplugin.h"
       
    26 
       
    27 class CCaSrvEngUtils;
       
    28 
       
    29 /**
       
    30  *
       
    31  * @since S60 5.0
       
    32  * @ingroup group_mmextensions
       
    33  */
       
    34 NONSHARABLE_CLASS( CCaSrvManager ): public CBase
       
    35     {
       
    36 public:
       
    37     // Constructors and destructor
       
    38 
       
    39     /**
       
    40      * Standard C++ Destructor.
       
    41      */
       
    42     ~CCaSrvManager();
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      * @return Instance of the CCaSrvManager class.
       
    47      * @param aCaStorageProxy storage.
       
    48      * @param aUtils storage utils.
       
    49      */
       
    50     IMPORT_C static CCaSrvManager* NewL( CCaStorageProxy& aCaStorageProxy,
       
    51             CCaSrvEngUtils* aUtils = NULL );
       
    52 
       
    53     /**
       
    54      * Two-phased constructor.
       
    55      * @return Instance of the CCaSrvManager class.
       
    56      * @param aCaStorageProxy storage.
       
    57      * @param aUtils storage utils.
       
    58      */
       
    59     static CCaSrvManager* NewLC( CCaStorageProxy& aCaStorageProxy,
       
    60             CCaSrvEngUtils* aUtils = NULL );
       
    61 
       
    62 private:
       
    63 
       
    64     /**
       
    65      * Constructor for performing 1st stage construction.
       
    66      * @param aCaStorageProxy Interface enabling to issues request to App UI.
       
    67      */
       
    68     CCaSrvManager();
       
    69 
       
    70     /**
       
    71      * EPOC default constructor for performing 2nd stage construction.
       
    72      * @param aCaStorageProxy storage.
       
    73      * @param aUtils storage utils.
       
    74      */
       
    75     void ConstructL( CCaStorageProxy& aCaStorageProxy,
       
    76             CCaSrvEngUtils* aUtils = NULL );
       
    77 
       
    78     /**
       
    79      * Loads MultimediaMenu plugins implementations.
       
    80      */
       
    81     void LoadPluginsL();
       
    82 
       
    83 private:
       
    84 
       
    85     /**
       
    86      * Pointer to plugin map.
       
    87      * Own.
       
    88      */
       
    89     RHashMap<TInt32, CCaSrvPlugin*> iPluginMap;
       
    90 
       
    91     /**
       
    92      * Not Own.
       
    93      * Reference to the Storage Proxy, Storage Utils.
       
    94      */
       
    95     TPluginParams* iPluginParams;
       
    96     };
       
    97 
       
    98 #endif // C_MM_EXTENSION_MANAGER_H
       
    99 // End of file