RTP Audio System  2.0.0
QClient Class Reference

QClient. More...

#include <rtpa-qclient.h>

List of all members.

Public Slots

void play ()
void stop ()
void information ()
void whatsThis ()
void pause (bool on)
void togglePause ()
void toggleAddressResolution (bool selected)
void spectrumAnalyzer ()
void audioMixer ()
void closeSpectrumAnalyzer ()
void closeAudioMixer ()
void quit ()
void position (int value)
void setSamplingRate (int index)
void setChannels (bool stereo)
void setBits (int index)
void setEncoding (int index)
void locationSelected (QAction *action)
void loadBookmarks ()
void clearBookmarks ()
void saveBookmarks ()
void timerEvent ()

Public Member Functions

 QClient (AudioWriterInterface *audioOutput, const char *receiverName=NULL, const char *defaultURL=NULL, SpectrumAnalyzer *analyzer=NULL, AudioMixer *mixer=NULL, QWidget *parent=NULL)
 ~QClient ()

Private Member Functions

void updateCounter (card64 position)
void insertURL (const String &urlToInsert, const int where=0)
void showError (const cardinal error)
QString bytesToQString (const card64 bytes) const
QString card64ToQString (const card64 value, const char *formatString="%Ld") const
QString doubleToQString (const double value, const char *formatString="%f") const
QString flowInfoToQString (const card8 trafficClass, const card32 flowLabel) const

Private Attributes

QAction * ResolverAction
QAction * MixerAction
QAction * SpectrumAnalyzerAction
QAction * AutoRepeatAction
QAction * AutoSaveBookmarksAction
QAction * LocationAction [LocationCount]
QSpectrumAnalyzerSpectrumAnalyzerWindow
QAudioMixerMixerWindow
SpectrumAnalyzerSpectrumAnalyzerDevice
AudioMixerMixerDevice
QMenu * ToolsMenu
QMenu * URLMenu
QMenu * SettingsMenu
QLineEdit * Location
QLCDNumber * Counter
QLabel * TitleLabel
QLabel * ArtistLabel
QLabel * CommentLabel
QLabel * StatusBar
QInfoTabWidgetInfoWidget
QInfoWidgetLayerInfo [MaxLayerInfo]
QScrollBar * ScrollBar
bool ScrollBarUpdated
cardinal ScrollBarUpdateDelay
cardinal EOFRepeatDelay
QPushButton * Pause
QWhatsThis * WhatsThis
AudioClientClient
QList< String * > URLList
String PlayingURL
bool InsertionRequired

Static Private Attributes

static const cardinal LocationCount = 15
static const cardinal DisplayUpdateInterval = 250
static const cardinal EOFRepeatInterval = 20000 / DisplayUpdateInterval
static const cardinal MaxScrollBarUpdateDelay = 4
static const cardinal MaxLayerInfo = 3

Detailed Description

QClient.

This class is the Qt-Toolkit GUI for the RTP audio client.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

QClient::QClient ( AudioWriterInterface audioOutput,
const char *  receiverName = NULL,
const char *  defaultURL = NULL,
SpectrumAnalyzer analyzer = NULL,
AudioMixer mixer = NULL,
QWidget *  parent = NULL 
)

Constructor for new QClient.

Parameters:
audioOutputAudioWriter.
receiverNameReceiver name (e.g. ipv6-gaffel:1234); default NULL.
defaultUTLDefault URL (e.g. rtpa://gaffel:7500/Test.list); default NULL.
analyzerSpectrumAnalyzer object; default NULL.
mixerAudioMixer object; default NULL.
parentParent QWidget; default NULL.

Destructor.


Member Function Documentation

void QClient::audioMixer ( ) [slot]

Slot for "Audio Mixer" menu item.

QString QClient::bytesToQString ( const card64  bytes) const [private]
QString QClient::card64ToQString ( const card64  value,
const char *  formatString = "%Ld" 
) const [private]
void QClient::clearBookmarks ( ) [slot]

Slot for removing all bookmarks.

void QClient::closeAudioMixer ( ) [slot]

Slot for close button of QAudioMixer.

Slot for close button of QSpectrumAnalyzer.

QString QClient::doubleToQString ( const double  value,
const char *  formatString = "%f" 
) const [private]
QString QClient::flowInfoToQString ( const card8  trafficClass,
const card32  flowLabel 
) const [private]
void QClient::information ( ) [slot]

Slot for "Information" button.

void QClient::insertURL ( const String urlToInsert,
const int  where = 0 
) [private]
void QClient::loadBookmarks ( ) [slot]

Slot for loading bookmarks.

void QClient::locationSelected ( QAction *  action) [slot]

Slot for location menu item.

void QClient::pause ( bool  on) [slot]

Slot for "Pause" button.

void QClient::play ( ) [slot]

Slot for "Play" button.

void QClient::position ( int  value) [slot]

Slot for position scrollbar.

void QClient::quit ( ) [slot]

Slot for "Quit" menu item.

void QClient::saveBookmarks ( ) [slot]

Slot for saving bookmarks.

void QClient::setBits ( int  index) [slot]

Slot for "Bits" combobox.

void QClient::setChannels ( bool  stereo) [slot]

Slot for "Stereo" checkbox.

void QClient::setEncoding ( int  index) [slot]

Slot for "Encoding" combobox.

void QClient::setSamplingRate ( int  index) [slot]

Slot for sampling rate combobox.

void QClient::showError ( const cardinal  error) [private]
void QClient::spectrumAnalyzer ( ) [slot]

Slot for "Spectrum Analyzer" menu item.

void QClient::stop ( ) [slot]

Slot for "Stop" button.

void QClient::timerEvent ( ) [slot]

Slot for QTimer.

void QClient::toggleAddressResolution ( bool  selected) [slot]

Slot for "Resolve Addresses" menu item.

void QClient::togglePause ( ) [slot]

Slot for "Toggle Pause" menu item.

void QClient::updateCounter ( card64  position) [private]
void QClient::whatsThis ( ) [slot]

Slot for What's This mode.


Member Data Documentation

QLabel* QClient::ArtistLabel [private]
QAction* QClient::AutoRepeatAction [private]
QLabel* QClient::CommentLabel [private]
QLCDNumber* QClient::Counter [private]
const cardinal QClient::DisplayUpdateInterval = 250 [static, private]
const cardinal QClient::EOFRepeatInterval = 20000 / DisplayUpdateInterval [static, private]
QLineEdit* QClient::Location [private]
const cardinal QClient::LocationCount = 15 [static, private]
const cardinal QClient::MaxLayerInfo = 3 [static, private]
const cardinal QClient::MaxScrollBarUpdateDelay = 4 [static, private]
QAction* QClient::MixerAction [private]
QPushButton* QClient::Pause [private]
QAction* QClient::ResolverAction [private]
QScrollBar* QClient::ScrollBar [private]
bool QClient::ScrollBarUpdated [private]
QMenu* QClient::SettingsMenu [private]
QAction* QClient::SpectrumAnalyzerAction [private]
QLabel* QClient::StatusBar [private]
QLabel* QClient::TitleLabel [private]
QMenu* QClient::ToolsMenu [private]
QList<String*> QClient::URLList [private]
QMenu* QClient::URLMenu [private]
QWhatsThis* QClient::WhatsThis [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines