homescreensrv_plat/hs_widget_publisher_api/inc/hswidgetitem.h
changeset 0 79c6a41cd166
child 23 ace62b58f4b2
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Updates applications and icons in Operator Tile.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __HSWIDGETITEM_H__
       
    20 #define __HSWIDGETITEM_H__
       
    21 
       
    22 #include <string>
       
    23 
       
    24 namespace Hs {
       
    25 
       
    26 class HsWidgetItem
       
    27 {
       
    28 public:
       
    29     
       
    30     /**
       
    31      */
       
    32     HsWidgetItem( std::string& aItemName, std::string& aValue );
       
    33     
       
    34     /**
       
    35      */
       
    36     HsWidgetItem( std::string& aItemName, int aValue );
       
    37     
       
    38     /**
       
    39      */
       
    40     virtual ~HsWidgetItem();
       
    41     
       
    42     /**
       
    43      */
       
    44     void setValue( int aValue );
       
    45     
       
    46     /**
       
    47      */
       
    48     void setValue( std::string& aValue );
       
    49 
       
    50     /**
       
    51      */
       
    52     const std::string& getItemName();
       
    53     
       
    54     /**
       
    55      */
       
    56     const std::string& getItemValue();
       
    57     
       
    58     /**
       
    59      */
       
    60     int getItemValueInt();
       
    61 
       
    62     /**
       
    63      */
       
    64     bool isStringValue();
       
    65 
       
    66     
       
    67 private:
       
    68     std::string mItemName;
       
    69     std::string mItemString;
       
    70     int 		mItemInt;
       
    71     bool 		mIsString;
       
    72     };
       
    73 }
       
    74 
       
    75 #endif /*__HSWIDGETITEM_H__*/