diff options
author | David Robillard <d@drobilla.net> | 2010-12-15 03:59:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-15 03:59:18 +0000 |
commit | cbe721af1a9c84169cec5e58ffbd71367bb8199b (patch) | |
tree | b209ed019e1d4ddb9d190f93404837860c3cd569 /src/LashClient.cpp | |
parent | 3379430e15a59a96562e8cdebe7cbf81efc1b3d3 (diff) | |
download | patchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.tar.gz patchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.tar.bz2 patchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.zip |
Simplify LashClient.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2694 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/LashClient.cpp')
-rw-r--r-- | src/LashClient.cpp | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/src/LashClient.cpp b/src/LashClient.cpp index c41fef6..a7dd4ae 100644 --- a/src/LashClient.cpp +++ b/src/LashClient.cpp @@ -1,5 +1,5 @@ -// -*- Mode: C++ ; indent-tabs-mode: t -*- /* This file is part of Patchage. + * Copyright (C) 2008-2010 David Robillard <http://drobilla.net> * Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name> * * Patchage is free software; you can redistribute it and/or modify it under the @@ -22,31 +22,25 @@ using namespace std; struct LashClientImpl { - LashProxy* proxy; - Project* project; - string id; - string name; + Project* project; + string id; + string name; }; LashClient::LashClient( - LashProxy* proxy, - Project* project, + Project* project, const string& id, const string& name) { - _impl = new LashClientImpl; - _impl->proxy = proxy; + _impl = new LashClientImpl(); _impl->project = project; - _impl->id = id; - _impl->name = name; - - //g_app->info_msg("client created"); + _impl->id = id; + _impl->name = name; } LashClient::~LashClient() { delete _impl; - //g_app->info_msg("client destroyed"); } Project* @@ -68,16 +62,10 @@ LashClient::get_name() const } void -LashClient::do_rename(const string& name) +LashClient::set_name(const string& name) { if (_impl->name != name) { - //_impl->proxy->client_rename(_impl->id, name); + _impl->name = name; + _signal_renamed.emit(); } } - -void -LashClient::on_name_changed(const string& name) -{ - _impl->name = name; - _signal_renamed.emit(); -} |