Source: channelstore.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 _CHANNELSTORE_H
#define _CHANNELSTORE_H

#include 
#include 

class Channel;

typedef QPtrList ChannelList;

/**
 * A suite of channels.
 *
 * @version $Id: channelstore.h,v 1.7 2002/03/17 03:44:41 rich Exp $
 */
class ChannelStore
{
public:
    ChannelStore();
    ~ChannelStore();

    ChannelList *channels() { return &_channels; }

    uint count() const { return _channels.count(); }
    bool isEmpty() const { return count() ? false : true; }

    bool load( const QString &filename=QString::null, const char *fmt=0 );
    bool save( const QString &filename=QString::null, const char *fmt=0 );

    void addChannel( Channel *channel );
    void addChannel( unsigned long freq );
    Channel *channelAt( int idx ) { return _channels.at(idx); }

private:
    ChannelList _channels;
    QString _file;
};


#endif






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