Permalink
Browse files

added: SetTitle() to progress bar handle

useful when you want to change the title of the task using it
  • Loading branch information...
1 parent 776252b commit 779a390537ad54869bdb5e09e72b3847d03b7677 spiff committed Oct 6, 2012
Showing with 7 additions and 0 deletions.
  1. +6 −0 xbmc/dialogs/GUIDialogExtendedProgressBar.cpp
  2. +1 −0 xbmc/dialogs/GUIDialogExtendedProgressBar.h
@@ -45,6 +45,12 @@ void CGUIDialogProgressBarHandle::SetText(const string &strText)
m_strText = strText;
}
+void CGUIDialogProgressBarHandle::SetTitle(const string &strTitle)
+{
+ CSingleLock lock(m_critSection);
+ m_strTitle = strTitle;
+}
+
void CGUIDialogProgressBarHandle::SetProgress(int currentItem, int itemCount)
{
float fPercentage = (float)((currentItem*100)/itemCount);
@@ -31,6 +31,7 @@ class CGUIDialogProgressBarHandle
virtual ~CGUIDialogProgressBarHandle(void) {}
const std::string &Title(void) { return m_strTitle; }
+ void SetTitle(const std::string &strTitle);
std::string Text(void) const;
void SetText(const std::string &strText);

0 comments on commit 779a390

Please sign in to comment.