kradio4
r778
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
standardscandialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
standardscandialog.h - description
3
-------------------
4
begin : Son Aug 3 2003
5
copyright : (C) 2003 by Martin Witte
6
email : emw-kradio@nocabal.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef KRADIO_STANDARDSCANDIALOG_H
19
#define KRADIO_STANDARDSCANDIALOG_H
20
21
#ifdef HAVE_CONFIG_H
22
#include <config.h>
23
#endif
24
25
#include "seekradio_interfaces.h"
26
#include "radio_interfaces.h"
27
#include "
stationlist.h
"
28
29
#include <QtCore/QTimer>
30
#include <QtCore/QDateTime>
31
#include <QtGui/QDialog>
32
33
class
Ui_StandardScanDialogUI;
34
35
class
KDE_EXPORT
StandardScanDialog
:
public
QDialog,
36
public
ISeekRadioClient,
37
public
IRadioClient,
38
public
IErrorLogClient
39
{
40
Q_OBJECT
41
public
:
42
StandardScanDialog
(QWidget *parent);
43
~
StandardScanDialog
();
44
45
bool
connectI (Interface *i);
46
bool
disconnectI (Interface *i);
47
48
void
start();
49
void
stop();
50
51
const
StationList
&
getStations
()
const
{
return
m_stations; }
52
53
// ISeekRadioClient
54
55
RECEIVERS:
56
bool
noticeSeekStarted (
bool
up);
57
bool
noticeSeekStopped ();
58
bool
noticeSeekFinished (
const
RadioStation &s,
bool
goodQuality);
59
bool
noticeProgress (
float
f);
60
61
// IRadioClient
62
63
RECEIVERS:
64
bool
noticePowerChanged(
bool
on);
65
bool
noticeStationChanged
(
const
RadioStation &,
int
/*idx*/
){
return
false
; }
66
bool
noticeStationsChanged
(
const
StationList
&
/*sl*/
) {
return
false
; }
67
bool
noticePresetFileChanged
(
const
QString &
/*f*/
) {
return
false
; }
68
69
bool
noticeRDSStateChanged
(
bool
/*enabled*/
) {
return
false
; }
// don't care
70
bool
noticeRDSRadioTextChanged
(
const
QString &
/*s*/
) {
return
false
; }
// don't care
71
bool
noticeRDSStationNameChanged(
const
QString &
/*s*/
);
72
73
bool
noticeCurrentSoundStreamSourceIDChanged
(
SoundStreamID
/*id*/
) {
return
false
; }
74
bool
noticeCurrentSoundStreamSinkIDChanged
(
SoundStreamID
/*id*/
) {
return
false
; }
75
76
protected
slots:
77
78
void
slotStartStop();
79
void
slotOk();
80
void
slotDiscard();
81
void
slotWait4RDSTimeout();
82
83
protected
:
84
85
void
addCurrentStation();
86
void
continueScan();
87
88
int
m_count
;
89
bool
m_running
;
90
bool
m_oldPowerOn
;
91
RadioStation *
m_oldStation
;
92
QDateTime
m_startTime
;
93
94
StationList
m_stations
;
95
96
bool
m_ignorePower
;
97
98
Ui_StandardScanDialogUI *
m_ui
;
99
100
QTimer
m_Wait4RDSTimeout
;
101
bool
m_waiting4RDS
;
102
};
103
104
105
#endif
Generated by
1.8.1.1