DeviceProcess::DeviceProcess(QObject *parent) : QObject(parent) { _maintimer=new QTimer; connect(_maintimer,SIGNAL(timeout()),this,SLOT(timeoutMaintimer())); connect(MessageWatcher::GetInstance(),SIGNAL(RefreshData()),this,SLOT(onRefreshData())); }
void EquipLongjingView::onEnter(){ CCNode::onEnter(); CCSafeNotificationCenter::sharedNotificationCenter()->addObserver(this, callfuncO_selector(EquipLongjingView::onRetSellEquip), EQUIP_BAG_SHOW_DES, NULL); CCSafeNotificationCenter::sharedNotificationCenter()->addObserver(this, callfuncO_selector(EquipLongjingView::onRetBuyEquip), MSG_BUY_CONFIRM_OK, NULL); m_isInitEnd = false; // UIComponent::getInstance()->showEquipOrBagBtn(1); setTouchMode(Touch::DispatchMode::ONE_BY_ONE); setTouchEnabled(true); setTitleName(_lang("111652")); onRefreshData(1); }