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

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

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"];

View File

@@ -30,7 +30,6 @@
{
NGVList *list;
SOGoContactGCSList *co;
id item;
}
@end

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;

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 = {

View File

@@ -1,87 +0,0 @@
<?xml version='1.0' standalone='yes'?>
<container
xmlns="http://www.w3.org/1999/xhtml"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
xmlns:uix="OGo:uix">
<var:if condition="hasPhoto"
><span class="photoFrame"><img var:src="photoURL" class="contactPhoto"/></span></var:if>
<h3 class="contactCardTitle"><var:string value="fullName" /></h3>
<div id="leftContactColumn" class="contactColumn">
<div id="primaryInfos">
<h4><var:string label:value="Contact" /></h4>
<dl class="dl-horizontal">
<var:string value="displayName" escapeHTML="NO"
/><var:string value="nickName" escapeHTML="NO"
/><var:string value="primaryEmail" escapeHTML="NO"
/><var:foreach list="secondaryEmails" item="currentEmail">
<var:string value="currentEmail" escapeHTML="NO"/>
</var:foreach
><var:string value="screenName" escapeHTML="NO"
/><var:string value="preferredAddress" escapeHTML="NO"
/><var:string value="categories" escapeHTML="NO"
/>
</dl>
</div>
<var:if condition="hasHomeInfos"
><div id="homeInfos">
<h4><var:string label:value="Home" /></h4>
<dl class="dl-horizontal">
<var:string value="homeStreetAddress" escapeHTML="NO"
/><var:string value="homeExtendedAddress" escapeHTML="NO"
/><var:string value="homePobox" escapeHTML="NO"
/><var:string value="homeCityAndProv" escapeHTML="NO"
/><var:string value="homePostalCodeAndCountry" escapeHTML="NO"
/><var:string value="homeUrl" escapeHTML="NO"
/>
</dl>
</div></var:if
><var:if condition="hasOtherInfos"
><div id="otherInfos">
<h4><var:string label:value="Other Infos" /></h4>
<dl class="dl-horizontal">
<var:string value="bday" escapeHTML="NO"
/><var:string value="tz" escapeHTML="NO"
/><var:string value="note" escapeHTML="NO"
/>
</dl>
</div></var:if
></div>
<div id="rightContactColumn" class="contactColumn">
<var:if condition="hasTelephones"
><div id="phoneInfos">
<h4><var:string label:value="Telephone" /></h4>
<dl class="dl-horizontal">
<var:string value="workPhone" escapeHTML="NO"
/><var:string value="homePhone" escapeHTML="NO"
/><var:string value="fax" escapeHTML="NO"
/><var:string value="mobile" escapeHTML="NO"
/><var:string value="pager" escapeHTML="NO"
/>
</dl>
</div></var:if
><var:if condition="hasWorkInfos"
><div id="workInfos">
<h4><var:string label:value="Work" /></h4>
<dl class="dl-horizontal">
<var:string value="workTitle" escapeHTML="NO"
/><var:string value="workService" escapeHTML="NO"
/><var:string value="workCompany" escapeHTML="NO"
/><var:string value="workPobox" escapeHTML="NO"
/><var:string value="workStreetAddress" escapeHTML="NO"
/><var:string value="workExtendedAddress" escapeHTML="NO"
/><var:string value="workCityAndProv" escapeHTML="NO"
/><var:string value="workPostalCodeAndCountry" escapeHTML="NO"
/><var:string value="workUrl" escapeHTML="NO"
/>
</dl>
</div></var:if
></div
></container>

View File

@@ -1,34 +0,0 @@
<?xml version='1.0' standalone='yes'?>
<var:component
xmlns="http://www.w3.org/1999/xhtml"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
xmlns:uix="OGo:uix"
className="UIxPageFrame"
title="name"
const:popup="YES"
>
<h3 class="contactCardTitle"><var:string value="listName" /></h3>
<div class="contactColumn">
<dl class="dl-horizontal">
<dt><var:if condition="hasNickname"><var:string value="listNickname" /></var:if></dt>
<dd><var:if condition="hasDescription"><var:string value="listDescription" /></var:if></dd>
</dl>
<h4><var:string label:value="Members" /></h4>
<dl class="dl-horizontal">
<dt></dt>
<dd>
<ul class="listComponents">
<var:foreach list="components" item="item">
<li><var:string var:value="itemName"/>
<var:if condition="itemHasEmail"><a var:href="itemHref" var:onclick="itemOnclick">
&lt;<var:string var:value="itemEmail"/>&gt;</a></var:if>
</li>
</var:foreach
></ul>
</dd>
</dl>
</div>
</var:component>