~ubuntu-branches/ubuntu/trusty/banshee/trusty

« back to all changes in this revision

Viewing changes to src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-02-09 23:06:03 UTC
  • mfrom: (1.2.26) (150.1.2 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140209230603-7dhbveo058j96ea0
Tags: 2.9.0+really2.6.1-0ubuntu1
* [fbf05ca] Imported Upstream version 2.9.0+really2.6.1:
  Downgrade to 2.6.1 -- 2.9.x is unstable and 3.0 won't arrive in time for
  release
* [22de440] Revert packaging to 2.6.1-2ubuntu1
* [7357b73] Merge changes from 2.6.1-5
* [a7156c0] Filter out libgpod-cil-dev versions built against gtk#3
* [e7c634d] Update dversionmangle for extracting +really version out

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        private TrackInfo last_track;
66
66
 
67
67
        public string Id { get; private set; }
68
 
        public long DbId { get; private set; }
 
68
        public int DbId { get; private set; }
69
69
 
70
70
        public Action<RandomBy> RandomModeAdded;
71
71
        public Action<RandomBy> RandomModeRemoved;
185
185
            }
186
186
        }
187
187
 
188
 
        internal void RecordShuffle (long trackId)
 
188
        internal void RecordShuffle (int trackId)
189
189
        {
190
190
            ServiceManager.DbConnection.Execute (add_shuffle_cmd, this.DbId, DateTime.Now, trackId);
191
191
        }
192
192
 
193
 
        public void RecordShuffleModification (long trackId, ShuffleModificationType type)
 
193
        public void RecordShuffleModification (int trackId, ShuffleModificationType type)
194
194
        {
195
195
            ServiceManager.DbConnection.Execute (add_discard_cmd, this.DbId, DateTime.Now, (int)type, trackId);
196
196
        }
239
239
        {
240
240
            var db = ServiceManager.DbConnection;
241
241
 
242
 
            long res = db.Query<long> ("SELECT ShufflerID FROM CoreShufflers WHERE ID = ?", Id);
 
242
            int res = db.Query<int> ("SELECT ShufflerID FROM CoreShufflers WHERE ID = ?", Id);
243
243
            if (res > 0) {
244
244
                DbId = res;
245
245
            } else {