mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-12 11:55:09 +00:00
chore(addressbook): remove UIxContactView.wox and UIxListView.wox
This commit is contained in:
@@ -29,14 +29,8 @@
|
||||
@interface UIxContactView : UIxComponent
|
||||
{
|
||||
NGVCard *card;
|
||||
NSArray *phones;
|
||||
CardElement *homeAdr;
|
||||
CardElement *workAdr;
|
||||
NSMutableArray *photosURL;
|
||||
}
|
||||
|
||||
//- (NSString *) fullName;
|
||||
//- (NSArray *) orgUnits;
|
||||
- (NSString *) photoURL;
|
||||
|
||||
@end
|
||||
|
||||
@@ -47,11 +47,7 @@
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
photosURL = nil;
|
||||
card = nil;
|
||||
phones = nil;
|
||||
homeAdr = nil;
|
||||
workAdr = nil;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -60,7 +56,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[card release];
|
||||
[photosURL release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@@ -217,12 +212,7 @@
|
||||
{
|
||||
card = [[self clientObject] vCard];
|
||||
if (card)
|
||||
{
|
||||
[card retain];
|
||||
phones = nil;
|
||||
homeAdr = nil;
|
||||
workAdr = nil;
|
||||
}
|
||||
[card retain];
|
||||
else
|
||||
return [NSException exceptionWithHTTPStatus: 404 /* Not Found */
|
||||
reason: @"could not locate contact"];
|
||||
@@ -287,12 +277,7 @@
|
||||
contact = [self clientObject];
|
||||
card = [contact vCard];
|
||||
if (card)
|
||||
{
|
||||
[card retain];
|
||||
phones = nil;
|
||||
homeAdr = nil;
|
||||
workAdr = nil;
|
||||
}
|
||||
[card retain];
|
||||
else
|
||||
return [NSException exceptionWithHTTPStatus: 404 /* Not Found */
|
||||
reason: @"could not locate contact"];
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
{
|
||||
NGVList *list;
|
||||
SOGoContactGCSList *co;
|
||||
id item;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -30,62 +30,6 @@
|
||||
|
||||
@implementation UIxListView
|
||||
|
||||
|
||||
- (NSString *) listName
|
||||
{
|
||||
return [list fn];
|
||||
}
|
||||
|
||||
- (BOOL) hasNickname
|
||||
{
|
||||
return [list nickname] != nil;
|
||||
}
|
||||
- (NSString *) listNickname
|
||||
{
|
||||
return [list nickname];
|
||||
}
|
||||
|
||||
- (BOOL) hasDescription
|
||||
{
|
||||
return [list description] != nil;
|
||||
}
|
||||
- (NSString *) listDescription
|
||||
{
|
||||
return [list description];
|
||||
}
|
||||
|
||||
- (NSArray *) components
|
||||
{
|
||||
return [list cardReferences];
|
||||
}
|
||||
|
||||
- (BOOL) itemHasEmail
|
||||
{
|
||||
return [[item email] length] > 0;
|
||||
}
|
||||
|
||||
- (NSString *) itemHref
|
||||
{
|
||||
return [NSString stringWithFormat: @"mailto:%@",
|
||||
[item email]];
|
||||
}
|
||||
|
||||
- (NSString *) itemOnclick
|
||||
{
|
||||
return [NSString stringWithFormat: @"return openMailTo('%@ <%@>');",
|
||||
[item fn], [item email]];
|
||||
}
|
||||
|
||||
- (NSString *) itemName
|
||||
{
|
||||
return [item fn];
|
||||
}
|
||||
|
||||
- (NSString *) itemEmail
|
||||
{
|
||||
return [item email];
|
||||
}
|
||||
|
||||
- (void) checkListReferences
|
||||
{
|
||||
NSMutableArray *invalid;
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
methods = {
|
||||
view = {
|
||||
protectedBy = "Access Contents Information";
|
||||
pageName = "UIxContactView";
|
||||
actionClass = "UIxContactView";
|
||||
actionName = "data";
|
||||
};
|
||||
save = {
|
||||
@@ -183,12 +183,12 @@
|
||||
methods = {
|
||||
view = {
|
||||
protectedBy = "Access Contents Information";
|
||||
pageName = "UIxListView";
|
||||
actionClass = "UIxListView";
|
||||
actionName = "data";
|
||||
};
|
||||
properties = {
|
||||
protectedBy = "Access Contents Information";
|
||||
pageName = "UIxListView";
|
||||
actionClass = "UIxListView";
|
||||
actionName = "properties";
|
||||
};
|
||||
save = {
|
||||
@@ -213,12 +213,12 @@
|
||||
methods = {
|
||||
view = {
|
||||
protectedBy = "Access Contents Information";
|
||||
pageName = "UIxContactView";
|
||||
actionClass = "UIxContactView";
|
||||
actionName = "data";
|
||||
};
|
||||
members = {
|
||||
protectedBy = "Access Contents Information";
|
||||
pageName = "UIxContactView";
|
||||
actionClass = "UIxContactView";
|
||||
actionName = "members";
|
||||
};
|
||||
save = {
|
||||
|
||||
Reference in New Issue
Block a user