hswidget.h

Go to the documentation of this file.
00001 /* ============================================================================
00002 *  Name        : hswidget.h
00003 *  Part of     : Homescreen Publishing Api 
00004 *  Interface   :
00005 *  Description : Updates applications and icons in Operator Tile.
00006 *  Version     : << Don't touch! Updated by Synergy at check-out.
00007 *
00008 *  Copyright © 2007 Nokia. All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.0
00018 */
00019 
00020 #ifndef __HSWIDGET_H__
00021 #define __HSWIDGET_H__
00022 
00023 //  Include Files
00024 #include <cctype>
00025 #include <string>
00026 #include <memory>
00027 #include <vector>
00028 
00029 namespace Hs {
00030 
00031 class HsWidgetItem;
00032 
00060 class HsWidget
00061     {
00062 public:
00084     IMPORT_C void setItem( std::string aItemName, std::string aValue);
00085     
00106     IMPORT_C void setItem( std::string aItemName, int aValue );
00107     
00127     IMPORT_C void removeItem( std::string aItemName );
00128     
00129 public: 
00130     
00133         HsWidget( std::string& aTemplateName, 
00134         std::string& aWidgetName,
00135         std::string& aIdentifier );
00136 
00139     virtual ~HsWidget();
00140     
00143     HsWidgetItem* getWidgetItem( std::string& aItemName );
00144 
00147     const std::string& getWidgetName();
00148     
00151     const std::string& getTemplateName();
00152     
00155     const std::string& getIdentifier();
00156     
00159     int itemsCount();
00160     
00163     HsWidgetItem* getWidgetItem( int aIndex );
00164     
00167     bool checkIfWidgetItemExist( std::string& aItemName );
00168     
00169 private:
00170     std::string mWidgetName;
00171     std::string mTemplateName;
00172     std::string mIdentifier;
00173     std::vector<HsWidgetItem*> mItems;
00174     };
00175 
00176 }
00177 
00178 
00179 #endif /*__HSWIDGET_H__*/

Copyright © Nokia Corporation 2001-2007
Back to top