This commit is contained in:
Manohar 2006-03-06 09:13:59 +00:00
parent 976196326c
commit 2fb2da98a9

View File

@ -51,8 +51,8 @@ namespace Novell.CASA.DataEngines
public FFEngine()
{
//Get Profile Names
//Console.WriteLine("FFEngine Constructor:Invoking GetDefaultProfileName:");
//Get Profile Names
//Console.WriteLine("FFEngine Aggregate:Invoking GetDefaultProfileName:");
defaultProfileName=FireFox.GetDefaultProfileName();
//This can be extended to get all profiles : Use FireFox.GetAllProfileNames()
//Currently we support only the default profile.
@ -63,28 +63,18 @@ namespace Novell.CASA.DataEngines
initProfileStatus=FireFox.InitProfile(defaultProfileName);
//Console.WriteLine("FFEngine Constructor:InitProfile returned "+initProfileStatus);
}
else
Console.WriteLine("FFEngine Constructor:Could not get a Default Profile Name");
}
}
~FFEngine()
{
//Uninitialize the profile
//Uninitialize the profile if initialized earlier
//FIXME:- CURRENTLY NOT IVOKED SINCE THERES IS A BUG WHICH NEEDS TO BE FIXED IN FF NATIVE
//Console.WriteLine("FFEngine Destructor:UnInitializing the Profile "+profileName);
//FireFox.UninitProfile(profileName);
//Console.WriteLine("FFEngine Destructor:UnInitializing the Profile "+defaultProfileName);
FireFox.UninitProfile(defaultProfileName);
}
public XmlNode Aggregate()
{
//String defaultProfileName=null;
//Get Profile Names
//Console.WriteLine("FFEngine:Invoking GetDefaultProfileName:");
//defaultProfileName=FireFox.GetDefaultProfileName();
//This can be extended to get all profiles : Use FireFox.GetAllProfileNames()
//Currently we support only the default profile.
//Init XML Document
XmlDocument doc = new XmlDocument();