contentstorage/casrv/casrvmgr/inc/casrvmanager.h
author hgs
Tue, 23 Mar 2010 23:55:55 +0200
changeset 88 7f0462e8c3da
parent 85 7feec50967db
child 80 397d00875918
permissions -rw-r--r--
201009
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
85
7feec50967db 201003_02
hgs
parents:
diff changeset
     1
/*
7feec50967db 201003_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
7feec50967db 201003_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
7feec50967db 201003_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
7feec50967db 201003_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
7feec50967db 201003_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
7feec50967db 201003_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
7feec50967db 201003_02
hgs
parents:
diff changeset
     8
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
7feec50967db 201003_02
hgs
parents:
diff changeset
    11
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    12
 * Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    13
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    14
 * Description: casrvmanager.h
7feec50967db 201003_02
hgs
parents:
diff changeset
    15
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    16
 */
7feec50967db 201003_02
hgs
parents:
diff changeset
    17
7feec50967db 201003_02
hgs
parents:
diff changeset
    18
#ifndef CA_SRV_MANAGER_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    19
#define CA_SRV_MANAGER_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    20
7feec50967db 201003_02
hgs
parents:
diff changeset
    21
// INCLUDES
7feec50967db 201003_02
hgs
parents:
diff changeset
    22
#include <e32std.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    23
#include <e32base.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    24
#include <e32hashtab.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    25
#include "casrvplugin.h"
7feec50967db 201003_02
hgs
parents:
diff changeset
    26
7feec50967db 201003_02
hgs
parents:
diff changeset
    27
class CCaSrvEngUtils;
7feec50967db 201003_02
hgs
parents:
diff changeset
    28
7feec50967db 201003_02
hgs
parents:
diff changeset
    29
/**
7feec50967db 201003_02
hgs
parents:
diff changeset
    30
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    31
 * @since S60 5.0
7feec50967db 201003_02
hgs
parents:
diff changeset
    32
 * @ingroup group_mmextensions
7feec50967db 201003_02
hgs
parents:
diff changeset
    33
 */
7feec50967db 201003_02
hgs
parents:
diff changeset
    34
NONSHARABLE_CLASS( CCaSrvManager ): public CBase
7feec50967db 201003_02
hgs
parents:
diff changeset
    35
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    36
public:
7feec50967db 201003_02
hgs
parents:
diff changeset
    37
    // Constructors and destructor
7feec50967db 201003_02
hgs
parents:
diff changeset
    38
7feec50967db 201003_02
hgs
parents:
diff changeset
    39
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    40
     * Standard C++ Destructor.
7feec50967db 201003_02
hgs
parents:
diff changeset
    41
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    42
    ~CCaSrvManager();
7feec50967db 201003_02
hgs
parents:
diff changeset
    43
7feec50967db 201003_02
hgs
parents:
diff changeset
    44
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    45
     * Two-phased constructor.
7feec50967db 201003_02
hgs
parents:
diff changeset
    46
     * @return Instance of the CCaSrvManager class.
7feec50967db 201003_02
hgs
parents:
diff changeset
    47
     * @param aCaStorageProxy storage.
7feec50967db 201003_02
hgs
parents:
diff changeset
    48
     * @param aUtils storage utils.
7feec50967db 201003_02
hgs
parents:
diff changeset
    49
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    50
    IMPORT_C static CCaSrvManager* NewL( CCaStorageProxy& aCaStorageProxy,
7feec50967db 201003_02
hgs
parents:
diff changeset
    51
            CCaSrvEngUtils* aUtils = NULL );
7feec50967db 201003_02
hgs
parents:
diff changeset
    52
7feec50967db 201003_02
hgs
parents:
diff changeset
    53
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    54
     * Two-phased constructor.
7feec50967db 201003_02
hgs
parents:
diff changeset
    55
     * @return Instance of the CCaSrvManager class.
7feec50967db 201003_02
hgs
parents:
diff changeset
    56
     * @param aCaStorageProxy storage.
7feec50967db 201003_02
hgs
parents:
diff changeset
    57
     * @param aUtils storage utils.
7feec50967db 201003_02
hgs
parents:
diff changeset
    58
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    59
    static CCaSrvManager* NewLC( CCaStorageProxy& aCaStorageProxy,
7feec50967db 201003_02
hgs
parents:
diff changeset
    60
            CCaSrvEngUtils* aUtils = NULL );
7feec50967db 201003_02
hgs
parents:
diff changeset
    61
7feec50967db 201003_02
hgs
parents:
diff changeset
    62
private:
7feec50967db 201003_02
hgs
parents:
diff changeset
    63
7feec50967db 201003_02
hgs
parents:
diff changeset
    64
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    65
     * Constructor for performing 1st stage construction.
7feec50967db 201003_02
hgs
parents:
diff changeset
    66
     * @param aCaStorageProxy Interface enabling to issues request to App UI.
7feec50967db 201003_02
hgs
parents:
diff changeset
    67
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    68
    CCaSrvManager();
7feec50967db 201003_02
hgs
parents:
diff changeset
    69
7feec50967db 201003_02
hgs
parents:
diff changeset
    70
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    71
     * EPOC default constructor for performing 2nd stage construction.
7feec50967db 201003_02
hgs
parents:
diff changeset
    72
     * @param aCaStorageProxy storage.
7feec50967db 201003_02
hgs
parents:
diff changeset
    73
     * @param aUtils storage utils.
7feec50967db 201003_02
hgs
parents:
diff changeset
    74
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    75
    void ConstructL( CCaStorageProxy& aCaStorageProxy,
7feec50967db 201003_02
hgs
parents:
diff changeset
    76
            CCaSrvEngUtils* aUtils = NULL );
7feec50967db 201003_02
hgs
parents:
diff changeset
    77
7feec50967db 201003_02
hgs
parents:
diff changeset
    78
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    79
     * Loads MultimediaMenu plugins implementations.
7feec50967db 201003_02
hgs
parents:
diff changeset
    80
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    81
    void LoadPluginsL();
7feec50967db 201003_02
hgs
parents:
diff changeset
    82
7feec50967db 201003_02
hgs
parents:
diff changeset
    83
private:
7feec50967db 201003_02
hgs
parents:
diff changeset
    84
7feec50967db 201003_02
hgs
parents:
diff changeset
    85
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    86
     * Pointer to plugin map.
7feec50967db 201003_02
hgs
parents:
diff changeset
    87
     * Own.
7feec50967db 201003_02
hgs
parents:
diff changeset
    88
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    89
    RHashMap<TInt32, CCaSrvPlugin*> iPluginMap;
7feec50967db 201003_02
hgs
parents:
diff changeset
    90
7feec50967db 201003_02
hgs
parents:
diff changeset
    91
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    92
     * Not Own.
7feec50967db 201003_02
hgs
parents:
diff changeset
    93
     * Reference to the Storage Proxy, Storage Utils.
7feec50967db 201003_02
hgs
parents:
diff changeset
    94
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    95
    TPluginParams* iPluginParams;
7feec50967db 201003_02
hgs
parents:
diff changeset
    96
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    97
7feec50967db 201003_02
hgs
parents:
diff changeset
    98
#endif // C_MM_EXTENSION_MANAGER_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    99
// End of file