omadrm/drmengine/dcfrepository/server/inc/SearchLeaf.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Server common implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSEARCHLEAF_H
       
    21 #define CSEARCHLEAF_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 // MACROS
       
    29 // DATA TYPES
       
    30 // FUNCTION PROTOTYPES
       
    31 // FORWARD DECLARATIONS
       
    32 class CDir;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 
       
    37 /**
       
    38 *  Server Session implementation.
       
    39 *  DCF Repository
       
    40 *
       
    41 *  @lib 
       
    42 *  @since Series 60 3.0 
       
    43 */
       
    44 class CSearchLeaf : public CBase
       
    45 	{
       
    46     public:  // Constructors and destructor
       
    47         
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CSearchLeaf* NewL( CSearchLeaf*& aRoot , const TDesC& aFolderName );
       
    52         static CSearchLeaf* NewLC( CSearchLeaf*& aRoot , const TDesC& aFolderName );      
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CSearchLeaf();	
       
    58 
       
    59 		const TDesC& FolderName();
       
    60 	
       
    61 		CSearchLeaf*& Root();
       
    62 		
       
    63 		RPointerArray<CSearchLeaf>& LeafList();
       
    64 
       
    65 		void SetLeafL( CDir*& aLeaf );
       
    66 
       
    67 		void RemoveLeaf( CSearchLeaf*& aLeaf );
       
    68 	
       
    69 	protected:
       
    70 
       
    71 	private:
       
    72        /**
       
    73         * C++ default constructor.
       
    74         */
       
    75         CSearchLeaf( CSearchLeaf*& aRoot );
       
    76 
       
    77         /**
       
    78         * By default Symbian 2nd phase constructor is private.
       
    79         */
       
    80         void ConstructL( const TDesC& aFolderName );
       
    81 
       
    82 
       
    83 	public:     // Data
       
    84     protected:  // Data
       
    85     private:    // Data
       
    86 		CSearchLeaf* iRoot;
       
    87 		RPointerArray<CSearchLeaf> iLeafList;
       
    88 		HBufC* iFolderName;
       
    89 	};
       
    90 
       
    91 
       
    92 #endif      // CSEARCHLEAF_H   
       
    93             
       
    94 // End of File