Softwareupdates::Softwareupdates( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { Init(); Create(parent, -1, wxGetApp().getMsg("softwareupdates") ); initLabels(); m_Timer = new wxTimer( this, ME_UpdateTimer ); m_Progress = NULL; m_TimerCount = 0; m_Ready = false; m_Connected = false; m_Release = NULL; m_ReleaseNode = NULL; checkForNew(); bool rc = m_Timer->Start( 100, true ); m_Progress = new wxProgressDialog(wxGetApp().getMsg( "softwareupdates" ), wxGetApp().getMsg( "searchingupdates" ), 2, NULL, wxPD_CAN_ABORT | wxPD_AUTO_HIDE | wxPD_APP_MODAL ); m_Progress->ShowModal(); initValues(); }
char *hubConnectLoadHubs(struct cart *cart) /* load the track data hubs. Set a static global to remember them */ { char *newDatabase = checkForNew( cart); cartSetString(cart, hgHubConnectRemakeTrackHub, "on"); struct hubConnectStatus *hubList = hubConnectStatusListFromCart(cart); globalHubList = hubList; return newDatabase; }