This commit is contained in:
fgerlits 2007-10-25 16:30:12 +00:00
parent 091e9dfcf5
commit 43d8dd6ea3
2 changed files with 11 additions and 3 deletions

View file

@ -662,8 +662,8 @@ GLiveSupport :: changeLanguage(Ptr<const std::string>::Ref locale)
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
bool bool
LiveSupport :: GLiveSupport :: LiveSupport :: GLiveSupport ::
GLiveSupport :: login(const std::string & login, GLiveSupport :: login(const std::string & login,
const std::string & password) throw () const std::string & password) throw ()
{ {
try { try {
sessionId = authentication->login(login, password); sessionId = authentication->login(login, password);
@ -671,6 +671,8 @@ GLiveSupport :: login(const std::string & login,
return false; return false;
} }
userName.reset(new Glib::ustring(login));
Ptr<const Glib::ustring>::Ref editedPlaylistToken; Ptr<const Glib::ustring>::Ref editedPlaylistToken;
Ptr<const std::string>::Ref editedPlaylistTokenString; Ptr<const std::string>::Ref editedPlaylistTokenString;
try { try {
@ -1118,6 +1120,7 @@ GLiveSupport :: openPlaylistForEditing(Ptr<const UniqueId>::Ref playlistId)
} }
editedPlaylist = storage->editPlaylist(sessionId, playlistId); editedPlaylist = storage->editPlaylist(sessionId, playlistId);
editedPlaylist->setMetadata(userName, "dc:creator");
try { try {
Ptr<const Glib::ustring>::Ref editToken(new const Glib::ustring( Ptr<const Glib::ustring>::Ref editToken(new const Glib::ustring(

View file

@ -202,7 +202,12 @@ class GLiveSupport : public LocalizedConfigurable,
Ptr<AudioPlayerInterface>::Ref cuePlayer; Ptr<AudioPlayerInterface>::Ref cuePlayer;
/** /**
* The session id for the user. * The user id for the logged-in user.
*/
Ptr<Glib::ustring>::Ref userName;
/**
* The session id for the logged-in user.
*/ */
Ptr<SessionId>::Ref sessionId; Ptr<SessionId>::Ref sessionId;