~s-cecilio/lenmus/v5.3

« back to all changes in this revision

Viewing changes to include/lenmus_injectors.h

  • Committer: cecilios
  • Date: 2012-07-05 18:23:21 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:706
fix cmakelist

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
//lomse
28
28
#include <lomse_doorway.h>
29
29
#include <lomse_score_player.h>
30
 
#include <lomse_metronome.h>
31
30
using namespace lomse;
32
31
 
33
32
//wxWidgets
53
52
 
54
53
 
55
54
//---------------------------------------------------------------------------------------
56
 
struct ProxySettings
57
 
{
58
 
    ProxySettings()
59
 
        : sProxyHostname(_T(""))
60
 
        , sProxyUsername(_T(""))
61
 
        , sProxyPassword(_T(""))
62
 
        , fUseProxy(false)
63
 
        , fRequiresAuth(false)
64
 
        , nProxyPort(0)
65
 
    {
66
 
    }
67
 
 
68
 
        wxString sProxyHostname;
69
 
        wxString sProxyUsername;
70
 
        wxString sProxyPassword;
71
 
        bool fUseProxy;
72
 
    bool fRequiresAuth;
73
 
        int nProxyPort;
74
 
};
75
 
 
 
55
struct ProxySettings 
 
56
{
 
57
    ProxySettings() 
 
58
        : sProxyHostname(_T(""))
 
59
        , sProxyUsername(_T(""))
 
60
        , sProxyPassword(_T(""))
 
61
        , fUseProxy(false)
 
62
        , fRequiresAuth(false)
 
63
        , nProxyPort(0)
 
64
    {
 
65
    }
 
66
 
 
67
        wxString sProxyHostname;
 
68
        wxString sProxyUsername;
 
69
        wxString sProxyPassword;
 
70
        bool fUseProxy;
 
71
    bool fRequiresAuth;
 
72
        int nProxyPort;
 
73
};
 
74
 
76
75
 
77
76
//---------------------------------------------------------------------------------------
78
77
class ApplicationScope
87
86
    LibraryScope* m_pLomseScope;
88
87
    Logger* m_pLogger;
89
88
    Colors* m_pColors;
90
 
    Metronome* m_pMetronome;
91
89
    StatusReporter* m_pStatus;
92
90
    wxSQLite3Database* m_pDB;
93
91
    ProxySettings* m_pProxySettings;
117
115
    void create_logger();
118
116
    void open_database();
119
117
    void set_status_reporter(StatusReporter* reporter);
120
 
    void inform_lomse_about_fonts_path();
121
 
    inline void set_metronome(Metronome* pMtr) { m_pMetronome = pMtr; }
122
 
 
123
118
 
124
119
    //access to global objects/variables
125
120
    Paths* get_paths();
130
125
    inline StatusReporter* get_status_reporter() { return m_pStatus; }
131
126
    inline wxSQLite3Database* get_database() { return m_pDB; }
132
127
    ProxySettings* get_proxy_settings();
133
 
    inline Metronome* get_metronome() { return m_pMetronome; }
134
128
 
135
129
//    inline ostream& default_reporter() { return m_reporter; }
136
130
    inline LomseDoorway& get_lomse() { return m_lomse; }