mStylesheet = stylesheet;
}
+void Application::SetCommandLineOptions( int* argc, char **argv[] )
+{
+ delete mCommandLineOptions;
+
+ mCommandLineOptions = new CommandLineOptions( argc, argv );
+
+ mFramework->SetCommandLineOptions( argc, argv );
+}
+
ApplicationPtr Application::GetPreInitializedApplication()
{
return gPreInitializedApplication;
*/
void SetStyleSheet( const std::string& stylesheet );
+ /**
+ * Sets a command line options.
+ * This is used in case of the preinitialized application.
+ * @param[in] argc A pointer to the number of arguments
+ * @param[in] argv A pointer to the argument list
+ */
+ void SetCommandLineOptions( int* argc, char **argv[] );
+
public: // Signals
/**
std::string GetBundleId() const;
/**
+ * Sets a command line options.
+ * This is used in case of the preinitialized application.
+ * @param[in] argc A pointer to the number of arguments
+ * @param[in] argv A pointer to the argument list
+ */
+ void SetCommandLineOptions( int* argc, char **argv[] )
+ {
+ mArgc = argc;
+ mArgv = argv;
+ }
+
+
+ /**
* Gets the path at which application resources are stored.
*/
static std::string GetResourcePath();
Internal::Adaptor::ApplicationPtr internal = Internal::Adaptor::Application::GetPreInitializedApplication();
if( internal )
{
+ // pre-initialized application
+ internal->SetCommandLineOptions( argc, argv );
if( argc && ( *argc > 0 ) )
{
internal->GetWindow().SetClass( (*argv)[0], "" );
Internal::Adaptor::ApplicationPtr internal = Internal::Adaptor::Application::GetPreInitializedApplication();
if( internal )
{
+ // pre-initialized application
+ internal->SetCommandLineOptions( argc, argv );
if( argc && ( *argc > 0 ) )
{
internal->GetWindow().SetClass( (*argv)[0], "" );
Internal::Adaptor::ApplicationPtr internal = Internal::Adaptor::Application::GetPreInitializedApplication();
if( internal )
{
+ // pre-initialized application
+ internal->SetCommandLineOptions( argc, argv );
if( argc && ( *argc > 0 ) )
{
internal->GetWindow().SetClass( (*argv)[0], "" );
Internal::Adaptor::ApplicationPtr internal = Internal::Adaptor::Application::GetPreInitializedApplication();
if( internal )
{
+ // pre-initialized application
+ internal->SetCommandLineOptions( argc, argv );
if( argc && ( *argc > 0 ) )
{
internal->GetWindow().SetClass( (*argv)[0], "" );