From 1cc584490703fffa04f7e028f1b46ba6089470f1 Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 10 Oct 2004 16:32:16 +0000 Subject: [PATCH] started drafts UI git-svn-id: http://svn.opengroupware.org/SOGo/trunk@377 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/SoObjects/Mailer/ChangeLog | 5 +++++ SOGo/SoObjects/Mailer/SOGoDraftsFolder.h | 4 +++- SOGo/SoObjects/Mailer/SOGoDraftsFolder.m | 12 ++++++++++++ SOGo/SoObjects/Mailer/Version | 2 +- SOGo/UI/Mailer/ChangeLog | 5 +++++ SOGo/UI/Mailer/Version | 2 +- SOGo/UI/Mailer/product.plist | 22 ++++++++++++++++++++++ 7 files changed, 49 insertions(+), 3 deletions(-) diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index 7b0cddae..2c4f1d7d 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,3 +1,8 @@ +2004-10-10 Helge Hess + + * SOGoDraftsFolder.m: added methods to be compatible with the mail + folder (v0.9.31) + 2004-10-08 Helge Hess * v0.9.30 diff --git a/SOGo/SoObjects/Mailer/SOGoDraftsFolder.h b/SOGo/SoObjects/Mailer/SOGoDraftsFolder.h index b0697bd0..ebd3edf6 100644 --- a/SOGo/SoObjects/Mailer/SOGoDraftsFolder.h +++ b/SOGo/SoObjects/Mailer/SOGoDraftsFolder.h @@ -30,7 +30,9 @@ Parent object: SOGoMailAccount Child objects: SOGoMailFolder - The SOGoDraftsFolder is used for composing new messages. + The SOGoDraftsFolder is used for composing new messages. It is necessary + because we can't cache objects in a session. So the contents of the drafts + folder are some kind of "mail creation transaction". */ @interface SOGoDraftsFolder : SOGoMailBaseObject diff --git a/SOGo/SoObjects/Mailer/SOGoDraftsFolder.m b/SOGo/SoObjects/Mailer/SOGoDraftsFolder.m index bde6c49a..b2dcf4c4 100644 --- a/SOGo/SoObjects/Mailer/SOGoDraftsFolder.m +++ b/SOGo/SoObjects/Mailer/SOGoDraftsFolder.m @@ -25,6 +25,18 @@ @implementation SOGoDraftsFolder +/* folder methods (used by template) */ + +- (NSArray *)fetchUIDsMatchingQualifier:(id)_q sortOrdering:(id)_so { + // TODO: retrieve contained objects + [self logWithFormat:@"TODO: should fetch uids (q=%@,so=%@)", _q, _so]; + return [NSArray array]; +} +- (NSArray *)fetchUIDs:(NSArray *)_uids parts:(NSArray *)_parts { + [self logWithFormat:@"TODO: fetch uids (parts=%@): %@", _parts, _uids]; + return [NSArray array]; +} + /* WebDAV */ - (BOOL)davIsCollection { diff --git a/SOGo/SoObjects/Mailer/Version b/SOGo/SoObjects/Mailer/Version index d5906740..7fd6910f 100644 --- a/SOGo/SoObjects/Mailer/Version +++ b/SOGo/SoObjects/Mailer/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=30 +SUBMINOR_VERSION:=31 diff --git a/SOGo/UI/Mailer/ChangeLog b/SOGo/UI/Mailer/ChangeLog index b81bc809..11942b8a 100644 --- a/SOGo/UI/Mailer/ChangeLog +++ b/SOGo/UI/Mailer/ChangeLog @@ -1,3 +1,8 @@ +2004-10-10 Helge Hess + + * product.plist: added some configuration for the drafts folder + (v0.9.27) + 2004-10-06 Helge Hess * UIxMailListView.m: added support for paper clip icon when messages diff --git a/SOGo/UI/Mailer/Version b/SOGo/UI/Mailer/Version index 9c8dad69..9461bed0 100644 --- a/SOGo/UI/Mailer/Version +++ b/SOGo/UI/Mailer/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=26 +SUBMINOR_VERSION:=27 diff --git a/SOGo/UI/Mailer/product.plist b/SOGo/UI/Mailer/product.plist index 03b969e6..eceea7d2 100644 --- a/SOGo/UI/Mailer/product.plist +++ b/SOGo/UI/Mailer/product.plist @@ -244,5 +244,27 @@ }; }; }; + + SOGoDraftsFolder = { + slots = { + toolbar = { + protectedBy = "View"; + value = ( /* the toolbar groups */ + ( /* first group */ + { link = "getMail"; + cssClass = "tbicon_getmail"; label = "Get Mail"; }, + { link = "addressbook"; target = "addressbook"; + cssClass = "tbicon_addressbook"; label = "Addressbook"; } + ) + ); + }; + }; + methods = { + view = { + protectedBy = "View"; + pageName = "UIxMailListView"; + }; + }; + }; }; } -- 2.39.5