pimprotocols/pbap/inc/pbapfoldertree.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef PBAPFOLDERTREE_H
       
    17 #define PBAPFOLDERTREE_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include "pbaprequest.h"
       
    21 
       
    22 class CFolderBase;
       
    23 
       
    24 
       
    25 class CVirtualFolders : public CBase
       
    26 	{
       
    27 public:
       
    28 	static CVirtualFolders* NewLC();
       
    29 	~CVirtualFolders();
       
    30 
       
    31 	void PlaceFolderL(CFolderBase* aFolder);	// aFolder owned by tree
       
    32 	void AttachSubtree(CVirtualFolders* aSubtree);
       
    33 
       
    34 	CVirtualFolders* ParentFolder() const;	
       
    35 	CVirtualFolders* NavigateFolder(const TDesC& aFolderName);
       
    36 	CFolderBase& Folder() const;
       
    37 	
       
    38 private:
       
    39 	CVirtualFolders();
       
    40 	void ConstructL();
       
    41 	
       
    42 private:
       
    43 	CFolderBase* iItem;	// the actual object at this node in the tree
       
    44 	CVirtualFolders* iParentFolder;	// the tree that brought us here
       
    45 	TSglQue<CVirtualFolders> iSubtrees;
       
    46 	TSglQueLink iQueLink;
       
    47 	};
       
    48 
       
    49 #endif //PBAPFOLDERTREE_H