summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/internetradiostation.h
blob: 716dba2e581f6bbe475e68c7b79c0167d1e8b427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/***************************************************************************
                          internetradiostation.h  -  description
                             -------------------
    begin                : Sat March 29 2003
    copyright            : (C) 2003 by Klas Kalass, Ernst Martin Witte
    email                : [email protected], [email protected]
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KRADIO_INTERNETRADIOSTATION_H
#define KRADIO_INTERNETRADIOSTATION_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "radiostation.h"

// KDE includes
#include <kurl.h>

/**
 * @author Klas Kalass, Ernst Martin Witte
 */

class InternetRadioStation : public RadioStation  {
public:
    InternetRadioStation();
    InternetRadioStation(KURL const &url);
    InternetRadioStation(const TQString &name, const TQString &shortName, KURL const &url);
    InternetRadioStation(const InternetRadioStation &);
    InternetRadioStation(RegisterStationClass, const TQString &classname = TQString());
    ~InternetRadioStation();

    const KURL & url() const             { return m_url; }
    void         setUrl(KURL const &url) { m_url = url;  }

    virtual TQString longName() const;
    virtual TQString description() const;
    virtual bool    isValid () const;

    /*  = 0 : this.url == s.url
        > 0 : this.url >  s.url
        < 0 : this.url <  s.url
        other class than InternetRadioStation: compare typeid(.).name()
    */
    virtual int     compare (const RadioStation &s) const;

    /** returns an exact copy of this station */
    virtual RadioStation *copy() const;
    virtual RadioStation *copyNewID() const;

    virtual RadioStationConfig *createEditor() const;

    // for XML-Parsing/Export
    virtual bool setProperty(const TQString &property_name, const TQString &val);
    virtual TQString getProperty(const TQString &property_name) const;
    virtual TQStringList getPropertyNames() const;
    virtual TQString getClassName() const { return "InternetRadioStation"; }

    virtual bool operator == (const RadioStation &x) const;

protected:
    KURL m_url;
};

#endif