menufw/hierarchynavigator/hnpresentationmodel/inc/hnattrimgprovemptyimage.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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:   image provider for empty image
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_HNATTRIMAGEPROVEMPTY_H
       
    21 #define C_HNATTRIMAGEPROVEMPTY_H
       
    22 
       
    23 #include "hnattrimgprovider.h"
       
    24 
       
    25 
       
    26 /**
       
    27  *  Image provider class for empty image.
       
    28  *  Image provider specialization that loads empty icon.
       
    29  *
       
    30  *  @lib hnpresentationmodel
       
    31  *  @since S60 5.0
       
    32  *  @ingroup group_hnpresentationmodel
       
    33  */
       
    34 NONSHARABLE_CLASS( CHnAttrImgProvEmptyImage ) : public CHnAttrImgProvider
       
    35     {
       
    36 public:
       
    37     
       
    38     /**
       
    39      * Two-phase constructor.
       
    40      * 
       
    41      * @since S60 5.0
       
    42      * @return Fully constructed object
       
    43      */
       
    44     static CHnAttrImgProvEmptyImage* NewL();
       
    45 
       
    46     /**
       
    47      * Two-phase constructor.
       
    48      * 
       
    49      * @since S60 5.0
       
    50      * @return Fully constructed object
       
    51      */
       
    52     static CHnAttrImgProvEmptyImage* NewLC();
       
    53 
       
    54     /**
       
    55      * Standard destructor.
       
    56      * 
       
    57      * @since S60 5.0
       
    58      */
       
    59     virtual ~CHnAttrImgProvEmptyImage();
       
    60 
       
    61 // from base class CHnAttrImgProvider
       
    62 public:
       
    63     
       
    64     /**
       
    65      * Value property getter.
       
    66      *
       
    67      * @since S60 5.0
       
    68      * @return value
       
    69      */
       
    70     const TDesC8& Value( );
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * Defualt constructor.
       
    76      * 
       
    77      * @since S60 5.0
       
    78      */
       
    79     CHnAttrImgProvEmptyImage();
       
    80 
       
    81     /**
       
    82      * Standard symbian 2nd phase constructor.
       
    83      * 
       
    84      * @since S60 5.0
       
    85      */
       
    86     void ConstructL( );
       
    87 
       
    88 private: // data
       
    89 
       
    90     /**
       
    91      * Empty value.
       
    92      */
       
    93     TBuf8<1> iEmptyVal;
       
    94     };
       
    95 
       
    96 
       
    97 #endif // C_HNATTRIMGPROVEMPTY_H
       
    98