~voluntatefaber/beat-box/bug952329

« back to all changes in this revision

Viewing changes to SmartQuery.vala

  • Committer: Scott Ringwelski
  • Date: 2011-02-10 21:30:53 UTC
  • Revision ID: sgringwe@mtu.edu-20110210213053-d3c7mnexeref3cwj
sexy icons, sexy waf

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
public class BeatBox.SmartQuery : Object {
2
 
        // form a sql query as so:
3
 
        // WHERE `_field` _comparator _search
4
 
        private int _rowid;
5
 
        private string _field; 
6
 
        private string _comparator;
7
 
        private string _value;
8
 
        
9
 
        public SmartQuery() {
10
 
                _field = "album";
11
 
                _comparator = "=";
12
 
                _value = "";
13
 
        }
14
 
        
15
 
        public SmartQuery.with_info(string field, string comparator, string value) {
16
 
                _field = field;
17
 
                _comparator = comparator;
18
 
                _value = value;
19
 
        }
20
 
        
21
 
        public int rowid {
22
 
                get { return _rowid; }
23
 
                set { _rowid = value; }
24
 
        }
25
 
        
26
 
        public string field {
27
 
                get { return _field; }
28
 
                set { _field = value; } // i should check this
29
 
        }
30
 
        
31
 
        public string comparator {
32
 
                get { return _comparator; }
33
 
                set { _comparator = value; } // i should check this
34
 
        }
35
 
        
36
 
        public string value {
37
 
                get { return _value; }
38
 
                set { _value = value; }
39
 
        }
40
 
}