diff options
author | David Robillard <d@drobilla.net> | 2010-12-15 04:13:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-15 04:13:23 +0000 |
commit | ef93b2e47870c95e9c9b547a23f9a4279a20451f (patch) | |
tree | 9d07a96a0353fb42f6dfd60798a298dd7db1f533 /src/Project.cpp | |
parent | cbe721af1a9c84169cec5e58ffbd71367bb8199b (diff) | |
download | patchage-ef93b2e47870c95e9c9b547a23f9a4279a20451f.tar.gz patchage-ef93b2e47870c95e9c9b547a23f9a4279a20451f.tar.bz2 patchage-ef93b2e47870c95e9c9b547a23f9a4279a20451f.zip |
LashClient => Client.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2695 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Project.cpp')
-rw-r--r-- | src/Project.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/Project.cpp b/src/Project.cpp index a6e657b..0c19b8e 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -1,6 +1,5 @@ -// -*- Mode: C++ ; indent-tabs-mode: t -*- /* This file is part of Patchage. - * Copyright (C) 2008-2009 David Robillard <http://drobilla.net> + * 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 @@ -19,7 +18,7 @@ #include "Project.hpp" #include "LashProxy.hpp" -#include "LashClient.hpp" +#include "Client.hpp" using namespace std; using boost::shared_ptr; @@ -30,7 +29,7 @@ struct ProjectImpl { string description; string notes; bool modified_status; - list< shared_ptr<LashClient> > clients; + list< shared_ptr<Client> > clients; }; Project::Project(LashProxy* proxy, const string& name) @@ -39,27 +38,24 @@ Project::Project(LashProxy* proxy, const string& name) proxy->get_loaded_project_properties(name, properties); - _impl = new ProjectImpl; + _impl = new ProjectImpl(); _impl->proxy = proxy; _impl->name = name; _impl->description = properties.description; _impl->notes = properties.notes; _impl->modified_status = properties.modified_status; - - //g_app->info_msg("project created"); } Project::~Project() { delete _impl; - //g_app->info_msg("project destroyed"); } void Project::clear() { - shared_ptr<LashClient> client; + shared_ptr<Client> client; while (!_impl->clients.empty()) { client = _impl->clients.front(); @@ -106,7 +102,7 @@ Project::get_clients() const } void -Project::on_client_added(shared_ptr<LashClient> client) +Project::on_client_added(shared_ptr<Client> client) { _impl->clients.push_back(client); _signal_client_added.emit(client); @@ -115,9 +111,10 @@ Project::on_client_added(shared_ptr<LashClient> client) void Project::on_client_removed(const string& id) { - shared_ptr<LashClient> client; + shared_ptr<Client> client; - for (list< shared_ptr<LashClient> >::iterator iter = _impl->clients.begin(); iter != _impl->clients.end(); iter++) { + for (list< shared_ptr<Client> >::iterator iter = _impl->clients.begin(); + iter != _impl->clients.end(); iter++) { client = *iter; if (client->get_id() == id) { |