ncdengine/provider/server/inc/ncdsearchrootnode.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Contains CNcdSearchRootNode class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCDSEARCHROOTNODE_H
       
    20 #define NCDSEARCHROOTNODE_H
       
    21 
       
    22 #include "ncdsearchnodefolder.h"
       
    23 
       
    24 class CNcdNodeManager;
       
    25 class CNcdNodeIdentifier;
       
    26 
       
    27 
       
    28 class CNcdSearchRootNode : public CNcdSearchNodeFolder
       
    29     {
       
    30 public:
       
    31     /**
       
    32      * NewL
       
    33      *
       
    34      * @return CNcdSearchRootNode* Pointer to the created object 
       
    35      * of this class.
       
    36      */
       
    37     static CNcdSearchRootNode* NewL( CNcdNodeManager& aNodeManager,
       
    38                                const CNcdNodeIdentifier& aIdentifier );
       
    39 
       
    40     /**
       
    41      * NewLC
       
    42      *
       
    43      * @return CNcdNodeFolder* Pointer to the created object 
       
    44      * of this class.
       
    45      */
       
    46     static CNcdSearchRootNode* NewLC( CNcdNodeManager& aNodeManager,
       
    47                                 const CNcdNodeIdentifier& aIdentifier );
       
    48                                   
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CNcdSearchRootNode();
       
    53     
       
    54 public: // CNcdNodeFolder
       
    55 
       
    56      /** 
       
    57       * @see CNcdNodeFolder::ServerChildCount
       
    58       */
       
    59     virtual TInt ServerChildCount() const;
       
    60 
       
    61     /** 
       
    62      * @see CNcdNodeFolder::ChildByServerIndexL
       
    63      */
       
    64     virtual const CNcdNodeIdentifier& ChildByServerIndexL( TInt aIndex ) const;
       
    65 
       
    66 protected:
       
    67 
       
    68     /**
       
    69      * Constructor
       
    70      *
       
    71      */
       
    72     CNcdSearchRootNode( CNcdNodeManager& aNodeManager,
       
    73                   NcdNodeClassIds::TNcdNodeClassId aNodeClassId = NcdNodeClassIds::ENcdSearchRootNodeClassId );
       
    74     
       
    75     void ConstructL( const CNcdNodeIdentifier& aIdentifier );
       
    76 
       
    77     };
       
    78 
       
    79 #endif // NCDSEARCHROOTNODE_H