PageRenderTime 76ms CodeModel.GetById 72ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/AppleMailItemsController.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 58 lines | 25 code | 16 blank | 17 comment | 0 complexity | f214c3860f263abb7544f3d264b46a79 MD5 | raw file
 1/* Copyright (c) 2009 Google Inc.
 2 *
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * You may obtain a copy of the License at
 6 *
 7 *     http://www.apache.org/licenses/LICENSE-2.0
 8 *
 9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#import <Cocoa/Cocoa.h>
17
18#import "OutlineViewItem.h"
19#import "GDataEntryMailItem.h"
20
21@interface OutlineViewItemApple : OutlineViewItem {
22      
23  // paths of email messages, if any, in this mailbox
24  NSMutableArray *emlxPaths_;
25}
26
27- (void)setEmlxPaths:(NSArray *)paths;
28- (NSArray *)emlxPaths;
29- (void)addEmlxPath:(NSString *)path;
30
31@end
32
33@interface AppleMailItemsController : NSObject <MailItemController> {
34  NSString *mailFolderPath_;
35  NSString *rootName_; // name to display in outline view
36
37  OutlineViewItemApple *rootItem_;
38  BOOL isMaildir_;
39
40  OutlineViewItemApple *lastUploadedItem_; // non-nil once something's been uploaded
41  int lastUploadedIndex_; // message within the item, -1 if none yet attemped
42}
43
44- (id)initWithMailFolderPath:(NSString *)path rootName:(NSString *)rootName isMaildir:(BOOL)isMaildir;
45
46- (OutlineViewItem *)rootItem;
47
48- (unsigned int)countSelectedMessages;
49
50- (void)resetUpload;
51
52// nextUploadItem is called during uploading; it returns nil once the
53// uploads for this controller have been exhausted
54- (GDataEntryMailItem *)nextUploadItem;
55
56- (NSString *)mailFolderPath;
57
58@end