1
// Berkeley Open Infrastructure for Network Computing
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2005 University of California
5
// This is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation;
8
// either version 2.1 of the License, or (at your option) any later version.
10
// This software is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// To view the GNU Lesser General Public License visit
16
// http://www.gnu.org/copyleft/lesser.html
17
// or write to the Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef _BOINCDIALUPMANAGER_H_
21
#define _BOINCDIALUPMANAGER_H_
23
#if defined(__GNUG__) && !defined(__APPLE__)
24
#pragma interface "BOINCDialupManager.cpp"
28
class CBOINCDialUpManager : public wxObject
32
CBOINCDialUpManager();
33
~CBOINCDialUpManager();
36
size_t GetISPNames(wxArrayString& names);
40
int NotifyUserNeedConnection(bool bNotificationOnly);
43
int ConnectionSucceeded();
44
int ConnectionFailed();
46
int NetworkAvailable();
50
void ResetReminderTimers();
53
wxDialUpManager* m_pDialupManager;
54
wxDateTime m_dtLastDialupAlertSent;
55
wxDateTime m_dtLastDialupRequest;
56
wxDateTime m_dtDialupConnectionTimeout;
57
bool m_bSetConnectionTimer;
58
bool m_bNotifyConnectionAvailable;
59
bool m_bConnectedSuccessfully;
63
int m_iConnectAttemptRetVal;
65
wxString m_strDialogTitle;
1
// This file is part of BOINC.
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2008 University of California
5
// BOINC is free software; you can redistribute it and/or modify it
6
// under the terms of the GNU Lesser General Public License
7
// as published by the Free Software Foundation,
8
// either version 3 of the License, or (at your option) any later version.
10
// BOINC is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef _BOINCDIALUPMANAGER_H_
19
#define _BOINCDIALUPMANAGER_H_
21
#if defined(__GNUG__) && !defined(__APPLE__)
22
#pragma interface "BOINCDialupManager.cpp"
26
class CBOINCDialUpManager : public wxObject
30
CBOINCDialUpManager();
31
~CBOINCDialUpManager();
34
size_t GetISPNames(wxArrayString& names);
39
int ConnectionSucceeded();
40
int ConnectionFailed();
42
int NetworkAvailable();
46
void ResetReminderTimers();
49
wxDialUpManager* m_pDialupManager;
50
wxDateTime m_dtLastDialupRequest;
51
wxDateTime m_dtDialupConnectionTimeout;
52
bool m_bSetConnectionTimer;
53
bool m_bNotifyConnectionAvailable;
54
bool m_bConnectedSuccessfully;
58
int m_iConnectAttemptRetVal;
60
wxString m_strDialogTitle;