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

« back to all changes in this revision

Viewing changes to src/engine/imap/command/imap-commands.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:
62
62
    public const string NAME = "list";
63
63
    public const string XLIST_NAME = "xlist";
64
64
    
65
 
    public ListCommand(string mailbox, bool use_xlist) {
66
 
        base (use_xlist ? XLIST_NAME : NAME, { "", mailbox });
 
65
    public ListCommand(Geary.Imap.MailboxParameter mailbox, bool use_xlist) {
 
66
        base (use_xlist ? XLIST_NAME : NAME, { "", mailbox.value });
67
67
    }
68
68
    
69
 
    public ListCommand.wildcarded(string reference, string mailbox, bool use_xlist) {
70
 
        base (use_xlist ? XLIST_NAME : NAME, { reference, mailbox });
 
69
    public ListCommand.wildcarded(string reference, Geary.Imap.MailboxParameter mailbox, bool use_xlist) {
 
70
        base (use_xlist ? XLIST_NAME : NAME, { reference, mailbox.value });
71
71
    }
72
72
}
73
73
 
74
74
public class Geary.Imap.ExamineCommand : Command {
75
75
    public const string NAME = "examine";
76
76
    
77
 
    public ExamineCommand(string mailbox) {
78
 
        base (NAME, { mailbox });
 
77
    public ExamineCommand(Geary.Imap.MailboxParameter mailbox) {
 
78
        base (NAME, { mailbox.value });
79
79
    }
80
80
}
81
81
 
82
82
public class Geary.Imap.SelectCommand : Command {
83
83
    public const string NAME = "select";
84
84
    
85
 
    public SelectCommand(string mailbox) {
86
 
        base (NAME, { mailbox });
 
85
    public SelectCommand(Geary.Imap.MailboxParameter mailbox) {
 
86
        base (NAME, { mailbox.value });
87
87
    }
88
88
}
89
89
 
98
98
public class Geary.Imap.StatusCommand : Command {
99
99
    public const string NAME = "status";
100
100
    
101
 
    public StatusCommand(string mailbox, StatusDataType[] data_items) {
 
101
    public StatusCommand(Geary.Imap.MailboxParameter mailbox, StatusDataType[] data_items) {
102
102
        base (NAME);
103
103
        
104
 
        add(new StringParameter(mailbox));
 
104
        add(mailbox);
105
105
        
106
106
        assert(data_items.length > 0);
107
107
        ListParameter data_item_list = new ListParameter(this);
161
161
    public const string NAME = "copy";
162
162
    public const string UID_NAME = "uid copy";
163
163
 
164
 
    public CopyCommand(MessageSet message_set, string destination) {
 
164
    public CopyCommand(MessageSet message_set, Geary.Imap.MailboxParameter destination) {
165
165
        base (message_set.is_uid ? UID_NAME : NAME);
166
166
 
167
167
        add(message_set.to_parameter());
168
 
        add(new StringParameter(destination));
 
168
        add(destination);
169
169
    }
170
170
}
171
171