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
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<const Glib::ustring>::Ref editedPlaylistToken;
Ptr<const std::string>::Ref editedPlaylistTokenString;
try {
@ -1118,6 +1120,7 @@ GLiveSupport :: openPlaylistForEditing(Ptr<const UniqueId>::Ref playlistId)
}
editedPlaylist = storage->editPlaylist(sessionId, playlistId);
editedPlaylist->setMetadata(userName, "dc:creator");
try {
Ptr<const Glib::ustring>::Ref editToken(new const Glib::ustring(

View File

@ -202,7 +202,12 @@ class GLiveSupport : public LocalizedConfigurable,
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;