X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FfrmUpdate.cpp;h=19c9e0156e7e024364e7303cea1003eb757b0b51;hp=ded624469d6637e1a33012cd1298e1f63684fc57;hb=f69e09d827e06435ea94bb73aa71ab5f9d5c035b;hpb=45729fca56479bd9158486e0cda0c4a94b4dd1dc diff --git a/source/frmUpdate.cpp b/source/frmUpdate.cpp index ded6244..19c9e01 100644 --- a/source/frmUpdate.cpp +++ b/source/frmUpdate.cpp @@ -1,3 +1,21 @@ +// 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 + #include #include @@ -6,6 +24,8 @@ 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); @@ -26,6 +46,8 @@ frmUpdateADT( parent ) void frmUpdate::CloseWindow( wxCommandEvent& event ) { + // Close this window. + this->Close(); } @@ -43,7 +65,7 @@ void frmUpdate::FetchData() 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)); @@ -177,12 +199,16 @@ void frmUpdate::FetchData() 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