aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-03-13 13:22:01 +0800
committerChris Toshok <toshok@src.gnome.org>2001-03-13 13:22:01 +0800
commit825e963795172d4b93ff1435cf63137c5e217728 (patch)
tree40da9b1552297e33c1a2956fbe0b10f9edcb5b99
parentb089c850c554594aefb5cf1024a68019aac8701c (diff)
downloadgsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar.gz
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar.bz2
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar.lz
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar.xz
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.tar.zst
gsoc2013-evolution-825e963795172d4b93ff1435cf63137c5e217728.zip
add E_STRING_PROP for categories.
2001-03-12 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c: add E_STRING_PROP for categories. * backend/pas/evolutionperson.schema: add categories attribute. * backend/ebook/e-card-simple.c (field_data): add E_CARD_SIMPLE_FIELD_CATEGORIES. * backend/ebook/e-card-simple.h: add E_CARD_SIMPLE_FIELD_CATEGORIES. svn path=/trunk/; revision=8664
-rw-r--r--addressbook/ChangeLog13
-rw-r--r--addressbook/backend/ebook/e-card-simple.c1
-rw-r--r--addressbook/backend/ebook/e-card-simple.h1
-rw-r--r--addressbook/backend/pas/evolutionperson.schema8
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c1
5 files changed, 23 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index b3a1d72c94..22ed51f507 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,18 @@
2001-03-12 Chris Toshok <toshok@ximian.com>
+ * backend/pas/pas-backend-ldap.c: add E_STRING_PROP for
+ categories.
+
+ * backend/pas/evolutionperson.schema: add categories attribute.
+
+ * backend/ebook/e-card-simple.c (field_data): add
+ E_CARD_SIMPLE_FIELD_CATEGORIES.
+
+ * backend/ebook/e-card-simple.h: add
+ E_CARD_SIMPLE_FIELD_CATEGORIES.
+
+2001-03-12 Chris Toshok <toshok@ximian.com>
+
* gui/widgets/e-minicard.c (supported_fields_cb): add is_read_only
param.
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c
index 66076e0b0f..6c398b6133 100644
--- a/addressbook/backend/ebook/e-card-simple.c
+++ b/addressbook/backend/ebook/e-card-simple.c
@@ -98,6 +98,7 @@ static ECardSimpleFieldData field_data[] =
{ E_CARD_SIMPLE_FIELD_BIRTH_DATE, "birth_date", "Birth Date", "", 0, E_CARD_SIMPLE_INTERNAL_TYPE_DATE },
{ E_CARD_SIMPLE_FIELD_MAILER, "mailer", "", "", 0, E_CARD_SIMPLE_INTERNAL_TYPE_STRING },
{ E_CARD_SIMPLE_FIELD_NAME_OR_ORG, "nameororg", "", "", 0, E_CARD_SIMPLE_INTERNAL_TYPE_SPECIAL },
+ { E_CARD_SIMPLE_FIELD_CATEGORIES, "categories", "Categories", "Categories", 0, E_CARD_SIMPLE_INTERNAL_TYPE_STRING },
};
static int field_data_count = sizeof (field_data) / sizeof (field_data[0]);
diff --git a/addressbook/backend/ebook/e-card-simple.h b/addressbook/backend/ebook/e-card-simple.h
index bcdc37f914..2fe96be18e 100644
--- a/addressbook/backend/ebook/e-card-simple.h
+++ b/addressbook/backend/ebook/e-card-simple.h
@@ -120,6 +120,7 @@ enum _ECardSimpleField {
E_CARD_SIMPLE_FIELD_BIRTH_DATE,
E_CARD_SIMPLE_FIELD_MAILER,
E_CARD_SIMPLE_FIELD_NAME_OR_ORG,
+ E_CARD_SIMPLE_FIELD_CATEGORIES,
E_CARD_SIMPLE_FIELD_LAST
};
diff --git a/addressbook/backend/pas/evolutionperson.schema b/addressbook/backend/pas/evolutionperson.schema
index 5fc41cc9f6..abd85fc01c 100644
--- a/addressbook/backend/pas/evolutionperson.schema
+++ b/addressbook/backend/pas/evolutionperson.schema
@@ -145,6 +145,12 @@ attributetype ( 666.666.666.1.22
SUBSTR telephoneNumberSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
+attributetype ( 666.666.666.1.23
+ NAME 'categories'
+ EQUALITY caseIgnoreMatch
+ SUBSTR caseIgnoreSubstringsMatch
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )
+
# evolutionPerson
objectclass ( 666.666.666.2.1
NAME 'evolutionPerson'
@@ -156,5 +162,5 @@ objectclass ( 666.666.666.2.1
otherPhone $ businessRole $ managerName $ assistantName $ assistantPhone $
otherPostalAddress $ mailer $ birthDate $ anniversary $ spouseName $
note $ companyPhone $ callbackPhone $ otherFacsimileTelephoneNumber $
- radio $ telex $ tty )
+ radio $ telex $ tty $ categories )
)
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 88f32f70eb..0478c59ece 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -214,6 +214,7 @@ struct prop_info {
E_STRING_PROP (E_CARD_SIMPLE_FIELD_MAILER, "mailer", "mailer"),
E_STRING_PROP (E_CARD_SIMPLE_FIELD_FILE_AS, "file_as", "fileAs"),
+ E_STRING_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES, "categories", "categories"),
/* E_CARD_SIMPLE_FIELD_FBURL, */
/* E_CARD_SIMPLE_FIELD_NAME_OR_ORG, */