1
/* Copyright 2013 Yorba Foundation
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.
7
public abstract class Geary.FolderProperties : Object {
9
* The total count of email in the Folder.
11
public int email_total { get; protected set; }
14
* The total count of unread email in the Folder.
16
public int email_unread { get; protected set; }
19
* Returns a Trillian indicating if this Folder has children. has_children == Trillian.TRUE
20
* implies supports_children == Trilian.TRUE.
22
public Trillian has_children { get; protected set; }
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.
28
public Trillian supports_children { get; protected set; }
31
* Returns a Trillian indicating if Folder.open_async() *can* succeed remotely.
33
public Trillian is_openable { get; protected set; }
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;