#include "qcustomplot.h"
#include "qt_ui_utils.h"
#include "rtp_audio_stream.h"
-#include "stock_icon.h"
#include "tango_colors.h"
#include <QAudio>
Q_DECLARE_METATYPE(RtpAudioStream *)
Q_DECLARE_METATYPE(QCPGraph *)
+#else // QT_MULTIMEDIA_LIB
+
+#include <QPushButton>
+
#endif // QT_MULTIMEDIA_LIB
+#include "stock_icon.h"
#include "wireshark_application.h"
// To do:
#endif // QT_MULTIMEDIA_LIB
}
+QPushButton *RtpPlayerDialog::addPlayerButton(QDialogButtonBox *button_box)
+{
+ if (!button_box) return NULL;
+
+ QPushButton *player_button;
+ player_button = button_box->addButton(tr("Play Streams"), QDialogButtonBox::ApplyRole);
+ player_button->setIcon(StockIcon("media-playback-start"));
+ return player_button;
+}
+
#ifdef QT_MULTIMEDIA_LIB
RtpPlayerDialog::~RtpPlayerDialog()
{
// RTP_STREAM_DEBUG("adding stream %s to layout, %u packets, start %u", stream_key.toUtf8().constData(), rtp_stream->packet_count, rtp_stream->start_fd->num);
}
-QPushButton *RtpPlayerDialog::addPlayerButton(QDialogButtonBox *button_box)
-{
- if (!button_box) return NULL;
-
- QPushButton *player_button;
- player_button = button_box->addButton(tr("Play Streams"), QDialogButtonBox::ApplyRole);
- player_button->setIcon(StockIcon("media-playback-start"));
- return player_button;
-}
-
void RtpPlayerDialog::showEvent(QShowEvent *)
{
QList<int> split_sizes = ui->splitter->sizes();
public:
explicit RtpPlayerDialog(QWidget &parent, CaptureFile &cf);
+ /**
+ * @brief Common routine to add a "Play call" button to a QDialogButtonBox.
+ * @param button_box Caller's QDialogButtonBox.
+ * @return The new "Play call" button.
+ */
+ // XXX We might want to move this to qt_ui_utils.
+ static QPushButton *addPlayerButton(QDialogButtonBox *button_box);
+
#ifdef QT_MULTIMEDIA_LIB
~RtpPlayerDialog();
*/
void addRtpStream(struct _rtp_stream_info *rtp_stream);
- /**
- * @brief Common routine to add a "Play call" button to a QDialogButtonBox.
- * @param button_box Caller's QDialogButtonBox.
- * @return The new "Play call" button.
- */
- // XXX We might want to move this to qt_ui_utils.
- static QPushButton *addPlayerButton(QDialogButtonBox *button_box);
-
public slots:
signals:
int getHoveredPacket();
#else // QT_MULTIMEDIA_LIB
+
private:
Ui::RtpPlayerDialog *ui;
#endif // QT_MULTIMEDIA_LIB