Support Command Line Parsing
git-svn-id: svn://10.0.0.236/trunk@12895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user