+// frmUpdate.cpp - Update form.
+//
+// (c) 2012-2015 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
#include <wx/wx.h>
#include <curl/curl.h>
size_t WritebackFuncUpdate(char *ptr, size_t size, size_t nmemb, wxString *stream){
+ // Write back function for getting version information.
+
wxString Data;
//wxString *PageInput;
Data = wxString::FromUTF8((char *)ptr);
void frmUpdate::CloseWindow( wxCommandEvent& event )
{
+ // Close this window.
+
this->Close();
}
wxString PageData;
wxString PageHeader;
- wxString UpdateAddress = wxT("http://update.xestia.co.uk/");
+ wxString UpdateAddress = wxT("https://update.xestia.co.uk/");
UpdateAddress.Append(XSDAB_SOURCE);
curl_easy_setopt(conn, CURLOPT_URL, (const char*)UpdateAddress.mb_str(wxConvUTF8));
void frmUpdate::VisitGelforn( wxCommandEvent &event ){
+ // Launch the Xestia Gelforn website.
+
wxLaunchDefaultBrowser(wxT("https://gelforn.xestia.co.uk/"));
}
void frmUpdate::VisitPREMIUM( wxCommandEvent &event ){
+ // Launch the Xestia PREMIUM website.
+
wxLaunchDefaultBrowser(wxT("https://premium.xestia.co.uk/"));
}
\ No newline at end of file