ncdengine/inc/ncdbundle.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 MNcdBundle interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_NCD_BUNDLE_H
       
    20 #define M_NCD_BUNDLE_H
       
    21 
       
    22 
       
    23 #include <e32cmn.h>
       
    24 
       
    25 #include "catalogsbase.h"
       
    26 #include "ncdinterfaceids.h"
       
    27 
       
    28 
       
    29 /**
       
    30  * Empty interface. The only usage currenly is to check whether a 
       
    31  * node is a bundle folder by querying this interface.
       
    32  */
       
    33 class MNcdBundle : public virtual MCatalogsBase
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Unique identifier for the interface, required for all MCatalogsBase interfaces.
       
    40      *
       
    41      * 
       
    42      */
       
    43     enum { KInterfaceUid = ENcdBundleUid };
       
    44     
       
    45     virtual const TDesC& ViewType() const = 0;
       
    46     
       
    47 protected:
       
    48 
       
    49    /**
       
    50     * Destructor.
       
    51     *
       
    52     * @see MCatalogsBase::~MCatalogsBase
       
    53     */
       
    54     virtual ~MNcdBundle() {}
       
    55 
       
    56     };
       
    57 
       
    58 
       
    59 #endif // M_NCD_BUNDLE_H