ncdengine/provider/server/inc/ncdnodeseenfolderimpl.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDNODESEENFOLDER_H
       
    20 #define C_NCDNODESEENFOLDER_H
       
    21 
       
    22 #include "catalogscommunicable.h"
       
    23 
       
    24 class CNcdNodeFolder;
       
    25 class CNcdNodeIdentifier;
       
    26 
       
    27 class CNcdNodeSeenFolder : public CCatalogsCommunicable
       
    28     {
       
    29 public:
       
    30     static CNcdNodeSeenFolder* NewL( CNcdNodeFolder& aParent );
       
    31     static CNcdNodeSeenFolder* NewLC( CNcdNodeFolder& aParent );
       
    32 
       
    33     ~CNcdNodeSeenFolder();
       
    34         
       
    35 public: // from CCatalogsCommunicable
       
    36     
       
    37     virtual void ReceiveMessage( 
       
    38         MCatalogsBaseMessage* aMessage,
       
    39         TInt aFunctionNumber );
       
    40         
       
    41     virtual void CounterPartLost(
       
    42         const MCatalogsSession& aSession );
       
    43     
       
    44 
       
    45 protected:
       
    46     CNcdNodeSeenFolder( CNcdNodeFolder& aParent );
       
    47     void ConstructL();
       
    48     
       
    49     void SetContentsSeenRequestL( MCatalogsBaseMessage& aMessage ) const;
       
    50     void NewCountRequestL( MCatalogsBaseMessage& aMessage ) const;
       
    51     void NewNodesRequestL( MCatalogsBaseMessage& aMessage ) const;
       
    52     void ReleaseRequest( MCatalogsBaseMessage& aMessage ) const;
       
    53     
       
    54     TInt NewChildCountL( TInt aRecursionLevel ) const;
       
    55     void NewChildrenL(
       
    56         TInt aRecurssionLevel,
       
    57         RPointerArray<CNcdNodeIdentifier>& aNodes ) const;
       
    58     void SetContentsSeenL() const;
       
    59     
       
    60 
       
    61 private:
       
    62     CNcdNodeFolder& iOwnerNode;
       
    63     };
       
    64 
       
    65 #endif // C_NCDNODESEENFOLDER_H
       
    66