Skip to content

Commit

Permalink
LibMythUI: Allow LoadInBackground to accept an optional message.
Browse files Browse the repository at this point in the history
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
Robert McNamara committed Dec 21, 2010
1 parent 1ce16f2 commit 4cf6722
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythdb/mythversion.h
Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythscreentype.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythscreentype.h
Expand Up @@ -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 = "");
Expand Down

0 comments on commit 4cf6722

Please sign in to comment.