~ubuntu-branches/debian/squeeze/f-spot/squeeze

« back to all changes in this revision

Viewing changes to src/Query/OrderByTime.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Mirco Bauer, Iain Lane
  • Date: 2009-02-07 20:23:32 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20090207202332-oc93rfjo1st0571s
Tags: 0.5.0.3-2
[ Mirco Bauer]
* Upload to unstable.
* debian/control:
  + Lowered GNOME# build-deps to 2.0 ABI as that transition didn't happen
    yet in unstable.

[ Iain Lane ]
* debian/patches/svn-r4545_locales-import.dpatch: Patch backported from SVN
  trunk revision 4545 - initialize the translation catalog earlier (LP: #293305)
  (Closes: #514457). Thanks to Florian Heinle for finding the patch and to
  Chris Coulson for preparing the update.
* debian/control: Build-depend on libmono-dev (>= 1.2.4) to match configure
  checks.
* debian/rules: Pass CSC=/usr/bin/csc to configure for gio-sharp to fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FSpot.Query.OrderByTime.cs
 
3
 *
 
4
 * Author(s):
 
5
 *      Stephane Delcroix <stephane@delcroix.org>
 
6
 *
 
7
 * This is free software. See COPYING for details.
 
8
 *
 
9
 */
 
10
 
 
11
using System;
 
12
using FSpot.Utils;
 
13
 
 
14
namespace FSpot.Query {
 
15
        public class OrderByTime : IQueryCondition, IOrderCondition
 
16
        {
 
17
                public static OrderByTime OrderByTimeAsc = new OrderByTime (true);
 
18
                public static OrderByTime OrderByTimeDesc = new OrderByTime (false);
 
19
 
 
20
                bool asc;
 
21
                public bool Asc {
 
22
                        get { return asc; }
 
23
                }
 
24
 
 
25
                public OrderByTime (bool asc)
 
26
                {
 
27
                        this.asc = asc;
 
28
                }
 
29
 
 
30
                public string SqlClause ()
 
31
                {
 
32
                        return String.Format (" time {0}", asc ? "ASC" : "DESC");
 
33
                }
 
34
        }
 
35
}