00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #include "stdafx.h" 00007 #include "FdmApp.h" 00008 #include "vmsFirefoxMonitoring.h" 00009 #include "vmsFirefoxExtensionInstaller.h" 00010 00011 #define FLASHGOT_CID "{19503e42-ca3c-4c27-b1e2-9cdb2170ee34}" 00012 #define FDM_CID "fdm_ffext@freedownloadmanager.org" 00013 00014 #ifdef _DEBUG 00015 #undef THIS_FILE 00016 static char THIS_FILE[]=__FILE__; 00017 #define new DEBUG_NEW 00018 #endif 00019 00020 vmsFirefoxMonitoring::vmsFirefoxMonitoring() 00021 { 00022 00023 } 00024 00025 vmsFirefoxMonitoring::~vmsFirefoxMonitoring() 00026 { 00027 00028 } 00029 00030 bool vmsFirefoxMonitoring::IsInstalled() 00031 { 00032 return vmsFirefoxExtensionInstaller::IsInstalled (FDM_CID, true); 00033 } 00034 00035 bool vmsFirefoxMonitoring::IsFlashGotInstalled() 00036 { 00037 return vmsFirefoxExtensionInstaller::IsInstalled (FLASHGOT_CID, true); 00038 } 00039 00040 bool vmsFirefoxMonitoring::Install(bool bInstall) 00041 { 00042 CString strPath = ((CFdmApp*)AfxGetApp ())->m_strAppPath; 00043 strPath += "Firefox\\Extension"; 00044 return vmsFirefoxExtensionInstaller::Do (FDM_CID, strPath, bInstall); 00045 } 00046
1.5.6