Support Command Line Parsing

git-svn-id: svn://10.0.0.236/trunk@12895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider%netscape.com
1998-10-15 17:56:49 +00:00
parent 684148cae8
commit c08f341ef8
8 changed files with 150 additions and 65 deletions

View File

@@ -82,12 +82,18 @@ nsShellInstance::nsShellInstance()
mStreamManager = nsnull;
mToolbarManager = nsnull;
mDeviceContext = nsnull;
mOptState = nsnull;
mArgc = 0;
mArgv = nsnull;
}
nsShellInstance::~nsShellInstance()
{
//NS_ShutdownINetService();
if (nsnull != mOptState)
PL_DestroyOptState(mOptState);
NS_IF_RELEASE(mDeviceContext);
NS_IF_RELEASE(mApplicationWindow);
@@ -189,6 +195,15 @@ nsIPref * nsShellInstance::GetPreferences()
return (mPref) ;
}
nsresult nsShellInstance::GetCommandLineOptions(PLOptState** aOptState, const char * aOptions)
{
mOptState = PL_CreateOptState(mArgc, mArgv, aOptions);
*aOptState = mOptState;
return (NS_OK) ;
}
nsIStreamManager * nsShellInstance::GetStreamManager()
{
return (mStreamManager) ;