ITunesDBSPLRuleSet Class Reference

#include <itunesdb.h>

Inheritance diagram for ITunesDBSPLRuleSet:

itunesdb::SmartPlaylistRuleSet itunesdb::TrackPredicate itunesdb::utils::NonCopyAble List of all members.

Public Member Functions

 ITunesDBSPLRuleSet (const itunesdb::SmartPlaylistRuleSet &src, ITunesDBPlaylist &playlist, const ITunesDB &itunesdb)
 ITunesDBSPLRuleSet (ITunesDBPlaylist &playlist, const ITunesDB &itunesdb)
virtual bool addStringRule (itunesdb::SPLStringField field, itunesdb::SPLStringAction action, const QString &testString, int position=-1)
virtual bool addUIntRule (itunesdb::SPLUIntField field, itunesdb::SPLUIntAction action, Q_UINT64 fromValue, Q_UINT64 toValue, Q_INT64 fromDate, Q_INT64 toDate, Q_UINT64 fromUnits, Q_UINT64 toUnits, int position=-1)
void refreshPlaylist (bool force=false)

Protected Member Functions

virtual itunesdb::SmartPlaylistRulecreateStringRule (itunesdb::SPLStringField field, itunesdb::SPLStringAction action, const QString &testString)
virtual itunesdb::SmartPlaylistRulecreateUIntRule (itunesdb::SPLUIntField field, itunesdb::SPLUIntAction action, Q_UINT64 fromValue, Q_UINT64 toValue, Q_INT64 fromDate, Q_INT64 toDate, Q_UINT64 fromUnits, Q_UINT64 toUnits)
virtual bool operator() (const itunesdb::Track &track)

Detailed Description

This class represents all the rules and limits making up a smart playlist. see itunesdb::SmartPlaylistRuleSet for further information.


Member Function Documentation

bool ITunesDBSPLRuleSet::operator() ( const itunesdb::Track track  )  [protected, virtual]

Implement this method accordingly to the documentation above and (!) the documentation of the function this predicate will be given to.

Implements itunesdb::TrackPredicate.

bool ITunesDBSPLRuleSet::addStringRule ( itunesdb::SPLStringField  field,
itunesdb::SPLStringAction  action,
const QString &  testString,
int  position = -1 
) [virtual]

adds a string based rule to the rule set and returns true if successful.

Reimplemented from itunesdb::SmartPlaylistRuleSet.

bool ITunesDBSPLRuleSet::addUIntRule ( itunesdb::SPLUIntField  field,
itunesdb::SPLUIntAction  action,
Q_UINT64  fromValue,
Q_UINT64  toValue,
Q_INT64  fromDate,
Q_INT64  toDate,
Q_UINT64  fromUnits,
Q_UINT64  toUnits,
int  position = -1 
) [virtual]

adds a uint based rule to the rule set and returns true if successful.

Reimplemented from itunesdb::SmartPlaylistRuleSet.

void ITunesDBSPLRuleSet::refreshPlaylist ( bool  force = false  ) 

Refreshes the playlist associated with this set of rules. If the database didn't change since the last refresh and force is false the playlist won't be updated.

Parameters:
force forces the rule set to update the playlist even if the database didn't change.


The documentation for this class was generated from the following files:
Generated on Tue Dec 12 16:39:27 2006 for libqtpod.kdevelop by  doxygen 1.5.1