From 43d8dd6ea31c4ff819664130400fe3a73e3cee92 Mon Sep 17 00:00:00 2001 From: fgerlits Date: Thu, 25 Oct 2007 16:30:12 +0000 Subject: [PATCH] fixed #2265 --- campcaster/src/products/gLiveSupport/src/GLiveSupport.cxx | 7 +++++-- campcaster/src/products/gLiveSupport/src/GLiveSupport.h | 7 ++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/campcaster/src/products/gLiveSupport/src/GLiveSupport.cxx b/campcaster/src/products/gLiveSupport/src/GLiveSupport.cxx index cc3953506..8638b1648 100644 --- a/campcaster/src/products/gLiveSupport/src/GLiveSupport.cxx +++ b/campcaster/src/products/gLiveSupport/src/GLiveSupport.cxx @@ -662,8 +662,8 @@ GLiveSupport :: changeLanguage(Ptr::Ref locale) *----------------------------------------------------------------------------*/ bool LiveSupport :: GLiveSupport :: -GLiveSupport :: login(const std::string & login, - const std::string & password) throw () +GLiveSupport :: login(const std::string & login, + const std::string & password) throw () { try { sessionId = authentication->login(login, password); @@ -671,6 +671,8 @@ GLiveSupport :: login(const std::string & login, return false; } + userName.reset(new Glib::ustring(login)); + Ptr::Ref editedPlaylistToken; Ptr::Ref editedPlaylistTokenString; try { @@ -1118,6 +1120,7 @@ GLiveSupport :: openPlaylistForEditing(Ptr::Ref playlistId) } editedPlaylist = storage->editPlaylist(sessionId, playlistId); + editedPlaylist->setMetadata(userName, "dc:creator"); try { Ptr::Ref editToken(new const Glib::ustring( diff --git a/campcaster/src/products/gLiveSupport/src/GLiveSupport.h b/campcaster/src/products/gLiveSupport/src/GLiveSupport.h index 07520d310..64d59ad58 100644 --- a/campcaster/src/products/gLiveSupport/src/GLiveSupport.h +++ b/campcaster/src/products/gLiveSupport/src/GLiveSupport.h @@ -202,7 +202,12 @@ class GLiveSupport : public LocalizedConfigurable, Ptr::Ref cuePlayer; /** - * The session id for the user. + * The user id for the logged-in user. + */ + Ptr::Ref userName; + + /** + * The session id for the logged-in user. */ Ptr::Ref sessionId;