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/LashProxy.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/LashProxy.cpp')
-rw-r--r-- | src/LashProxy.cpp | 66 |
1 files changed, 30 insertions, 36 deletions
diff --git a/src/LashProxy.cpp b/src/LashProxy.cpp index 02fd311..7bd9ec5 100644 --- a/src/LashProxy.cpp +++ b/src/LashProxy.cpp @@ -1,4 +1,3 @@ -// -*- Mode: C++ ; indent-tabs-mode: t -*- /* This file is part of Patchage. * Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name> * @@ -23,7 +22,7 @@ #include "LashProxy.hpp" #include "Session.hpp" #include "Project.hpp" -#include "LashClient.hpp" +#include "Client.hpp" #include "DBus.hpp" #define LASH_SERVICE "org.nongnu.LASH" @@ -42,35 +41,30 @@ struct LashProxyImpl { void error_msg(const std::string& msg); void info_msg(const std::string& msg); - static - DBusHandlerResult - dbus_message_hook( + static DBusHandlerResult dbus_message_hook( DBusConnection* connection, - DBusMessage* message, - void* proxy); - - bool - call( - bool response_expected, - const char* iface, - const char* method, + DBusMessage* message, + void* proxy); + + bool call( + bool response_expected, + const char* iface, + const char* method, DBusMessage** reply_ptr, - int in_type, + int in_type, ...); - shared_ptr<Project> - on_project_added(const string& name); + shared_ptr<Project> on_project_added(const string& name); - shared_ptr<LashClient> - on_client_added( + shared_ptr<Client> on_client_added( shared_ptr<Project> project, - string id, - string name); + string id, + string name); - bool _server_responding; - Session* _session; - LashProxy* _interface; - Patchage* _app; + bool _server_responding; + Session* _session; + LashProxy* _interface; + Patchage* _app; }; LashProxy::LashProxy(Patchage* app, Session* session) @@ -131,17 +125,17 @@ LashProxyImpl::dbus_message_hook( DBusMessage* message, void* proxy) { - const char* project_name; - const char* new_project_name; - const char* object_name; - const char* old_owner; - const char* new_owner; - const char* value_string; - const char* client_id; - const char* client_name; - dbus_bool_t modified_status; + const char* project_name; + const char* new_project_name; + const char* object_name; + const char* old_owner; + const char* new_owner; + const char* value_string; + const char* client_id; + const char* client_name; + dbus_bool_t modified_status; shared_ptr<Project> project; - shared_ptr<LashClient> client; + shared_ptr<Client> client; assert(proxy); LashProxyImpl* me = reinterpret_cast<LashProxyImpl*>(proxy); @@ -485,13 +479,13 @@ LashProxyImpl::on_project_added(const string& name) return project; } -shared_ptr<LashClient> +shared_ptr<Client> LashProxyImpl::on_client_added( shared_ptr<Project> project, string id, string name) { - shared_ptr<LashClient> client(new LashClient(project.get(), id, name)); + shared_ptr<Client> client(new Client(project.get(), id, name)); project->on_client_added(client); _session->client_add(client); |