--- a/radioapp/radiouiengine/inc/radiostationmodel.h Fri Jun 04 10:21:36 2010 +0100
+++ b/radioapp/radiouiengine/inc/radiostationmodel.h Fri Jun 11 13:38:32 2010 +0300
@@ -48,12 +48,6 @@
public:
- enum RadioRole
- {
- RadioStationRole = Qt::UserRole + 1,
- ToggleFavoriteRole
- };
-
enum DetailFlag
{
Minimal = 1 << 0,
@@ -104,7 +98,7 @@
/*!
* Functions to find stations by frequency
*/
- bool findFrequency( uint frequency, RadioStation& station );
+ bool findFrequency( uint frequency, RadioStation& station ) const;
/*!
* Functions to find stations by preset index
@@ -118,6 +112,11 @@
RadioStation findClosest( const uint frequency, StationSkip::Mode mode );
/*!
+ * Checks if the model contains the given frequency
+ */
+ bool contains( const uint frequency ) const;
+
+ /*!
* Functions to remove stations
*/
void removeByFrequency( uint frequency );
@@ -168,7 +167,7 @@
/*!
* Returns the model index corresponding to the given frequency
*/
- QModelIndex modelIndexFromFrequency( uint frequency );
+ int indexFromFrequency( uint frequency );
signals: