1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2006 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
// either version 2 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
15
// Fifth Floor, Boston, MA 02110-1301, USA.
17
// For any comment, suggestion or feature request, please contact the manager of
18
// the project at cecilios@users.sourceforge.net
20
//-------------------------------------------------------------------------------------
22
@brief Header file for class lmUpdater
23
@ingroup updates_management
25
#ifndef __UPDATER_H__ //to avoid nested includes
28
// For compilers that support precompilation, includes "wx/wx.h".
29
#include "wx/wxprec.h"
39
#include "wx/xml/xml.h" // to use wxXmlDocument
49
bool CheckForUpdates(wxString sPlatform = _T("Win32")); //true if update available
50
const wxString& GetVersion() { return m_sVersion; }
51
const wxString& GetDescription() { return m_sDescription; }
54
//default values and user preferences
55
void LoadUserPreferences();
56
void SaveUserPreferences();
58
void ParseDocument(wxXmlNode* pNode);
59
wxString GetText(wxXmlNode* pElement);
60
wxString GetAttribute(wxXmlNode* pNode, wxString sName, wxString sDefault);
61
wxXmlNode* GetFirstChild(wxXmlNode* pNode);
62
wxXmlNode* GetNextSibling(wxXmlNode* pNode);
71
static lmUpdater* m_pInstance; //the only instance of this class
73
bool m_fCheckForUpdates; //user allows this checking
76
wxString m_sDescription;
82
#endif // __UPDATER_H__