Sha256: 0dc78d1fcfc47ded5b36384f8a0491ff1efe7668df8c105e8860b4d683c36e0a
Contents?: true
Size: 1.97 KB
Versions: 17
Compression:
Stored size: 1.97 KB
Contents
#include "../../../shared/generated/cpp/NativeTabbarBase.h" #include "common/RhodesApp.h" #include "common/RhoConf.h" #include "rubyext/NativeToolBarExt.h" namespace rho { using namespace apiGenerator; using namespace common; class CNativeTabbarImpl: public CNativeTabbarSingletonBase { public: CNativeTabbarImpl(): CNativeTabbarSingletonBase(){} virtual void create( const rho::Vector<rho::String>& tabElements, const rho::Hashtable<rho::String, rho::String>& tabBarProperties, rho::apiGenerator::CMethodResult& oResult) { rho_wmimpl_tabbar_create( tabElements, tabBarProperties, oResult ); } virtual void currentTabIndex(rho::apiGenerator::CMethodResult& oResult) { oResult.set( rho_wmimpl_tabbar_currentTabIndex() ); } virtual void remove(rho::apiGenerator::CMethodResult& oResult) { rho_wmimpl_tabbar_remove(); } virtual void setTabBadge( int tabIndex, const rho::String& badge, rho::apiGenerator::CMethodResult& oResult) { rho_wmimpl_tabbar_setTabBadge(tabIndex, badge); } virtual void switchTab( int tabIndex, rho::apiGenerator::CMethodResult& oResult) { rho_wmimpl_tabbar_switchTab(tabIndex); } virtual void isCreated(rho::apiGenerator::CMethodResult& oResult) { oResult.set( rho_wmimpl_tabbar_isStarted() ); } virtual void removeTab( int tabIndex, rho::apiGenerator::CMethodResult& oResult) { rho_wmimpl_tabbar_removeTab(tabIndex); } }; //////////////////////////////////////////////////////////////////////// class CNativeTabbarFactory: public CNativeTabbarFactoryBase { public: ~CNativeTabbarFactory(){} INativeTabbarSingleton* createModuleSingleton() { return new CNativeTabbarImpl(); } }; } extern "C" void Init_NativeTabbar() { rho::CNativeTabbarFactory::setInstance( new rho::CNativeTabbarFactory() ); rho::Init_NativeTabbar_API(); RHODESAPP().getExtManager().requireRubyFile("RhoNativeTabbarApi"); }
Version data entries
17 entries across 17 versions & 2 rubygems