1 // (c) 2005 Seb Ruiz <ruiz@kde.org>
2 // See COPYING file for licensing information.
4 #ifndef AMAROK_PODCASTSETTINGS_H
5 #define AMAROK_PODCASTSETTINGS_H
7 #include <KDialog> //baseclass
10 #include <q3ptrlist.h>
12 class PodcastSettingsDialogBase
;
15 enum MediaFetch
{ STREAM
=0, AUTOMATIC
=1 };
20 PodcastSettings( const QDomNode
&channelSettings
, const QString
&title
);
21 PodcastSettings( const PodcastSettings
*parentSettings
, const QString
&title
);
22 PodcastSettings( const QString
&title
); // standard settings
23 PodcastSettings( const QString
&title
, const QString
&save
, const bool autoScan
,
24 const int fetchType
, const bool autotransfer
, const bool purge
, const int purgecount
);
26 const QString
&saveLocation() { return m_saveLocation
; }
27 const QString
&title() { return m_title
; }
28 bool autoscan() { return m_autoScan
; }
29 int fetchType() { return m_fetch
; }
30 bool autoTransfer() { return m_addToMediaDevice
; }
31 bool hasPurge() { return m_purge
; }
32 int purgeCount() { return m_purgeCount
; }
34 QString m_title
; //the title of the podcast or category these settings belong to
35 QString m_saveLocation
;
38 bool m_addToMediaDevice
;
44 class PodcastSettingsDialog
: public KDialog
49 explicit PodcastSettingsDialog( PodcastSettings
*list
, QWidget
* parent
=0 );
50 PodcastSettingsDialog( const Q3PtrList
<PodcastSettings
> &list
, const QString
&caption
, QWidget
* parent
=0 );
53 PodcastSettings
*getSettings() { return m_settings
; }
65 void setSettings( PodcastSettings
*settings
);
66 QString
requesterSaveLocation();
68 PodcastSettingsDialogBase
*m_ps
;
69 Q3PtrList
<PodcastSettings
> m_settingsList
;
70 PodcastSettings
*m_settings
;
73 #endif /*AMAROK_PODCASTSETTINGS_H*/