ncdengine/provider/server/inc/ncdsearchnodebundle.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:   Declaration of CNcdSearchNodeBundle class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDSEARCHNODEBUNDLE_H
       
    20 #define C_NCDSEARCHNODEBUNDLE_H
       
    21 
       
    22 #include "ncdsearchnodefolder.h"
       
    23 
       
    24 /**
       
    25  * Represents a folder of catalog bundle in server side.
       
    26  */
       
    27 class CNcdSearchNodeBundle : public CNcdSearchNodeFolder 
       
    28 {
       
    29 public:
       
    30 
       
    31     /** 
       
    32      * @see CNcdNodeFolder::NewL
       
    33      */
       
    34     static CNcdSearchNodeBundle* NewL(
       
    35         CNcdNodeManager& aNodeManager,
       
    36         const CNcdNodeIdentifier& aIdentifier  );
       
    37         
       
    38     /**
       
    39      * @see CNcdNodeBundleFolder::NewL
       
    40      */    
       
    41     static CNcdSearchNodeBundle* NewLC(
       
    42         CNcdNodeManager& aNodeManager,
       
    43         const CNcdNodeIdentifier& aIdentifier );
       
    44 
       
    45     virtual ~CNcdSearchNodeBundle();
       
    46 
       
    47 
       
    48 public: // CNcdNodeFolder
       
    49 
       
    50      /** 
       
    51       * @see CNcdNodeFolder::ServerChildCount
       
    52       */
       
    53     virtual TInt ServerChildCount() const;
       
    54 
       
    55     /** 
       
    56      * @see CNcdNodeFolder::ChildByServerIndexL
       
    57      */
       
    58     virtual const CNcdNodeIdentifier& ChildByServerIndexL( TInt aIndex ) const;
       
    59     
       
    60 
       
    61 public:
       
    62 
       
    63     const TDesC& ViewType() const;
       
    64     
       
    65         
       
    66 protected:
       
    67 
       
    68     /**
       
    69      * @see CNcdNodeFolder::CNcdNodeFolder
       
    70      */
       
    71     CNcdSearchNodeBundle( CNcdNodeManager& aNodeManager,
       
    72                       NcdNodeClassIds::TNcdNodeClassId aNodeClassId 
       
    73                         = NcdNodeClassIds::ENcdSearchBundleNodeClassId );
       
    74                         
       
    75     /**
       
    76      * @see CNcdNodeFolder::ConstructL
       
    77      */
       
    78     virtual void ConstructL( const CNcdNodeIdentifier& aIdentifier );
       
    79 
       
    80 private:
       
    81     
       
    82     // Prevent these two if they are not implemented
       
    83     CNcdSearchNodeBundle( const CNcdNodeFolder& aObject );
       
    84     CNcdSearchNodeBundle& operator =( const CNcdNodeFolder& aObject );
       
    85     
       
    86 };
       
    87 
       
    88 #endif