From 51e9e62e533b716e04e0836c27a96eefc0b99136 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 4 Aug 2006 22:51:42 +0000 Subject: [PATCH] Monotone-Parent: c5bd8349d3bd533853811e2ced9d7a0f040f66e8 Monotone-Revision: 60d1f73fd64a52fd996c5bf572fea291b0222750 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-04T22:51:42 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 ++++ UI/Contacts/UIxContactFoldersView.h | 32 ++++++++++++++++++++++ UI/Contacts/UIxContactFoldersView.m | 41 +++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 UI/Contacts/UIxContactFoldersView.h create mode 100644 UI/Contacts/UIxContactFoldersView.m diff --git a/ChangeLog b/ChangeLog index ac9c43f3d..f63ebb2cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-08-04 Wolfgang Sourdeau + * UI/Contacts/UIxContactFoldersView.[hm]: new class module serving + as a "view" for the SOGoContactFolders object. Does nothing but + redirect the browser to the URL of the personal address book of + the user. It does not even have a template. + * SoObjects/Contacts/SOGoPersonalAB.[hm]: new class module implementing the SOGoContactSource protocol. Does nothing currently but will be used to implement access to the personal diff --git a/UI/Contacts/UIxContactFoldersView.h b/UI/Contacts/UIxContactFoldersView.h new file mode 100644 index 000000000..686982197 --- /dev/null +++ b/UI/Contacts/UIxContactFoldersView.h @@ -0,0 +1,32 @@ +/* UIxContactFoldersView.h - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef UIXCONTACTFOLDERSVIEW_H +#define UIXCONTACTFOLDERSVIEW_H + +#import + +@interface UIxContactFoldersView : UIxComponent + +@end + +#endif /* UIXCONTACTFOLDERSVIEW_H */ diff --git a/UI/Contacts/UIxContactFoldersView.m b/UI/Contacts/UIxContactFoldersView.m new file mode 100644 index 000000000..a63e50608 --- /dev/null +++ b/UI/Contacts/UIxContactFoldersView.m @@ -0,0 +1,41 @@ +/* UIxContactFoldersView.m - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#import +#import + +#import "common.h" + +#import "UIxContactFoldersView.h" + +@implementation UIxContactFoldersView + +- (id) defaultAction +{ + SOGoContactFolders *folders; + + folders = [self clientObject]; + + return [self redirectToLocation: [folders defaultSourceName]]; +} + +@end