00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef RAUL_LASH_CLIENT_HPP
00019 #define RAUL_LASH_CLIENT_HPP
00020
00021 #include <string>
00022 #include <boost/enable_shared_from_this.hpp>
00023 #include <lash/lash.h>
00024 #include <raul/SharedPtr.hpp>
00025
00026 namespace Raul {
00027
00028
00029 class LashClient : public boost::enable_shared_from_this<LashClient> {
00030 public:
00031 virtual ~LashClient();
00032
00033 static SharedPtr<LashClient> create(
00034 lash_args_t* args,
00035 const std::string& name,
00036 int flags);
00037
00038 lash_client_t* lash_client() { return _lash_client; };
00039
00040 bool enabled() { return lash_enabled(_lash_client); }
00041
00042 void process_events();
00043
00044 protected:
00045 LashClient(lash_client_t* client);
00046
00047 virtual void handle_event(lash_event_t*) {}
00048 virtual void handle_config(lash_config_t*) {}
00049
00050 friend class LashProject;
00051 virtual void project_closed(const std::string& ) {}
00052
00053 lash_client_t* _lash_client;
00054 };
00055
00056
00057 }
00058
00059 #endif // RAUL_LASH_CLIENT_HPP
00060