Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CScheduler Class Reference

#include <Scheduler.h>

List of all members.

Public Member Functions

 CScheduler ()
 ~CScheduler ()
BOOL Load ()
void Save ()
void Update ()

Public Attributes

BYTE m_pSchedule [7][24]

Protected Member Functions

void SetVariables (BYTE nCurrentSettings)
void Serialize (CArchive &ar)

Protected Attributes

BYTE m_nCurrentHour
DWORD m_tLastCheck


Constructor & Destructor Documentation

CScheduler::CScheduler  ) 
 

Definition at line 37 of file Scheduler.cpp.

References m_nCurrentHour, m_pSchedule, m_tLastCheck, and SCHEDULE_FULL_SPEED.

CScheduler::~CScheduler  ) 
 

Definition at line 44 of file Scheduler.cpp.


Member Function Documentation

BOOL CScheduler::Load  ) 
 

Definition at line 51 of file Scheduler.cpp.

References CSettings::General, m_nCurrentHour, CShareazaApp::Message(), MSG_ERROR, Serialize(), Settings, theApp, and CSettings::sGeneral::UserPath.

Referenced by CShareazaApp::InitInstance().

void CScheduler::Save  ) 
 

Definition at line 79 of file Scheduler.cpp.

References CSettings::General, m_nCurrentHour, Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CSchedulerSettingsPage::OnOK().

void CScheduler::Serialize CArchive &  ar  )  [protected]
 

Definition at line 97 of file Scheduler.cpp.

References m_pSchedule.

Referenced by Load(), and Save().

void CScheduler::SetVariables BYTE  nCurrentSettings  )  [protected]
 

Definition at line 160 of file Scheduler.cpp.

References CSettings::sLive::BandwidthScale, CNetwork::Connect(), CNetwork::Disconnect(), CSettings::eDonkey, CSettings::seDonkey::EnableAlways, CSettings::sGnutella1::EnableAlways, CSettings::seDonkey::EnableToday, CSettings::sGnutella1::EnableToday, CSettings::sGnutella2::EnableToday, CSettings::Gnutella1, CSettings::Gnutella2, CNetwork::IsConnected(), CSettings::sScheduler::LimitedBandwidth, CSettings::sScheduler::LimitedNetworks, CSettings::Live, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, Network, SCHEDULE_FULL_SPEED, SCHEDULE_LIMITED_SPEED, SCHEDULE_OFF, CSettings::Scheduler, Settings, and theApp.

Referenced by Update().

void CScheduler::Update  ) 
 

Definition at line 125 of file Scheduler.cpp.

References CSettings::sScheduler::Enable, m_nCurrentHour, m_pSchedule, m_tLastCheck, CShareazaApp::Message(), MSG_ERROR, CSettings::Scheduler, Settings, SetVariables(), and theApp.

Referenced by CMainWnd::OnTimer().


Member Data Documentation

BYTE CScheduler::m_nCurrentHour [protected]
 

Definition at line 37 of file Scheduler.h.

Referenced by CScheduler(), Load(), Save(), and Update().

BYTE CScheduler::m_pSchedule[7][24]
 

Definition at line 35 of file Scheduler.h.

Referenced by CScheduler(), CSchedulerSettingsPage::OnInitDialog(), CSchedulerSettingsPage::OnOK(), Serialize(), and Update().

DWORD CScheduler::m_tLastCheck [protected]
 

Definition at line 38 of file Scheduler.h.

Referenced by CScheduler(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:11 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2