uifw/EikStd/coctlinc/aknresourceitem.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2008-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:  Resource item interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef M_AKNRESOURCEITEM_H
       
    21 #define M_AKNRESOURCEITEM_H
       
    22 
       
    23 
       
    24 /**
       
    25 *  The resource interface.
       
    26 *
       
    27 *  Classes that implement this interface can be stored and distributed 
       
    28 *  by CAknResourceProvider  class.
       
    29 *
       
    30 *  @lib eikcoctl
       
    31 *  @since S60 v5.0
       
    32 */
       
    33 class MAknResourceItem
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Duplicates the item and the resources it holds
       
    40      * and returns the created resource item.
       
    41      * @return Duplication result
       
    42      */
       
    43     virtual MAknResourceItem* DuplicateL() = 0;
       
    44 
       
    45     /**
       
    46      * Returns the resource item id.
       
    47      * @return Resource item id.
       
    48      */
       
    49     virtual TInt Id() const = 0;
       
    50 
       
    51     /**
       
    52      * Returns ETrue if the aType resource change applies
       
    53      * to this resource item. Otherwise EFalse.
       
    54      * @param aType Resource change type
       
    55      * @return ETrue if resource change applies to 
       
    56      * the resource item.
       
    57      */
       
    58     virtual TBool Invalidate( TInt aType ) = 0;
       
    59 
       
    60     /**
       
    61      * Virtual destructor.
       
    62      */
       
    63     virtual ~MAknResourceItem(){};
       
    64 
       
    65     };
       
    66 
       
    67 
       
    68 #endif // M_AKNRESOURCEITEM_H