~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/scripting/python/libraryquery.sip

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class QueryOptions {
2
 
 
3
 
%TypeHeaderCode
4
 
#include "library/libraryquery.h"
5
 
%End
6
 
 
7
 
public:
8
 
  enum QueryMode {
9
 
    QueryMode_All,
10
 
    QueryMode_Duplicates,
11
 
    QueryMode_Untagged
12
 
  };
13
 
 
14
 
  QueryOptions();
15
 
 
16
 
  bool Matches(const Song& song) const;
17
 
 
18
 
  QString filter() const;
19
 
  void set_filter(const QString& filter);
20
 
 
21
 
  int max_age() const;
22
 
  void set_max_age(int max_age);
23
 
 
24
 
  QueryMode query_mode() const;
25
 
  void set_query_mode(QueryMode view);
26
 
};
27
 
 
28
 
class LibraryQuery {
29
 
 
30
 
%TypeHeaderCode
31
 
#include "library/libraryquery.h"
32
 
%End
33
 
 
34
 
public:
35
 
  LibraryQuery(); // Workaround SIP Mercurial 3e647ed0f2a2
36
 
  LibraryQuery(const QueryOptions& options);
37
 
 
38
 
  void SetColumnSpec(const QString& spec);
39
 
  void SetOrderBy(const QString& order_by);
40
 
 
41
 
  void AddWhere(const QString& column, const QVariant& value, const QString& op = "=");
42
 
 
43
 
  void AddCompilationRequirement(bool compilation);
44
 
  void SetLimit(int limit);
45
 
 
46
 
  bool Next();
47
 
  QVariant Value(int column) const;
48
 
};