ncdengine/provider/client/inc/ncdnodeseenfolderproxy.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 26 8b7f4e561641
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Contains CNcdNodeSeenFolderProxy
*
*/


#ifndef C_NCDNODESEENFOLDERPROXY_H
#define C_NCDNODESEENFOLDERPROXY_H

#include "ncdinterfacebaseproxy.h"
#include "ncdnodeseenfolder.h"

class CNcdNodeFolderProxy;

/**
 * Implementation of MNcdNodeSeenFolder interface.
 *
 * @see MNcdNodeSeenFolder
 * @since S60 v3.2
 */
class CNcdNodeSeenFolderProxy : public CNcdInterfaceBaseProxy,
                                public MNcdNodeSeenFolder
    {
public:
    static CNcdNodeSeenFolderProxy* NewL(
        MCatalogsClientServer& aSession,
        TInt aHandle,
        CNcdNodeFolderProxy& aNode );

    static CNcdNodeSeenFolderProxy* NewLC(
        MCatalogsClientServer& aSession,
        TInt aHandle,
        CNcdNodeFolderProxy& aNode );
                                        
    ~CNcdNodeSeenFolderProxy();
    
    void InternalizeL();
    
public: // From MNcdNodeSeenFolder

    /**
     * @see MNcdNodeSeenFolder
     */
    virtual void SetContentsSeenL();
        
    /**
     * @see MNcdNodeSeenFolder
     */
    virtual TInt NewCountL( TInt aLevels ) const;
    
    /**
     * @see MNcdNodeSeenFolder
     */
    virtual RCatalogsArray<MNcdNode> NewNodesL( TInt aLevels ) const;
    
protected:
    CNcdNodeSeenFolderProxy(
        MCatalogsClientServer& aSession,
        TInt aHandle,
        CNcdNodeFolderProxy& aNode );

    void ConstructL();          
    
private:
    // The parent folder.
    CNcdNodeFolderProxy& iFolder;    
    };
        
#endif // C_NCDNODESEENFOLDERPROXY_H