172 inline bool hasName() const { return !name().isEmpty(); } |
172 inline bool hasName() const { return !name().isEmpty(); } |
173 inline bool hasUrl() const { return !url().isEmpty(); } |
173 inline bool hasUrl() const { return !url().isEmpty(); } |
174 inline bool hasRadiotext() const { return !radioText().isEmpty(); } |
174 inline bool hasRadiotext() const { return !radioText().isEmpty(); } |
175 inline bool hasDynamicPs() const { return !dynamicPsText().isEmpty(); } |
175 inline bool hasDynamicPs() const { return !dynamicPsText().isEmpty(); } |
176 inline bool hasGenre() const { return genre() != -1; } |
176 inline bool hasGenre() const { return genre() != -1; } |
177 inline bool hasRds() const { return hasPiCode() || hasGenre() || hasDynamicPs() || |
|
178 hasRadiotext() || hasUrl() || ( !hasName() && !isRenamed() ); } |
|
179 |
177 |
180 // Getters for non-persistent data |
178 // Getters for non-persistent data |
181 |
179 |
182 PsType psType() const; |
180 PsType psType() const; |
183 QString radioText() const; |
181 QString radioText() const; |
184 QString dynamicPsText() const; |
182 QString dynamicPsText() const; |
185 Change changeFlags() const; |
183 Change changeFlags() const; |
186 bool hasDataChanged( Change flags ) const; |
184 bool hasDataChanged( Change flags ) const; |
187 bool hasChanged() const; |
185 bool hasChanged() const; |
188 void resetChangeFlags(); |
186 void resetChangeFlags(); |
|
187 bool hasSentRds() const; |
189 |
188 |
190 private: |
189 private: |
191 |
190 |
192 // Methods for converting PI code into call sign |
191 // Methods for converting PI code into call sign |
193 QString piCodeToCallSign( uint programmeIdentification ); |
192 QString piCodeToCallSign( uint programmeIdentification ); |