Skip to content

Commit 3a10053

Browse files
author
Kurtis Nusbaum
committed
Updated version to 0.5.1
1 parent 3b50dce commit 3a10053

File tree

5 files changed

+31
-10
lines changed

5 files changed

+31
-10
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cmake_minimum_required(VERSION 2.8.7)
2020
PROJECT(UDJ)
2121
SET(PROJECT_VERSION_MAJOR 0)
2222
SET(PROJECT_VERSION_MINOR 5)
23-
SET(PROJECT_VERSION_PATCH 0)
23+
SET(PROJECT_VERSION_PATCH 1)
2424
SET(PROJECT_COPYRIGHT_YEAR 2011)
2525
SET(PROJECT_VERNDOR "Bazaar Solutions")
2626
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")

ChangeLog

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
Version 0.5.0
2-
Initial version of the UDJ Player.
2+
Initial version of the UDJ Player
3+
4+
Version 0.5.1
5+
Fixed playback issues for Windows player. Windows player now has an updater.

cmake/modules/NSIS.template.in

+2
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ Section "UDJ Player" SEC_UDJ_PLAYER
330330
File "${MING_BIN}\libpng15-15.dll"
331331
File "${MING_BIN}\libjpeg-8.dll"
332332
File "${MING_BIN}\zlib1.dll"
333+
File "${MING_BIN}\libqtsparkle.dll"
334+
333335

334336

335337
; Jabber

src/MetaWindow.cpp

+12-8
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
#include <QInputDialog>
4646
#include <QDesktopServices>
4747

48-
#if IS_WINDOWS_BUILD
49-
#include <qtsparkle/Updater>
50-
#endif
5148

5249

5350
namespace UDJ{
@@ -64,6 +61,11 @@ MetaWindow::MetaWindow(
6461
isQuiting(false)
6562
{
6663
dataStore = new DataStore(username, password, ticketHash, userId, this);
64+
#if IS_WINDOWS_BUILD
65+
updater = new qtsparkle::Updater(
66+
QUrl(UDJ_WINDOWS_UPDATE_URL), this);
67+
#endif
68+
6769
createActions();
6870
setupUi();
6971
setupMenus();
@@ -106,11 +108,6 @@ MetaWindow::MetaWindow(
106108
this,
107109
SLOT(checkForITunes()));
108110

109-
#if IS_WINDOWS_BUILD
110-
qtsparkle::Updater* updater = new qtsparkle::Updater(
111-
QUrl(UDJ_WINDOWS_UPDATE_URL), this);
112-
#endif
113-
114111
}
115112

116113
void MetaWindow::closeEvent(QCloseEvent *event){
@@ -276,6 +273,10 @@ void MetaWindow::createActions(){
276273
viewLogAction = new QAction(tr("View &Log"), this);
277274
viewLogAction->setShortcut(tr("Ctrl+L"));
278275
viewAboutAction = new QAction(tr("About"), this);
276+
#if IS_WINDOWS_BUILD
277+
checkUpdateAction = new QAction(tr("Check For Updates"), this);
278+
connect(checkUpdateAction, SIGNAL(triggerd()), updater, SLOT(CheckNow()));
279+
#endif
279280
connect(addMusicAction, SIGNAL(triggered()), this, SLOT(addMusicToLibrary()));
280281
connect(quitAction, SIGNAL(triggered()), this, SLOT(close()));
281282
connect(addSongAction, SIGNAL(triggered()), this, SLOT(addSongToLibrary()));
@@ -295,6 +296,9 @@ void MetaWindow::setupMenus(){
295296
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
296297
helpMenu->addAction(viewLogAction);
297298
helpMenu->addAction(viewAboutAction);
299+
#if IS_WINDOWS_BUILD
300+
helpMenu->addAction(checkUpdateAction);
301+
#endif
298302

299303
}
300304

src/MetaWindow.hpp

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#include <QSqlTableModel>
2626
#include "UDJServerConnection.hpp"
2727
#include "PlaybackWidget.hpp"
28+
#if IS_WINDOWS_BUILD
29+
#include <qtsparkle/Updater>
30+
#endif
2831

2932
class QTabWidget;
3033
class QPushButton;
@@ -243,6 +246,13 @@ private slots:
243246
*/
244247
QAction *removePasswordAction;
245248

249+
#if IS_WINDOWS_BUILD
250+
/**
251+
* \brief Checks to se if there is an update available for the player.
252+
*/
253+
QAction* checkUpdateAction;
254+
#endif
255+
246256
// QFileSystemWatcher* fileWatcher;
247257

248258

@@ -273,6 +283,8 @@ private slots:
273283
/** \brief A flag indicating whether or not the client is in the process of quitting. */
274284
bool isQuiting;
275285

286+
qtsparkle::Updater* updater;
287+
276288
//@}
277289

278290
/** @name Private Functions */

0 commit comments

Comments
 (0)