00001 /********************************************************************** 00002 ** Copyright (C) 2000-2005 Trolltech AS. All rights reserved. 00003 ** 00004 ** This file is part of the Qtopia Environment. 00005 ** 00006 ** This program is free software; you can redistribute it and/or modify it 00007 ** under the terms of the GNU General Public License as published by the 00008 ** Free Software Foundation; either version 2 of the License, or (at your 00009 ** option) any later version. 00010 ** 00011 ** A copy of the GNU GPL license version 2 is included in this package as 00012 ** LICENSE.GPL. 00013 ** 00014 ** This program is distributed in the hope that it will be useful, but 00015 ** WITHOUT ANY WARRANTY; without even the implied warranty of 00016 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00017 ** See the GNU General Public License for more details. 00018 ** 00019 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00020 ** 00021 ** Contact info@trolltech.com if any conditions of this licensing are 00022 ** not clear to you. 00023 ** 00024 **********************************************************************/ 00025 00026 #include <qsoundqss_qws.h> 00027 #include <qtopia/qpeapplication.h> 00028 #include <sys/time.h> 00029 #include <sys/resource.h> 00030 #include <unistd.h> 00031 00032 int main(int argc, char **argv) 00033 { 00034 QApplication a(argc, argv); 00035 (void)new QWSSoundServer(0); 00036 00037 //if (1) { 00038 // later, check if root first 00039 setpriority(PRIO_PROCESS, 0, -15); 00040 //} 00041 // hook up some quit mech. 00042 return a.exec(); 00043 }
1.4.2