Source: channel.h


Annotated List
Files
Globals
Hierarchy
Index
/*
 *
 * Copyright (C) 2002 George Staikos 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */


#ifndef _CHANNEL_H
#define _CHANNEL_H

#include 

/**
 * Defines a TV channel.
 *
 * @version $Id: channel.h,v 1.3 2002/03/16 21:36:47 rich Exp $
 */
class Channel
{
public:
    Channel( int num = -1, unsigned long freq = 0 );
    Channel( const QString &name_, int num = -1, unsigned long freq = 0 );
    ~Channel() {}

    inline int number() const { return _num; }
    inline void setNumber(int x) { _num = x; }

    inline unsigned long freq() const { return _freq; }
    inline void setFreq(unsigned long x) { _freq = x; }

    QString name() const { return _name; }
    void setName( const QString &name ) { _name = name; }

private:
    QString _name;
    int _num;
    unsigned long _freq;
};

inline Channel::Channel( int num, unsigned long freq )
    : _num(num), _freq(freq)
{
}

inline Channel::Channel( const QString &name, int num, unsigned long freq )
    : _name(name), _num(num), _freq(freq)
{
}

#endif

Generated by: rich on pegasus on Wed Mar 20 03:16:53 2002, using kdoc 2.0a53.