コード例 #1
0
ファイル: App.cpp プロジェクト: MinHuZ/robomongo
 MongoShell *App::openShell(ConnectionSettings *connection, const ScriptInfo &scriptInfo)
 {
     MongoServer *server = openServer(connection, false);
     MongoShell *shell = new MongoShell(server,scriptInfo);
     _shells.push_back(shell);
     _bus->publish(new OpeningShellEvent(this, shell));
     shell->execute();
     return shell;
 }
コード例 #2
0
ファイル: App.cpp プロジェクト: aturki/robomongo
    void App::openShell(ConnectionSettings *connection, const ScriptInfo &scriptInfo)
    {
        MongoServer *server = openServerInternal(connection, ConnectionSecondary);
        if (!server)
            return;

        MongoShell *shell = new MongoShell(server, scriptInfo);
        _shells.push_back(shell);
        _bus->publish(new OpeningShellEvent(this, shell));
        shell->execute();
        return;
    }