/* * This file is a part of BeOS USBVision driver project. * Copyright (c) 2003 by Siarzuk Zharski * * This file may be used under the terms of the BSD License * */ #ifndef _TUNER_LOCALE_H_ #define _TUNER_LOCALE_H_ #include #include #include namespace Locale{ class Channel { string fName; uint32 fFrequency; public: Channel(string &str, uint32 frequency); const string &Name() const; const uint32 Frequency(); }; typedef vector Channels; typedef vector::iterator ChannelsIterator; class TunerLocale { status_t fStatus; string fName; Channels fChannels; TunerLocale(BEntry &entry); status_t LoadLocale(const char *file); public: ~TunerLocale(); static status_t LoadLocales(vector &vector); static status_t ReleaseLocales(vector &vector); status_t InitCheck(); const string &Name(); const Channel &GetChannel(int idx); uint32 ChannelsCount(); }; typedef vector Locales; typedef vector::iterator LocalesIterator; } //namespace Locale #endif//_TUNER_LOCALE_H_