ncdengine/provider/storage/inc/ncdstorageowner.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_NCDSTORAGEOWNER_H
       
    20 #define M_NCDSTORAGEOWNER_H
       
    21 
       
    22 class RFs;
       
    23 class CFileMan;
       
    24 
       
    25 /**
       
    26  * Interface for storage owners
       
    27  * INTERNAL
       
    28  */
       
    29 class MNcdStorageOwner
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Generates the root path
       
    34      *
       
    35      * @param aParse Target
       
    36      */
       
    37     virtual void AppendRoot( TDes& aPath ) const = 0;
       
    38     
       
    39     /**
       
    40      * File session getter
       
    41      *
       
    42      * @return File session
       
    43      */
       
    44     virtual RFs& FileSession() = 0;
       
    45     
       
    46     
       
    47     /**
       
    48      * File manager getter
       
    49      *
       
    50      * @return File manager
       
    51      */
       
    52     virtual CFileMan& FileManager() = 0;
       
    53     
       
    54 protected:
       
    55 
       
    56     virtual ~MNcdStorageOwner()
       
    57         {
       
    58         }
       
    59     };
       
    60 
       
    61 
       
    62 #endif // M_NCDSTORAGEOWNER_H