chore(addressbook): remove UIxContactView.wox and UIxListView.wox

This commit is contained in:
Francis Lachapelle
2022-02-02 10:59:53 -05:00
parent 4f255ac9d5
commit e54631becf
7 changed files with 7 additions and 206 deletions
-6
View File
@@ -29,14 +29,8 @@
@interface UIxContactView : UIxComponent
{
NGVCard *card;
NSArray *phones;
CardElement *homeAdr;
CardElement *workAdr;
NSMutableArray *photosURL;
}
//- (NSString *) fullName;
//- (NSArray *) orgUnits;
- (NSString *) photoURL;
@end
+2 -17
View File
@@ -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"];
-1
View File
@@ -30,7 +30,6 @@
{
NGVList *list;
SOGoContactGCSList *co;
id item;
}
@end
-56
View File
@@ -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;
+5 -5
View File
@@ -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 = {