summaryrefslogtreecommitdiffstats
path: root/src/LashDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-02 20:56:28 +0000
committerDavid Robillard <d@drobilla.net>2006-10-02 20:56:28 +0000
commit682a43546becbc86a210003846778ebb0c38718a (patch)
tree319e4b01347490d43a20e6ccc6b85cef94ee5288 /src/LashDriver.cpp
parent5812053fd22499251e2e2cedaa90fdd80c0d0988 (diff)
downloadpatchage-682a43546becbc86a210003846778ebb0c38718a.tar.gz
patchage-682a43546becbc86a210003846778ebb0c38718a.tar.bz2
patchage-682a43546becbc86a210003846778ebb0c38718a.zip
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
Diffstat (limited to 'src/LashDriver.cpp')
-rw-r--r--src/LashDriver.cpp20
1 files changed, 9 insertions, 11 deletions
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();
}