ncdengine/provider/client/inc/ncdnodeseenfolderproxy.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:46:15 +0300
branchRCL_3
changeset 28 98a43fae6e2b
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* 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