summaryrefslogtreecommitdiff
path: root/noncore/settings/sound
Unidiff
Diffstat (limited to 'noncore/settings/sound') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/main.cpp10
-rw-r--r--noncore/settings/sound/sound.pro4
-rw-r--r--noncore/settings/sound/soundsettings.h1
3 files changed, 5 insertions, 10 deletions
diff --git a/noncore/settings/sound/main.cpp b/noncore/settings/sound/main.cpp
index 33b0523..d919ce4 100644
--- a/noncore/settings/sound/main.cpp
+++ b/noncore/settings/sound/main.cpp
@@ -1,33 +1,29 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "soundsettings.h" 21#include "soundsettings.h"
22 22
23#include <qpe/qpeapplication.h> 23#include <qpe/qpeapplication.h>
24#include <opie/oapplicationfactory.h>
25
26OPIE_EXPORT_APP( OApplicationFactory<SoundSettings> )
24 27
25 28
26int main(int argc, char** argv)
27{
28 QPEApplication a(argc,argv);
29 SoundSettings dlg;
30 a.showMainWidget(&dlg);
31 return a.exec();
32}
33 29
diff --git a/noncore/settings/sound/sound.pro b/noncore/settings/sound/sound.pro
index 48c612e..c0a1ed3 100644
--- a/noncore/settings/sound/sound.pro
+++ b/noncore/settings/sound/sound.pro
@@ -1,27 +1,25 @@
1TEMPLATE = app 1CONFIG += qt warn_on release quick-app
2CONFIG += qt warn_on release
3DESTDIR = $(OPIEDIR)/bin
4HEADERS = soundsettings.h soundsettingsbase.h 2HEADERS = soundsettings.h soundsettingsbase.h
5SOURCES = soundsettings.cpp soundsettingsbase.cpp main.cpp 3SOURCES = soundsettings.cpp soundsettingsbase.cpp main.cpp
6#INTERFACES = soundsettingsbase.ui 4#INTERFACES = soundsettingsbase.ui
7INCLUDEPATH += $(OPIEDIR)/include 5INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 6DEPENDPATH += $(OPIEDIR)/include
9LIBS += -lqpe 7LIBS += -lqpe
10TARGET = sound 8TARGET = sound
11 9
12TRANSLATIONS = ../../../i18n/de/sound.ts \ 10TRANSLATIONS = ../../../i18n/de/sound.ts \
13 ../../../i18n/nl/sound.ts \ 11 ../../../i18n/nl/sound.ts \
14 ../../../i18n/da/sound.ts \ 12 ../../../i18n/da/sound.ts \
15 ../../../i18n/xx/sound.ts \ 13 ../../../i18n/xx/sound.ts \
16 ../../../i18n/en/sound.ts \ 14 ../../../i18n/en/sound.ts \
17 ../../../i18n/es/sound.ts \ 15 ../../../i18n/es/sound.ts \
18 ../../../i18n/fr/sound.ts \ 16 ../../../i18n/fr/sound.ts \
19 ../../../i18n/hu/sound.ts \ 17 ../../../i18n/hu/sound.ts \
20 ../../../i18n/ja/sound.ts \ 18 ../../../i18n/ja/sound.ts \
21 ../../../i18n/ko/sound.ts \ 19 ../../../i18n/ko/sound.ts \
22 ../../../i18n/no/sound.ts \ 20 ../../../i18n/no/sound.ts \
23 ../../../i18n/pl/sound.ts \ 21 ../../../i18n/pl/sound.ts \
24 ../../../i18n/pt/sound.ts \ 22 ../../../i18n/pt/sound.ts \
25 ../../../i18n/pt_BR/sound.ts \ 23 ../../../i18n/pt_BR/sound.ts \
26 ../../../i18n/sl/sound.ts \ 24 ../../../i18n/sl/sound.ts \
27 ../../../i18n/zh_CN/sound.ts \ 25 ../../../i18n/zh_CN/sound.ts \
diff --git a/noncore/settings/sound/soundsettings.h b/noncore/settings/sound/soundsettings.h
index 71ce6f5..57a360f 100644
--- a/noncore/settings/sound/soundsettings.h
+++ b/noncore/settings/sound/soundsettings.h
@@ -8,45 +8,46 @@
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef SOUNDSETTINGS_H 20#ifndef SOUNDSETTINGS_H
21#define SOUNDSETTINGS_H 21#define SOUNDSETTINGS_H
22 22
23 23
24#include "soundsettingsbase.h" 24#include "soundsettingsbase.h"
25 25
26 26
27class SoundSettings : public SoundSettingsBase 27class SoundSettings : public SoundSettingsBase
28{ 28{
29Q_OBJECT 29Q_OBJECT
30 30
31public: 31public:
32 static QString appName() { return QString::fromLatin1("sound"); }
32 SoundSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 33 SoundSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
33 34
34protected: 35protected:
35 bool noWarning; 36 bool noWarning;
36/* void accept(); */ 37/* void accept(); */
37/* void reject(); */ 38/* void reject(); */
38 void updateStorageCombo(); 39 void updateStorageCombo();
39 void updateLocationCombo(); 40 void updateLocationCombo();
40 41
41private slots: 42private slots:
42 void setKeyButton( int); 43 void setKeyButton( int);
43 void setSizeLimitButton(const QString &); 44 void setSizeLimitButton(const QString &);
44 void setLocation(const QString &); 45 void setLocation(const QString &);
45 void cleanUp(); 46 void cleanUp();
46 void restartOpie(bool); 47 void restartOpie(bool);
47 void slotAdpcm(bool); 48 void slotAdpcm(bool);
48}; 49};
49 50
50 51
51#endif // SOUNDSETTINGS_H 52#endif // SOUNDSETTINGS_H
52 53