#include <FdmApp.h>
Public Member Functions | |
| CFdmApp () | |
| virtual BOOL | InitInstance () |
| virtual int | ExitInstance () |
| AFX_MODULE_STATE * | GetModuleState () |
| void | SaveSettings () |
| BOOL | Is_Starting () |
| ~CFdmApp () | |
| void | SaveHistory () |
| afx_msg void | OnAppAbout () |
Static Public Member Functions | |
| static void | ScheduleExitProcess (DWORD dwSeconds) |
Public Attributes | |
| CString | m_strAppPath |
| fs::list< _inc_UrlToAdd > | m_vUrlsToAdd |
| fs::list< _inc_UrlToAdd > | m_vTorrentFilesToAdd |
Protected Member Functions | |
| void | CheckRegistry () |
| void | IntegrationSettings () |
| void | Install_UnregisterServer () |
| void | Install_RegisterServer () |
| BOOL | RegisterServer (BOOL bGlobal) |
| void | UninstallCustomizations () |
| void | CheckLocked () |
| BOOL | CheckFdmStartedAlready (BOOL bSetForIfEx=TRUE) |
| BOOL | InitLanguage () |
| void | LoadHistory () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadExitProcess (LPVOID) |
| static LONG WINAPI | _UEF (_EXCEPTION_POINTERS *) |
Protected Attributes | |
| BOOL | m_bForceSilentSpecified |
| int | m_nNoLngsErrReason |
| BOOL | m_bCOMInited |
| BOOL | m_bStarting |
| BOOL | m_bEmbedding |
| BOOL | m_bSaveAllOnExit |
| HANDLE | m_hAppMutex |
Private Member Functions | |
| BOOL | InitATL () |
Private Attributes | |
| BOOL | m_bATLInited |
| BOOL | m_bATLInited2 |
Classes | |
| struct | _inc_UrlToAdd |
Definition at line 22 of file FdmApp.h.
| CFdmApp::CFdmApp | ( | ) |
| CFdmApp::~CFdmApp | ( | ) |
| BOOL CFdmApp::InitInstance | ( | ) | [virtual] |
Definition at line 65 of file FdmApp.cpp.
References _App, _dwAppState, _IECatchMgr, _IECMM, _Module, _NOMgr, _pszAppMutex, _SkinMgr, _Snds, _UEF(), _UpdateMgr, APPSTATE_PORTABLE_MODE, APPSTATE_PORTABLE_MODE_NOREG, b, BOOL, CheckLocked(), CheckRegistry(), fsIECatchMgr::CleanIEPluginKey(), FAILED, FALSE, fsBuildPathToFile(), fsGetDataFilePath(), fsGetPath(), fsnew1, fsAppSettings::get_SettingsStore(), HRESULT, IDR_MAINFRAME, IDS_COMPANY, IE_USERAGENT_ADDITION, InitATL(), fsOpNetIntegrationMgr::Initialize(), vmsSkinMgr::Initialize(), InitLanguage(), Install_RegisterServer(), IntegrationSettings(), fsFDMCmdLineParser::is_ForceSilentSpecified(), IS_PORTABLE_MODE, VistaFx::IsProcessElevated(), fsUpdateMgr::IsStartUpdaterNeeded(), VistaFx::IsVista(), L_CANTFINDUPDATER, L_ERR, L_NOWRITEACCESSTODATAFOLDER, VistaFx::LoadDll(), LoadHistory(), vmsAppSettingsStore::LoadSettingsFromFile(), LOG, LPVOID, LS, m_bATLInited2, m_bCOMInited, m_bForceSilentSpecified, m_bSaveAllOnExit, m_bStarting, m_hAppMutex, m_strAppPath, fsAppSettings::ModifyIEUserAgent(), MY_MAX_PATH, nl, NULL, fsFDMCmdLineParser::Parse(), PRG_NAME, fsAppSettings::Prg_StartMinimized(), vmsFilesToDelete::Process(), fsSoundsMgr::ReadSettings(), fsUpdateMgr::ReadSettings(), fsIECatchMgr::ReadSettings(), fsIEContextMenuMgr::ReadState(), RegisterServer(), fsIEUserAgent::RemovePP(), VistaFx::RunNonElevatedProcess(), fsIEUserAgent::SetPP(), fsUpdateMgr::StartUpdater(), TRUE, fsAppSettings::View_ReadWndPlacement(), and vmsSHCopyKey().
| int CFdmApp::ExitInstance | ( | ) | [virtual] |
Definition at line 387 of file FdmApp.cpp.
References _dwAppState, _Module, _UpdateMgr, APPSTATE_PORTABLE_MODE_NOREG, Install_UnregisterServer(), IS_PORTABLE_MODE, LOG, m_bATLInited, m_bATLInited2, m_bSaveAllOnExit, nl, SaveHistory(), fsUpdateMgr::SaveSettings(), and SaveSettings().
| AFX_MODULE_STATE * CFdmApp::GetModuleState | ( | ) |
| void CFdmApp::ScheduleExitProcess | ( | DWORD | dwSeconds | ) | [static] |
Definition at line 1101 of file FdmApp.cpp.
References _threadExitProcess(), LPVOID, and NULL.
Referenced by CMainFrame::OnClose().
| void CFdmApp::SaveSettings | ( | ) |
Definition at line 1039 of file FdmApp.cpp.
References _App, fsGetDataFilePath(), fsAppSettings::get_SettingsStore(), IS_PORTABLE_MODE, and vmsAppSettingsStore::SaveSettingsToFile().
Referenced by ExitInstance().
| BOOL CFdmApp::Is_Starting | ( | ) |
| void CFdmApp::SaveHistory | ( | ) |
Definition at line 539 of file FdmApp.cpp.
References _LastBatchUrls, _LastFind, _LastFlashVideoUrls, _LastFolders, _LastUrlFiles, _LastUrlPaths, fsGetDataFilePath(), GetLastError(), LOG, nl, NULL, and fsCmdHistoryMgr::SaveToFile().
Referenced by ExitInstance().
| void CFdmApp::OnAppAbout | ( | ) |
Definition at line 379 of file FdmApp.cpp.
References _DlgMgr, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
| void CFdmApp::CheckRegistry | ( | ) | [protected] |
Definition at line 1108 of file FdmApp.cpp.
References fsCopyKey(), fsDecodeHtmlUrl(), LOG, LONG, and nl.
Referenced by InitInstance().
| DWORD WINAPI CFdmApp::_threadExitProcess | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 1089 of file FdmApp.cpp.
References ASSERT, FALSE, GetLastError(), LOG, and nl.
Referenced by ScheduleExitProcess().
| void CFdmApp::IntegrationSettings | ( | ) | [protected] |
Definition at line 1050 of file FdmApp.cpp.
References ASSERT, fsGetFumProgramFilesFolder(), and NULL.
Referenced by InitInstance().
| void CFdmApp::Install_UnregisterServer | ( | ) | [protected] |
Definition at line 1008 of file FdmApp.cpp.
References _App, _IECatchMgr, _IECMM, _NOMgr, fsIECatchMgr::ActivateIE2(), vmsTorrentExtension::AssociateWith(), fsAppSettings::Bittorrent_OldTorrentAssociation(), fsOpNetIntegrationMgr::DeinstallMozillaSuitePlugin(), fsOpNetIntegrationMgr::DeinstallNetscapePlugin(), fsOpNetIntegrationMgr::DeinstallOperaPlugin(), fsIEContextMenuMgr::DeleteAllFDMsIEMenus(), CFdmModule::dwThreadID, FALSE, IDR_FDM, IE_USERAGENT_ADDITION, vmsFirefoxMonitoring::Install(), vmsTorrentExtension::IsAssociatedWithUs(), fsIEContextMenuMgr::IsIEMenusPresent(), LIBID_FdmLib, m_bATLInited, fsIEUserAgent::RemovePP(), TRUE, and UninstallCustomizations().
Referenced by ExitInstance(), and InitATL().
| void CFdmApp::Install_RegisterServer | ( | ) | [protected] |
Definition at line 997 of file FdmApp.cpp.
References CFdmModule::dwThreadID, FALSE, m_bATLInited, RegisterServer(), and TRUE.
Referenced by InitATL(), and InitInstance().
| BOOL CFdmApp::RegisterServer | ( | BOOL | bGlobal | ) | [protected] |
Definition at line 921 of file FdmApp.cpp.
References _App, _AppMgr, _IECatchMgr, _IECMM, _NOMgr, fsIECatchMgr::ActivateIE2(), fsIEContextMenuMgr::AddIEMenus(), vmsTorrentExtension::Associate(), fsAppSettings::Bittorrent_Enable(), fsAppSettings::Bittorrent_OldTorrentAssociation(), fsOpNetIntegrationMgr::DeinstallFirefoxPlugin(), fsIEContextMenuMgr::DeleteAllFDMsIEMenus(), fsIEContextMenuMgr::DeleteIEMenus(), FALSE, fsGetAppDataFolder(), vmsTorrentExtension::GetCurrentAssociation(), IDR_FDM, IE_USERAGENT_ADDITION, vmsFirefoxMonitoring::Install(), fsOpNetIntegrationMgr::InstallMozillaSuitePlugin(), fsOpNetIntegrationMgr::InstallNetscapePlugin(), fsOpNetIntegrationMgr::InstallOperaPlugin(), vmsTorrentExtension::IsAssociatedWithUs(), vmsTorrentExtension::IsAssociationExist(), vmsFdmAppMgr::IsBtInstalled(), vmsFirefoxMonitoring::IsInstalled(), fsAppSettings::ModifyIEUserAgent(), fsAppSettings::Monitor_Firefox(), fsAppSettings::Monitor_UserSwitchedOn(), MONITOR_USERSWITCHEDON_FIREFOX, MONITOR_USERSWITCHEDON_IE, MONITOR_USERSWITCHEDON_NETSCAPE, MONITOR_USERSWITCHEDON_OPERA, MONITOR_USERSWITCHEDON_SEAMONKEY, NULL, fsIEUserAgent::RemovePP(), fsIEUserAgent::SetPP(), TRUE, and vmsSHCopyKey().
Referenced by InitInstance(), and Install_RegisterServer().
| void CFdmApp::UninstallCustomizations | ( | ) | [protected] |
Definition at line 884 of file FdmApp.cpp.
References MY_MAX_PATH.
Referenced by Install_UnregisterServer().
| void CFdmApp::CheckLocked | ( | ) | [protected] |
Definition at line 868 of file FdmApp.cpp.
References GetLastError(), NULL, and TRUE.
Referenced by InitInstance().
| LONG CFdmApp::_UEF | ( | _EXCEPTION_POINTERS * | info | ) | [static, protected] |
Definition at line 804 of file FdmApp.cpp.
References BOOL, _MINIDUMP_EXCEPTION_INFORMATION::ClientPointers, _MINIDUMP_EXCEPTION_INFORMATION::ExceptionPointers, FALSE, LOG, MiniDumpNormal, nl, NULL, PRG_BUILD_NUMBER, _MINIDUMP_EXCEPTION_INFORMATION::ThreadId, and TRUE.
Referenced by InitInstance().
| BOOL CFdmApp::CheckFdmStartedAlready | ( | BOOL | bSetForIfEx = TRUE |
) | [protected] |
Definition at line 746 of file FdmApp.cpp.
References _pszAppMutex, FALSE, GetLastError(), LOG, m_hAppMutex, nl, NULL, and TRUE.
Referenced by InitATL().
| BOOL CFdmApp::InitLanguage | ( | ) | [protected] |
Definition at line 707 of file FdmApp.cpp.
References _App, _LngMgr, FALSE, fsLangMgr::FindLngByName(), fsLangMgr::Initialize(), fsLangMgr::LoadLng(), LOG, m_nNoLngsErrReason, nl, TRUE, and fsAppSettings::View_Language().
Referenced by InitInstance().
| void CFdmApp::LoadHistory | ( | ) | [protected] |
Definition at line 488 of file FdmApp.cpp.
References _HsMgr, _LastBatchUrls, _LastFind, _LastFlashVideoUrls, _LastFolders, _LastUrlFiles, _LastUrlPaths, fsGetDataFilePath(), GetLastError(), LOG, nl, NULL, fsCmdHistoryMgr::ReadFromFile(), and fsHistoriesMgr::ReadSettings().
Referenced by InitInstance().
| BOOL CFdmApp::InitATL | ( | ) | [private] |
Definition at line 625 of file FdmApp.cpp.
References BOOL, CheckFdmStartedAlready(), CFdmModule::dwThreadID, FALSE, CFdmModule::FindOneOf(), GetLastError(), Install_RegisterServer(), Install_UnregisterServer(), m_bATLInited, m_bEmbedding, m_bForceSilentSpecified, NULL, and TRUE.
Referenced by InitInstance().
| CString CFdmApp::m_strAppPath |
Definition at line 39 of file FdmApp.h.
Referenced by fsGetFumProgramFilesFolder(), InitInstance(), and vmsGetAppFolder().
| fs::list<_inc_UrlToAdd> CFdmApp::m_vUrlsToAdd |
Definition at line 48 of file FdmApp.h.
Referenced by CMainFrame::OnProceedFurherInitialization(), and fsFDMCmdLineParser::Parse().
| fs::list<_inc_UrlToAdd> CFdmApp::m_vTorrentFilesToAdd |
BOOL CFdmApp::m_bForceSilentSpecified [protected] |
int CFdmApp::m_nNoLngsErrReason [protected] |
BOOL CFdmApp::m_bCOMInited [protected] |
BOOL CFdmApp::m_bStarting [protected] |
BOOL CFdmApp::m_bEmbedding [protected] |
BOOL CFdmApp::m_bSaveAllOnExit [protected] |
HANDLE CFdmApp::m_hAppMutex [protected] |
BOOL CFdmApp::m_bATLInited [private] |
Definition at line 88 of file FdmApp.h.
Referenced by ExitInstance(), InitATL(), Install_RegisterServer(), and Install_UnregisterServer().
BOOL CFdmApp::m_bATLInited2 [private] |
1.5.6