Fix sketchy casts.
[ardour.git] / libs / ardour / ardour / named_selection.h
index 87b71e73ffb12c3176ec199d9c2ecbe9068ea475..d41f104e1a1518e0684621fd42e92772b33c1c9f 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__
@@ -23,8 +22,9 @@
 
 #include <string>
 #include <list>
+#include <boost/shared_ptr.hpp>
 
-#include <pbd/stateful.h> 
+#include "pbd/stateful.h"
 
 class XMLNode;
 
@@ -33,18 +33,18 @@ namespace ARDOUR
 class Session;
 class Playlist;
 
-struct NamedSelection : public Stateful
+struct NamedSelection : public PBD::Stateful
 {
-    NamedSelection (std::string, std::list<Playlist*>&);
+    NamedSelection (std::string, std::list<boost::shared_ptr<Playlist> >&);
     NamedSelection (Session&, const XMLNode&);
     virtual ~NamedSelection ();
 
     std::string name;
-    std::list<Playlist*> playlists;
+    std::list<boost::shared_ptr<Playlist> > playlists;
 
     XMLNode& get_state (void);
 
-    int set_state (const XMLNode&);
+    int set_state (const XMLNode&, int version);
 
     static sigc::signal<void,NamedSelection*> NamedSelectionCreated;
 };