Permalink
Browse files

LibMythUI: Allow LoadInBackground to accept an optional message.

If used, the message will set the contents of the busy dialog message.  Bumps library API version, so you will need to make clean and recompile plugins.
  • Loading branch information...
1 parent 1ce16f2 commit 4cf672244151763a66105cb4fa52663ea4a961d7 Robert McNamara committed Dec 21, 2010
@@ -11,7 +11,7 @@
/// Update this whenever the plug-in API changes.
/// Including changes in the libmythdb, libmyth, libmythtv, libmythav* and
/// libmythui class methods used by plug-ins.
-#define MYTH_BINARY_VERSION "0.25.20101601-1"
+#define MYTH_BINARY_VERSION "0.25.20101220-1"
/** \brief Increment this whenever the MythTV network protocol changes.
*
@@ -266,12 +266,12 @@ void MythScreenType::Load(void)
// Virtual
}
-void MythScreenType::LoadInBackground(void)
+void MythScreenType::LoadInBackground(QString message)
{
m_IsLoading = true;
m_ScreenStack->AllowReInit();
- OpenBusyPopup();
+ OpenBusyPopup(message);
ScreenLoadTask *loadTask = new ScreenLoadTask(this);
QThreadPool::globalInstance()->start(loadTask);
@@ -98,7 +98,7 @@ class MPUBLIC MythScreenType : public MythUIType
virtual void Load(void); // ONLY to be used for loading data, NO UI WORK
virtual void Init(void); // UI work to draw data loaded
- void LoadInBackground(void);
+ void LoadInBackground(QString message = "");
void ReloadInBackground(void);
void OpenBusyPopup(QString message = "");

0 comments on commit 4cf6722

Please sign in to comment.