From 682a43546becbc86a210003846778ebb0c38718a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 Oct 2006 20:56:28 +0000 Subject: boost::shared_ptr-ification of FlowCanvas. Extreme performance enhancements in Patchage (eg don't redraw the whole canvas every time). Patchage work towards being a control centre. Broken commit (ingen doesn't even compile) for machine transfer, don't even bother trying this revision. git-svn-id: http://svn.drobilla.net/lad/patchage@147 a436a847-0d15-0410-975c-d299462d15a1 --- src/LashDriver.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/LashDriver.cpp') diff --git a/src/LashDriver.cpp b/src/LashDriver.cpp index c4a89b2..7989aa9 100644 --- a/src/LashDriver.cpp +++ b/src/LashDriver.cpp @@ -1,11 +1,11 @@ /* This file is part of Patchage. Copyright (C) 2005 Dave Robillard. * - * Om is free software; you can redistribute it and/or modify it under the + * Patchage is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * - * Om is distributed in the hope that it will be useful, but WITHOUT ANY + * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. * @@ -44,25 +44,22 @@ LashDriver::~LashDriver() void LashDriver::attach(bool launch_daemon) { - cout << "Connecting to Lash... "; - cout.flush(); - - if (m_client != NULL) { - cout << "already connected." << endl; + // Already connected + if (m_client) return; - } int lash_flags = LASH_Config_File; if (launch_daemon) lash_flags |= LASH_No_Start_Server; m_client = lash_init(m_args, PACKAGE_NAME, lash_flags, LASH_PROTOCOL(2, 0)); if (m_client == NULL) { - cout << "Failed. Session management will not occur." << endl; + m_app->status_message("[LASH] Unable to attach to server"); } else { lash_event_t* event = lash_event_new_with_type(LASH_Client_Name); lash_event_set_string(event, "Patchage"); lash_send_event(m_client, event); - cout << "Connected" << endl; + signal_attached.emit(); + m_app->status_message("[LASH] Attached"); } } @@ -72,7 +69,8 @@ LashDriver::detach() { // FIXME: send some notification that we're gone?? m_client = NULL; - cout << "Disconnected from Lash" << endl; + m_app->status_message("[LASH] Detached"); + signal_detached.emit(); } -- cgit v1.2.1