mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Cleaned up tomahawkapp.cpp.
This commit is contained in:
@@ -112,8 +112,6 @@ using namespace Tomahawk;
|
|||||||
TomahawkApp::TomahawkApp( int& argc, char *argv[] )
|
TomahawkApp::TomahawkApp( int& argc, char *argv[] )
|
||||||
: TOMAHAWK_APPLICATION( argc, argv )
|
: TOMAHAWK_APPLICATION( argc, argv )
|
||||||
{
|
{
|
||||||
qDebug() << "TomahawkApp thread:" << thread();
|
|
||||||
|
|
||||||
setOrganizationName( QLatin1String( TOMAHAWK_ORGANIZATION_NAME ) );
|
setOrganizationName( QLatin1String( TOMAHAWK_ORGANIZATION_NAME ) );
|
||||||
setOrganizationDomain( QLatin1String( TOMAHAWK_ORGANIZATION_DOMAIN ) );
|
setOrganizationDomain( QLatin1String( TOMAHAWK_ORGANIZATION_DOMAIN ) );
|
||||||
setApplicationName( QLatin1String( TOMAHAWK_APPLICATION_NAME ) );
|
setApplicationName( QLatin1String( TOMAHAWK_APPLICATION_NAME ) );
|
||||||
@@ -132,6 +130,7 @@ TomahawkApp::init()
|
|||||||
::exit(0);
|
::exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << "TomahawkApp thread:" << thread();
|
||||||
Logger::setupLogfile();
|
Logger::setupLogfile();
|
||||||
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
|
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
|
||||||
|
|
||||||
@@ -309,16 +308,18 @@ TomahawkApp::instance()
|
|||||||
void
|
void
|
||||||
TomahawkApp::printHelp()
|
TomahawkApp::printHelp()
|
||||||
{
|
{
|
||||||
std::cout << QString( "usage: " + arguments().at( 0 ) + " [options] [url]\n" ).toAscii().data();
|
#define echo( X ) std::cout << QString( X ).toAscii().data()
|
||||||
std::cout << QString( "options are:\n" ).toAscii().data();
|
|
||||||
std::cout << QString( " --help Show this help\n" ).toAscii().data();
|
echo( "Usage: " + arguments().at( 0 ) + " [options] [url]\n" );
|
||||||
std::cout << QString( " --http Initialize HTTP server\n" ).toAscii().data();
|
echo( "Options are:\n" );
|
||||||
std::cout << QString( " --filescan Scan for files on startup\n" ).toAscii().data();
|
echo( " --help Show this help\n" );
|
||||||
std::cout << QString( " --testdb Use a test database instead of real collection\n" ).toAscii().data();
|
echo( " --http Initialize HTTP server\n" );
|
||||||
std::cout << QString( " --noupnp Disable UPNP\n" ).toAscii().data();
|
echo( " --filescan Scan for files on startup\n" );
|
||||||
std::cout << QString( " --nosip Disable SIP\n" ).toAscii().data();
|
echo( " --testdb Use a test database instead of real collection\n" );
|
||||||
std::cout << QString( "\nurl is a tomahawk:// command or alternatively a url that Tomahawk can recognize.\n" ).toAscii().data();
|
echo( " --noupnp Disable UPNP\n" );
|
||||||
std::cout << QString( "For more documentation, see http://wiki.tomahawk-player.org/mediawiki/index.php/Tomahawk://_Links\n" ).toAscii().data();
|
echo( " --nosip Disable SIP\n" );
|
||||||
|
echo( "\nurl is a tomahawk:// command or alternatively a url that Tomahawk can recognize.\n" );
|
||||||
|
echo( "For more documentation, see http://wiki.tomahawk-player.org/mediawiki/index.php/Tomahawk://_Links\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user