~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/engine/api/geary-folder-properties.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-03-14 13:48:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130314134823-gyk5av1g508zyj8a
Tags: 0.3.0~pr1-0ubuntu1
New upstream version (FFE lp: #1154316), supports multiple account as
well as full conversation views with inline replies

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2013 Yorba Foundation
 
2
 *
 
3
 * This software is licensed under the GNU Lesser General Public License
 
4
 * (version 2.1 or later).  See the COPYING file in this distribution.
 
5
 */
 
6
 
 
7
public abstract class Geary.FolderProperties : Object {
 
8
    /**
 
9
     * The total count of email in the Folder.
 
10
     */
 
11
    public int email_total { get; protected set; }
 
12
    
 
13
    /**
 
14
     * The total count of unread email in the Folder.
 
15
     */
 
16
    public int email_unread { get; protected set; }
 
17
    
 
18
    /**
 
19
     * Returns a Trillian indicating if this Folder has children.  has_children == Trillian.TRUE
 
20
     * implies supports_children == Trilian.TRUE.
 
21
     */
 
22
    public Trillian has_children { get; protected set; }
 
23
    
 
24
    /**
 
25
     * Returns a Trillian indicating if this Folder can parent new children Folders.  This does
 
26
     * *not* mean creating a sub-folder is guaranteed to succeed.
 
27
     */
 
28
    public Trillian supports_children { get; protected set; }
 
29
    
 
30
    /**
 
31
     * Returns a Trillian indicating if Folder.open_async() *can* succeed remotely.
 
32
     */
 
33
    public Trillian is_openable { get; protected set; }
 
34
    
 
35
    protected FolderProperties(int email_total, int email_unread, Trillian has_children,
 
36
        Trillian supports_children, Trillian is_openable) {
 
37
        this.email_total = email_total;
 
38
        this.email_unread = email_unread;
 
39
        this.has_children = has_children;
 
40
        this.supports_children = supports_children;
 
41
        this.is_openable = is_openable;
 
42
    }
 
43
}
 
44