[Jahshaka-cvs] SF.net SVN: editopia: [32] cinesuite/cineplay-cinecode/trunk/src
Status: Beta
Brought to you by:
jahshaka
From: <tim...@us...> - 2008-01-25 15:57:47
|
Revision: 32 http://editopia.svn.sourceforge.net/editopia/?rev=32&view=rev Author: timdewhirst Date: 2008-01-25 07:57:36 -0800 (Fri, 25 Jan 2008) Log Message: ----------- audiotube - fixup checking for updates (-> updates.audiotube.com) - cleanup - remove an unnecessary mutex Modified Paths: -------------- cinesuite/cineplay-cinecode/trunk/src/Release.cpp cinesuite/cineplay-cinecode/trunk/src/Release.h Modified: cinesuite/cineplay-cinecode/trunk/src/Release.cpp =================================================================== --- cinesuite/cineplay-cinecode/trunk/src/Release.cpp 2008-01-25 15:56:50 UTC (rev 31) +++ cinesuite/cineplay-cinecode/trunk/src/Release.cpp 2008-01-25 15:57:36 UTC (rev 32) @@ -54,10 +54,10 @@ { version = ver.latin1(); #ifdef BUILD_CINECODE - QString url( "http://updates.editopia.com/cineplay/cinecode.txt" ); + QString url( "http://updates.audiotube.com/cineplay/cinecode.txt" ); QString str = "cinecode.txt"; #else - QString url( "http://updates.editopia.com/cineplay/cineplay.txt" ); + QString url( "http://updates.audiotube.com/cineplay/cineplay.txt" ); QString str = "cineplay.txt"; #endif @@ -73,9 +73,6 @@ void Release::getVersion() { - QMutex mutex; - mutex.lock(); - if ( !f.open( IO_ReadWrite | IO_Raw ) ) { qWarning( "Release::getVersion: failed to open file" ); @@ -99,7 +96,6 @@ else upflag = 0; } - mutex.unlock(); } void Release::checkRelease( const QString& ver ) Modified: cinesuite/cineplay-cinecode/trunk/src/Release.h =================================================================== --- cinesuite/cineplay-cinecode/trunk/src/Release.h 2008-01-25 15:56:50 UTC (rev 31) +++ cinesuite/cineplay-cinecode/trunk/src/Release.h 2008-01-25 15:57:36 UTC (rev 32) @@ -19,8 +19,7 @@ // For more information, see http://www.audiotube.com -#ifndef __RELEASE_H__ -#define __RELEASE_H__ +#pragma once // qt #include <qobject.h> @@ -34,7 +33,7 @@ #include <qfileinfo.h> #include <qdir.h> -#include "Version.h" +#include "Version.h" class QString; class QUrl; @@ -50,7 +49,7 @@ bool upflag; Release() - { + { connect( &op, SIGNAL( data( const QByteArray&, QNetworkOperation* ) ), this, SLOT( onFile( const QByteArray&, QNetworkOperation* ) ) ); connect( &op, SIGNAL( dataTransferProgress( int, int, QNetworkOperation* ) ), @@ -80,5 +79,3 @@ void getVersion(); }; - -#endif //__RELEASE_H__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |