Fix a few framecnt / framepos type confusions.
[ardour.git] / libs / ardour / ardour / named_selection.h
index 87b71e73ffb12c3176ec199d9c2ecbe9068ea475..f03db205749699d6c5a442db70f804f1d77f4e7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2003 Paul Davis 
+    Copyright (C) 2003 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_named_selection_h__
 
 #include <string>
 #include <list>
+#include <boost/shared_ptr.hpp>
 
-#include <pbd/stateful.h> 
+#include "pbd/stateful.h"
 
 class XMLNode;
 
 namespace ARDOUR
 {
+
 class Session;
 class Playlist;
 
-struct NamedSelection : public Stateful
+struct NamedSelection : public PBD::Stateful
 {
-    NamedSelection (std::string, std::list<Playlist*>&);
-    NamedSelection (Session&, const XMLNode&);
-    virtual ~NamedSelection ();
+       NamedSelection (std::string, std::list<boost::shared_ptr<Playlist> >&);
+       NamedSelection (Session&, const XMLNode&);
+       virtual ~NamedSelection ();
 
-    std::string name;
-    std::list<Playlist*> playlists;
+       std::string name;
+       std::list<boost::shared_ptr<Playlist> > playlists;
 
-    XMLNode& get_state (void);
+       XMLNode& get_state (void);
 
-    int set_state (const XMLNode&);
+       int set_state (const XMLNode&, int version);
 
-    static sigc::signal<void,NamedSelection*> NamedSelectionCreated;
+       static PBD::Signal1<void,NamedSelection*> NamedSelectionCreated;
 };
 
 }/* namespace ARDOUR */