Changeset 2206

Show
Ignore:
Timestamp:
10/31/09 16:33:42 (10 months ago)
Author:
drobilla
Message:

Fire signals on add_property as well as set_property (fix ticket #389).

Location:
trunk/ingen/src/client
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ingen/src/client/ObjectModel.cpp

    r2193 r2206  
    5757 
    5858 
     59void 
     60ObjectModel::add_property(const Raul::URI& key, const Raul::Atom& value) 
     61{ 
     62        ResourceImpl::add_property(key, value); 
     63        signal_property.emit(key, value); 
     64} 
     65 
     66 
    5967const Atom& 
    6068ObjectModel::get_property(const Raul::URI& key) const 
  • trunk/ingen/src/client/ObjectModel.hpp

    r2193 r2206  
    5555        virtual ~ObjectModel(); 
    5656 
    57         virtual const Raul::Atom& get_property(const Raul::URI& key) const; 
     57        const Raul::Atom& get_property(const Raul::URI& key) const; 
    5858 
    59         virtual Raul::Atom& set_property(const Raul::URI& key, const Raul::Atom& value); 
    60         virtual Raul::Atom& set_meta_property(const Raul::URI& key, const Raul::Atom& value); 
     59        Raul::Atom& set_property(const Raul::URI& key, const Raul::Atom& value); 
     60        void        add_property(const Raul::URI& key, const Raul::Atom& value); 
     61        Raul::Atom& set_meta_property(const Raul::URI& key, const Raul::Atom& value); 
    6162 
    6263        Resource&              meta()             { return _meta; }