pimprotocols/pbap/inc/pbapfoldernode.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 PBAPFOLDERNODE_H
       
    17 #define PBAPFOLDERNODE_H
       
    18 
       
    19 #include "pbapfolderbase.h"
       
    20 #include "pbaprequest.h"
       
    21 #include "pbapoperation.h"
       
    22 
       
    23 //forward declarations
       
    24 class MVirtualFolderClient;
       
    25 class CPbapAppHeader;
       
    26 
       
    27 
       
    28 /**
       
    29  Abstract base class representing all the phonebook folders - pb,ich,och,mch,cch
       
    30  a further derived class groups the commonality of the "?ch" nodes
       
    31 */
       
    32 class CFolderNode : public CFolderBase
       
    33 	{
       
    34 public:
       
    35 	~CFolderNode();
       
    36 	
       
    37 	// from CFolderBase
       
    38 	virtual TInt Get(const TDesC& aObjectName, CPbapAppHeader* aGetData);
       
    39 		
       
    40 protected:
       
    41 	CFolderNode(MVirtualFolderClient& aClient, const TDesC& aFolderName);
       
    42 	
       
    43 protected:	
       
    44 	virtual TInt DoGetItem(TInt aHandle) =0;
       
    45 	virtual TInt DoGetListing() =0;
       
    46 	virtual TInt DoGetCount() =0;
       
    47 	virtual TInt DoGetFolder() =0;
       
    48 	
       
    49 protected:
       
    50 	CPbapAppHeader* iAppHeader;
       
    51 	};
       
    52 
       
    53 #endif //PBAPFOLDERNODE_H