mootoh / milpon

an iPhone application for Remember the Milk.

This URL has Read+Write access

milpon / api / RTMAPINote.h
100644 25 lines (21 sloc) 0.629 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// RTMAPINote.h
// Milpon
//
// Created by mootoh on 12/06/08.
// Copyright 2008 deadbeaf.org. All rights reserved.
//
@class RTMNote;
 
@interface RTMAPINote : NSObject {
  enum {
    // METHOD ARGS
    NOTES_ADD, // note_title, note_text, list_id, taskseries_id, task_id
    NOTES_DELETE, // note_id
    NOTES_EDIT // note_id, note_title, note_text
  } method;
}
 
- (NSInteger) add:(RTMNote *)note forIDs:(NSDictionary *)ids; // if failed, return -1
- (BOOL) delete:(NSNumber *)note_id;
- (BOOL) edit:(NSDictionary *)ids withTitle:(NSString *)title withText:(NSString *)text;
 
@end
// vim:set ft=objc: