Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Move INSTALL, LICENSE, README, THANKS and TODO into root directory
[xestiaab/.git] / source / frmUpdate.cpp
index ded6244..19c9e01 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>
+
 #include <wx/wx.h>
 #include <curl/curl.h>
 
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy