This commit is contained in:
Manohar
2006-03-01 10:47:25 +00:00
parent 1cdb45bdc2
commit 9a3daac2ef
2 changed files with 22 additions and 22 deletions

View File

@@ -52,16 +52,16 @@ namespace Novell.CASA.DataEngines
public FFEngine()
{
//Get Profile Names
Console.WriteLine("FFEngine Constructor:Invoking GetDefaultProfileName:");
//Console.WriteLine("FFEngine Constructor:Invoking GetDefaultProfileName:");
defaultProfileName=FireFox.GetDefaultProfileName();
//This can be extended to get all profiles : Use FireFox.GetAllProfileNames()
//Currently we support only the default profile.
if(defaultProfileName!=null)
{
Console.WriteLine("FFEngine Constructor:Initializing the Profile "+defaultProfileName);
//Console.WriteLine("FFEngine Constructor:Initializing the Profile "+defaultProfileName);
initProfileStatus=FireFox.InitProfile(defaultProfileName);
Console.WriteLine("FFEngine Constructor:InitProfile returned "+initProfileStatus);
//Console.WriteLine("FFEngine Constructor:InitProfile returned "+initProfileStatus);
}
else
Console.WriteLine("FFEngine Constructor:Could not get a Default Profile Name");
@@ -96,7 +96,7 @@ namespace Novell.CASA.DataEngines
//Initialize & Aggregate any other profiles here if required....
Console.WriteLine("FFEngine:Returning Aggregated Node for FireFox:");
//Console.WriteLine("FFEngine:Returning Aggregated Node for FireFox:");
return rootElem;
}
@@ -188,7 +188,7 @@ namespace Novell.CASA.DataEngines
{
Host hostList = null;
Console.WriteLine("FireFox:Getting Data for profile "+profileName);
//Console.WriteLine("FireFox:Getting Data for profile "+profileName);
hostList=FireFox.GetProfileData(profileName);
if(hostList!=null)
@@ -215,8 +215,8 @@ namespace Novell.CASA.DataEngines
hostName = (String)Marshal.PtrToStringAnsi(hostList.hostName);
Console.WriteLine("--------------------------------------------");
Console.WriteLine("FFEngine::hostName="+hostName);
//Console.WriteLine("--------------------------------------------");
//Console.WriteLine("FFEngine::hostName="+hostName);
XmlAttribute secIdAttr = doc.CreateAttribute(ConstStrings.CCF_ID); //<Secret>-ID
secIdAttr.Value = hostName;
xmlSecretElement.SetAttributeNode(secIdAttr);
@@ -236,11 +236,11 @@ namespace Novell.CASA.DataEngines
XmlElement xmlValueElement = null;
name = (String)Marshal.PtrToStringAnsi(hostElementList.name);
Console.WriteLine("FFEngine::name="+name);
//Console.WriteLine("FFEngine::name="+name);
value = (String)Marshal.PtrToStringAnsi(hostElementList.value);
Console.WriteLine("FFEngine::value="+value);
//Console.WriteLine("FFEngine::value="+value);
isPassword = hostElementList.isPassword;
Console.WriteLine("FFEngine::isPassword="+isPassword);
//Console.WriteLine("FFEngine::isPassword="+isPassword);
xmlKeyElement = doc.CreateElement(ConstStrings.CCF_KEY); //<Key
keyIdAttr = doc.CreateAttribute(ConstStrings.CCF_ID); //<Key>-ID
@@ -266,7 +266,7 @@ namespace Novell.CASA.DataEngines
//OUTERLOOP-Loop for hostList
if (hostList.next == IntPtr.Zero)
{
Console.WriteLine("FFEngine::End of all Data Items##");
//Console.WriteLine("FFEngine::End of all Data Items##");
break;
}