diff --git a/livesupport/modules/core/etc/audioClip.xml b/livesupport/modules/core/etc/audioClip.xml
index 2944b07ce..f08267941 100644
--- a/livesupport/modules/core/etc/audioClip.xml
+++ b/livesupport/modules/core/etc/audioClip.xml
@@ -4,5 +4,6 @@
+
]>
-
+
diff --git a/livesupport/modules/core/etc/playlist.xml b/livesupport/modules/core/etc/playlist.xml
index 83a7670fd..59c9665c9 100644
--- a/livesupport/modules/core/etc/playlist.xml
+++ b/livesupport/modules/core/etc/playlist.xml
@@ -12,6 +12,7 @@
+
@@ -21,10 +22,10 @@
-
+
-
+
diff --git a/livesupport/modules/core/etc/playlistElement.xml b/livesupport/modules/core/etc/playlistElement.xml
index 2e8e2bccc..05323ce81 100644
--- a/livesupport/modules/core/etc/playlistElement.xml
+++ b/livesupport/modules/core/etc/playlistElement.xml
@@ -8,6 +8,7 @@
+
@@ -16,6 +17,6 @@
]>
-
+
diff --git a/livesupport/modules/core/include/LiveSupport/Core/AudioClip.h b/livesupport/modules/core/include/LiveSupport/Core/AudioClip.h
index 71aaa14a1..2813676ef 100644
--- a/livesupport/modules/core/include/LiveSupport/Core/AudioClip.h
+++ b/livesupport/modules/core/include/LiveSupport/Core/AudioClip.h
@@ -22,7 +22,7 @@
Author : $Author: fgerlits $
- Version : $Revision: 1.3 $
+ Version : $Revision: 1.4 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/AudioClip.h,v $
------------------------------------------------------------------------------*/
@@ -72,7 +72,7 @@ using namespace boost::posix_time;
* in a Playlist.
*
* @author $Author: fgerlits $
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
class AudioClip : public Configurable
{
@@ -93,9 +93,9 @@ class AudioClip : public Configurable
Ptr::Ref playlength;
/**
- * The title of the audio clip.
+ * The location of the audio clip.
*/
-// Ptr::Ref title;
+ Ptr::Ref uri;
public:
@@ -114,12 +114,12 @@ class AudioClip : public Configurable
* @param playlength the playing length of the audio clip.
*/
AudioClip(Ptr::Ref id,
- Ptr::Ref playlength) throw()
-// Ptr::Ref title) throw ()
+ Ptr::Ref playlength,
+ Ptr::Ref uri = Ptr::Ref()) throw ()
{
this->id = id;
this->playlength = playlength;
-// this->title = title;
+ this->uri = uri;
}
/**
@@ -178,15 +178,15 @@ class AudioClip : public Configurable
}
/**
- * Return the title of this audio clip.
+ * Return the URI of this audio clip.
*
- * @return the title of this audio clip.
+ * @return the URI of this audio clip.
*/
-// Ptr::Ref
-// getTitle(void) const throw ()
-// {
-// return title;
-// }
+ Ptr::Ref
+ getUri(void) const throw ()
+ {
+ return uri;
+ }
};
diff --git a/livesupport/modules/core/src/AudioClip.cxx b/livesupport/modules/core/src/AudioClip.cxx
index 48b18d261..6dec6fd9a 100644
--- a/livesupport/modules/core/src/AudioClip.cxx
+++ b/livesupport/modules/core/src/AudioClip.cxx
@@ -22,7 +22,7 @@
Author : $Author: fgerlits $
- Version : $Revision: 1.3 $
+ Version : $Revision: 1.4 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/src/AudioClip.cxx,v $
------------------------------------------------------------------------------*/
@@ -57,9 +57,9 @@ const std::string AudioClip::configElementNameStr = "audioClip";
static const std::string idAttrName = "id";
/**
- * The name of the attribute to get the title of the audio clip.
+ * The name of the attribute to get the URI of the audio clip.
*/
-//static const std::string titleAttrName = "title";
+static const std::string uriAttrName = "uri";
/**
* The name of the attribute to get the playlength of the audio clip.
@@ -96,15 +96,15 @@ AudioClip :: configure(const xmlpp::Element & element)
strStr.str(attribute->get_value());
strStr >> idValue;
id.reset(new UniqueId(idValue));
-/*
- if (!(attribute = element.get_attribute(titleAttrName))) {
+
+ if (!(attribute = element.get_attribute(uriAttrName))) {
std::string eMsg = "Missing attribute ";
- eMsg += idAttrName;
+ eMsg += uriAttrName;
throw std::invalid_argument(eMsg);
}
- std::string titleValue = attribute->get_value();
- title.reset(new std::string(titleValue));
-*/
+ std::string uriValue = attribute->get_value();
+ uri.reset(new std::string(uriValue));
+
if (!(attribute = element.get_attribute(playlengthAttrName))) {
std::string eMsg = "missing attribute ";
eMsg += idAttrName;