harvester/common/inc/processoriginmapperinterface.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Interface for mds item origin mappers.*
       
    15 */
       
    16 
       
    17 #ifndef PROCESSORIGINMAPPERINTERFACE_H
       
    18 #define PROCESSORIGINMAPPERINTERFACE_H
       
    19 
       
    20 /**
       
    21  * Interface for component that maps mds origin values
       
    22  * based on process id that created the file.
       
    23  */
       
    24 class MProcessOriginMapperInterface
       
    25     {
       
    26     public:
       
    27     
       
    28         /**
       
    29          * Add a process to the list.
       
    30          * @param aProcessUid  Uid of the process to add.
       
    31          * @param aOrigin      Origin to which this process will mapped to.
       
    32          */
       
    33         virtual void RegisterProcessL( const TUid& aProcessId,
       
    34                                const TOrigin& aOrigin ) = 0;
       
    35         
       
    36         /**
       
    37          * Remove a process from the list.
       
    38          * @param aProcessId  Uid of the process to remove.
       
    39          */
       
    40         virtual void UnregisterProcessL( const TUid& aProcessId ) = 0;
       
    41     };
       
    42 
       
    43 #endif // PROCESSORIGINMAPPERINTERFACE_H