Ticket #376: includes.cleanup.patch
File includes.cleanup.patch, 14.4 KB (added by , 19 years ago) |
---|
-
libs/libmyth/audiooutputbase.h
1 #ifndef AUDIOOUTPUTBASE2 #define AUDIOOUTPUTBASE1 #ifndef _LIBMYTH_AUDIOOUTPUTBASE_H_ 2 #define _LIBMYTH_AUDIOOUTPUTBASE_H_ 3 3 4 #include <iostream>5 #include <pthread.h>6 using namespace std;7 8 #include <qstring.h>9 #include <qmutex.h>10 11 4 #include "audiooutput.h" 12 5 #include "samplerate.h" 13 #include "SoundTouch.h"14 6 7 namespace soundtouch { class SoundTouch; } 8 15 9 #define AUDBUFSIZE 768000 16 10 17 11 class AudioOutputBase : public AudioOutput 18 12 { 19 13 public: 20 AudioOutputBase(QString audiodevice, int laudio_bits,21 int laudio_channels, int laudio_samplerate,22 AudioOutputSource source,bool set_initial_vol);14 AudioOutputBase(QString audiodevice, 15 AudioOutputSource source, 16 bool set_initial_vol); 23 17 virtual ~AudioOutputBase(); 24 18 25 19 // reconfigure sound out for new params 26 20 virtual void Reconfigure(int audio_bits, 27 int audio_channels, int audio_samplerate); 21 int audio_channels, 22 int audio_samplerate); 28 23 29 24 // do AddSamples calls block? 30 25 virtual void SetBlocking(bool blocking); … … 159 154 long current_seconds; 160 155 long source_bitrate; 161 156 162 157 private: 158 AudioOutputBase(); 159 AudioOutputBase(const AudioOutputBase&); 160 AudioOutputBase& operator=(const AudioOutputBase&); 163 161 }; 164 162 165 #endif 166 163 #endif//_LIBMYTH_AUDIOOUTPUTBASE_H_ -
libs/libmyth/util.h
1 #ifndef UTIL_H_2 #define UTIL_H_1 #ifndef _LIBMYTH_UTIL_H_ 2 #define _LIBMYTH_UTIL_H_ 3 3 4 #include <qsocket.h>5 #include <qstringlist.h>6 #include <qdatetime.h>7 4 #include <qcolor.h> 5 #include <qdatetime.h> 6 #include <qstringlist.h> 8 7 9 #include <time.h>10 11 8 #define MYTH_SYSTEM_DONT_BLOCK_LIRC 0x1 //< myth_system() flag to avoid blocking 12 9 #define MYTH_SYSTEM_DONT_BLOCK_JOYSTICK_MENU 0x2 //< myth_system() flag to avoid blocking 13 10 14 class Q Pixmap;11 class QFont; 15 12 class QImage; 16 13 class QPainter; 17 class QFont; 14 class QPixmap; 15 class QSocket; 16 class QSocketDevice; 18 17 19 18 class MythTimer 20 19 { … … 75 74 bool getUptime(time_t &uptime); 76 75 bool getMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM); 77 76 78 #endif //UTIL_H_77 #endif//_LIBMYTH_UTIL_H_ -
libs/libmyth/audiooutputalsa.cpp
13 13 AudioOutputALSA::AudioOutputALSA(QString audiodevice, int laudio_bits, 14 14 int laudio_channels, int laudio_samplerate, 15 15 AudioOutputSource source, bool set_initial_vol) 16 : AudioOutputBase(audiodevice, laudio_bits, 17 laudio_channels, laudio_samplerate, source, set_initial_vol) 16 : AudioOutputBase(audiodevice, source, set_initial_vol) 18 17 { 19 18 // our initalisation 20 19 pcm_handle = NULL; -
libs/libmyth/audiooutputca.cpp
39 39 AudioOutputCA::AudioOutputCA(QString audiodevice, int laudio_bits, 40 40 int laudio_channels, int laudio_samplerate, 41 41 AudioOutputSource source, bool set_initial_vol) 42 : AudioOutputBase(audiodevice, laudio_bits, 43 laudio_channels, laudio_samplerate, 44 source, set_initial_vol) 42 : AudioOutputBase(audiodevice, source, set_initial_vol) 45 43 { 46 44 // Create private data 47 45 coreaudio_data = new CoreAudioData(); -
libs/libmyth/themedmenu.h
1 #ifndef THEMEDMENU_H_2 #define THEMEDMENU_H_1 #ifndef _LIBMYTH_THEMEDMENU_H_ 2 #define _LIBMYTH_THEMEDMENU_H_ 3 3 4 #include <qvaluelist.h>5 #include <qdom.h>6 #include <qmap.h>7 8 4 #include "mythdialogs.h" 9 5 10 #include <vector>11 12 using namespace std;13 14 6 class ThemedMenuPrivate; 15 7 16 8 class ThemedMenu : public MythDialog … … 43 35 ThemedMenuPrivate *d; 44 36 }; 45 37 46 #endif 38 #endif//_LIBMYTH_THEMEDMENU_H_ -
libs/libmyth/volumebase.cpp
1 #include <qstring.h>2 #include <cstdio>3 #include <cstdlib>4 5 using namespace std;6 1 #include "volumebase.h" 7 2 3 #include "mythcontext.h" 4 5 #include <qstring.h> 6 8 7 VolumeBase::VolumeBase() 9 8 { 10 9 volume = 80; -
libs/libmyth/audiooutputjack.cpp
24 24 AudioOutputJACK::AudioOutputJACK(QString audiodevice, int laudio_bits, 25 25 int laudio_channels, int laudio_samplerate, 26 26 AudioOutputSource source, bool set_initial_vol) 27 : AudioOutputBase(audiodevice, laudio_bits, laudio_channels, 28 laudio_samplerate, source, set_initial_vol) 27 : AudioOutputBase(audiodevice, source, set_initial_vol) 29 28 { 30 29 // Initialise the Jack output layer 31 30 JACK_Init(); -
libs/libmyth/audiooutputbase.cpp
1 #include <qstring.h>2 #include <cstdio>3 #include <cstdlib>4 #include <cmath>5 #include <pthread.h>6 7 using namespace std;8 1 #include "audiooutputbase.h" 9 2 10 #include <iostream>11 #include <qdatetime.h> 3 #include "SoundTouch.h" 4 12 5 #include <sys/time.h> 13 #include < unistd.h>6 #include <cmath> 14 7 15 16 AudioOutputBase::AudioOutputBase(QString audiodevice, int, 17 int, int, 18 AudioOutputSource source, bool set_initial_vol) 8 AudioOutputBase::AudioOutputBase(QString audiodevice, 9 AudioOutputSource source, 10 bool set_initial_vol) 19 11 { 20 12 pthread_mutex_init(&audio_buflock, NULL); 21 13 pthread_mutex_init(&avsync_lock, NULL); -
libs/libmyth/util.cpp
1 #include "util.h" 2 1 3 // C++ headers 2 4 #include <iostream> 3 5 using namespace std; … … 28 30 #include <qpainter.h> 29 31 #include <qpixmap.h> 30 32 #include <qfont.h> 33 #include <qsocket.h> 31 34 32 35 // Myth headers 33 36 #include "mythconfig.h" 34 37 #include "exitcodes.h" 35 #include "util.h"36 38 #include "mythcontext.h" 37 39 38 40 #ifdef CONFIG_DARWIN -
libs/libmyth/themedmenu.cpp
1 #include <qlayout.h> 2 #include <qpushbutton.h> 3 #include <qbuttongroup.h> 4 #include <qlabel.h> 5 #include <qcursor.h> 6 #include <qapplication.h> 7 #include <qpixmap.h> 8 #include <qbitmap.h> 9 #include <qpainter.h> 10 #include <qimage.h> 11 #include <qdir.h> 12 #include <qdom.h> 1 #include "themedmenu.h" 13 2 14 #include <iostream> 15 #include <cmath> 16 using namespace std; 17 3 #include "dialogbox.h" 18 4 #include "exitcodes.h" 19 #include " themedmenu.h"5 #include "lcddevice.h" 20 6 #include "mythcontext.h" 21 #include "util.h"22 7 #include "mythplugin.h" 23 #include "dialogbox.h"24 #include "lcddevice.h"25 8 9 #include <cmath> 10 #include <qbitmap.h> 26 11 27 28 12 extern QMap<QString, fontProp> globalFontMap; 29 13 30 14 struct TextAttributes -
libs/libmyth/xmlparse.h
1 #ifndef XMLPARSE_H_2 #define XMLPARSE_H_1 #ifndef _LIBMYTH_XMLPARSE_H_ 2 #define _LIBMYTH_XMLPARSE_H_ 3 3 4 4 #include "uitypes.h" 5 #include "mythcontext.h"6 #include <qimage.h>7 #include <qrect.h>8 #include <qlabel.h>9 #include <qdom.h>10 5 11 6 class XMLParse 12 7 { … … 65 60 QString fontSizeType; 66 61 }; 67 62 68 #endif 63 #endif//_LIBMYTH_XMLPARSE_H_ -
libs/libmyth/audiooutputoss.cpp
28 28 AudioOutputOSS::AudioOutputOSS(QString audiodevice, int laudio_bits, 29 29 int laudio_channels, int laudio_samplerate, 30 30 AudioOutputSource source, bool set_initial_vol) 31 : AudioOutputBase(audiodevice, laudio_bits, 32 laudio_channels, laudio_samplerate, source, set_initial_vol) 31 : AudioOutputBase(audiodevice, source, set_initial_vol) 33 32 { 34 33 // our initalisation 35 34 audiofd = -1; -
libs/libmyth/volumebase.h
1 #ifndef VOLUMEBASE2 #define VOLUMEBASE1 #ifndef _LIBMYTH_VOLUMEBASE_H_ 2 #define _LIBMYTH_VOLUMEBASE_H_ 3 3 4 #include <iostream>5 using namespace std;6 7 #include <qstring.h>8 #include "mythcontext.h"9 10 4 typedef enum { 11 5 MUTE_OFF = 0, 12 6 MUTE_LEFT, … … 45 39 46 40 }; 47 41 48 #endif 49 42 #endif//_LIBMYTH_VOLUMEBASE_H_ -
libs/libmyth/dialogbox.cpp
1 #include "dialogbox.h" 2 1 3 #include <iostream> 2 4 using namespace std; 3 5 … … 8 10 #include <qcursor.h> 9 11 #include <qapplication.h> 10 12 11 #include "dialogbox.h"12 13 #include "mythcontext.h" 13 14 #include "mythwidgets.h" 14 15 … … 56 57 box->addWidget(button, 0); 57 58 } 58 59 60 bool DialogBox::getCheckBoxState(void) 61 { 62 return checkbox ? checkbox->isChecked() : false; 63 } 64 59 65 void DialogBox::buttonPressed(int which) 60 66 { 61 67 if (buttongroup->find(which) != checkbox) -
libs/libmyth/audiooutputarts.cpp
10 10 AudioOutputARTS::AudioOutputARTS(QString audiodevice, int audio_bits, 11 11 int audio_channels, int audio_samplerate, 12 12 AudioOutputSource source, bool set_initial_vol) 13 : AudioOutputBase(audiodevice, audio_bits, audio_channels, 14 audio_samplerate, source, set_initial_vol) 13 : AudioOutputBase(audiodevice, source, set_initial_vol) 15 14 { 16 15 // our initalisation 17 16 pcm_handle = NULL; -
libs/libmyth/xmlparse.cpp
1 #include <iostream> 2 using namespace std; 1 #include "xmlparse.h" 3 2 4 #include <cmath> 3 #include "mythcontext.h" 4 #include "uilistbtntype.h" 5 5 6 #include <cmath> 6 7 #include <qapplication.h> 7 8 8 #include "uilistbtntype.h"9 #include "xmlparse.h"10 11 9 QMap<QString, fontProp> globalFontMap; 12 10 13 11 XMLParse::XMLParse(void) -
libs/libmyth/dialogbox.h
1 #ifndef DIALOGBOX_H_2 #define DIALOGBOX_H_1 #ifndef _LIBMYTH_DIALOGBOX_H_ 2 #define _LIBMYTH_DIALOGBOX_H_ 3 3 4 #include <qcheckbox.h>5 6 4 #include "mythdialogs.h" 7 5 8 class QVBoxLayout;9 6 class QButtonGroup; 7 class QCheckBox; 10 8 class QString; 9 class QVBoxLayout; 11 10 12 11 class DialogBox : public MythDialog 13 12 { … … 18 17 19 18 void AddButton(const QString &title); 20 19 21 bool getCheckBoxState(void) { if (checkbox) return checkbox->isChecked();22 return false; } 20 bool getCheckBoxState(void); 21 23 22 protected slots: 24 23 void buttonPressed(int which); 25 24 26 25 private: 27 26 QVBoxLayout *box; 28 27 QButtonGroup *buttongroup; 29 30 28 QCheckBox *checkbox; 31 29 }; 32 30 33 #endif 31 #endif//_LIBMYTH_DIALOGBOX_H_ -
libs/libmyth/audiooutputnull.cpp
19 19 AudioOutputNULL::AudioOutputNULL(QString audiodevice, int laudio_bits, 20 20 int laudio_channels, int laudio_samplerate, 21 21 AudioOutputSource source, bool set_initial_vol) 22 : AudioOutputBase(audiodevice, laudio_bits, laudio_channels, 23 laudio_samplerate, source, set_initial_vol) 22 : AudioOutputBase(audiodevice, source, set_initial_vol) 24 23 { 25 24 locked_audio_channels = laudio_channels; 26 25 locked_audio_bits = laudio_bits; -
libs/libmyth/mythcontext.cpp
1 #include "mythcontext.h" 2 1 3 #include <qapplication.h> 2 4 #include <qsqldatabase.h> 3 5 #include <qimage.h> … … 10 12 #include <qnetwork.h> 11 13 #include <qwaitcondition.h> 12 14 15 #include <qsocket.h> 13 16 #include <qsocketdevice.h> 14 17 #include <qhostaddress.h> 15 18 … … 18 21 #include <queue> 19 22 20 23 #include "config.h" 21 #include "mythcontext.h"22 24 #include "oldsettings.h" 23 25 #include "themedmenu.h" 24 26 #include "util.h" -
programs/mythbackend/filetransfer.cpp
1 1 #include <qapplication.h> 2 2 #include <qdatetime.h> 3 #include <qsocket.h> 3 4 4 5 #include <unistd.h> 5 6 #include <iostream>