aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/addressbook-groupwise.c
blob: bb51b8f876a314f3f698bd9e00bbd63bd91febf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* *
 * Copyright (C) 2004 Sivaiah Nallagatla <snallagtla@novell.com>
 *
 * This program 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
 * of the License, or (at your option) any later version.
 *
 * This program 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; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 */

#include <gtk/gtklabel.h>
#include <gtk/gtkentry.h>
#include <gtk/gtktable.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtkmenu.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkhbox.h>
#include <e-util/e-config.h>
#include <addressbook/gui/widgets/eab-config.h>
#include <libedataserver/e-source.h>
#include <glib/gi18n.h>
#include <string.h>

void commit_groupwise_addressbook (EPlugin *epl, EConfigTarget *target);
GtkWidget *e_book_groupwise_dummy (EPlugin *epl, EConfigHookItemFactoryData *data);

void 
commit_groupwise_addressbook (EPlugin *epl, EConfigTarget *target)
{
    EABConfigTargetSource *t = (EABConfigTargetSource *) target;
    ESource *source = t->source;
    char *uri_text;
    ESourceGroup *source_group;
    char *relative_uri;
    GSList *l;

    uri_text = e_source_get_uri (source);
    if (strncmp (uri_text, "groupwise", 9)) {
        g_free (uri_text);
        
        return ;
    }   
    e_source_set_property (source, "auth-domain", "Groupwise");
    relative_uri = g_strconcat (";", e_source_peek_name (source), NULL);
    e_source_set_relative_uri (source, relative_uri);
    g_free (relative_uri);
  
    source_group = e_source_peek_group (source);
    l = e_source_group_peek_sources(source_group);
    if (l && l->data ) {
        e_source_set_property(source, "auth", e_source_get_property(l->data, "auth"));
        e_source_set_property(source, "user", e_source_get_property(l->data, "user"));
        e_source_set_property(source, "use_ssl", e_source_get_property(l->data, "use_ssl"));
        e_source_set_property(source, "port", e_source_get_property(l->data, "port"));
    }
}

GtkWidget *
e_book_groupwise_dummy (EPlugin *epl, EConfigHookItemFactoryData *data)
{
    
        
    return NULL;
}
me/commit/x11-drivers?id=ddf12c0436c7e86382f6e90080baec84be5fe2b3'>Update to 1.2.1.nork2009-12-202-4/+4 * This port has been broken for 3+ months, thuspav2009-12-081-0/+2 * Remove xf86-video-ati from CONFLICTS, and bump PORTREVISION.nork2009-12-051-2/+2 * Update to 1.3.0.nork2009-12-052-5/+5 * Go ahead and bump to 6.12.4.rnoland2009-12-024-10/+8 * Build for ia64 to satisfy the xorg-drivers dependencies.marcel2009-11-111-1/+1 * Update to 2009.11.01 based on 1.3.0.nork2009-11-013-19/+10 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-5/+4 * Update to 2009.08.08.nork2009-08-082-4/+4 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-032-2/+2 * Update to newer snapshot.rnoland2009-08-024-12/+38 * Update to 2009.07.26.nork2009-07-262-4/+4 * Update to 2009.07.01.nork2009-07-012-4/+4 * Mark BROKEN: does not build.erwin2009-06-211-0/+2 * Remove x11-drivers/xf86-video-vga as it has been marked BROKEN for overerwin2009-06-145-35/+0 * Update o 2009.06.07.nork2009-06-072-5/+5 * Fix dependency on glproto to enable DRI.nork2009-06-051-2/+2 * Update to 2009.06.05.nork2009-06-042-4/+4 * Mark BROKEN on 8.x: does not build.erwin2009-05-291-0/+4 * Mark as not for sparc64 (does not install, and not called for bylinimon2009-05-291-0/+2 * Update to 1.1.2rnoland2009-05-292-4/+4 * Update to 1.1.1rnoland2009-05-222-5/+4 * - Update to 20090514.9656762 to reflect libdrm updatemiwi2009-05-162-9/+8 * . add glproto as a dependency, so packages are got compiled without DRI support;bsam2009-05-141-2/+2 * Update to 2.7.1rnoland2009-05-134-8/+8 * Update to 2009.05.09 based on 1.2.5.nork2009-05-094-11/+28 * Fix pkg-plist. It isn't obeying prefix for includes... This should bernoland2009-05-082-0/+2 * Update to 1.7.1rnoland2009-05-082-5/+4 * Update to 1.4.10rnoland2009-05-082-4/+4 * Update to 6.8.1rnoland2009-05-082-5/+4 * Update to 2.7.0rnoland2009-05-086-12/+10 * Update to 1.3.0rnoland2009-05-082-5/+4 * Update to 1.4.1rnoland2009-05-083-6/+4 * Update to 2.2.2rnoland2009-05-082-7/+4 * Chase xserver update with driver port bumps.rnoland2009-05-0863-38/+63 * Update to 1.1.0rnoland2009-04-264-5/+20 * Update to 1.2.5.20090412, which is same version of xf86-video-radeonhd 1.2.5.nork2009-04-123-29/+12 * Update the nouveau snapshot and remove BROKEN now that libdrm hasrnoland2009-04-112-10/+34 * - Fix build with xorg-server 1.6pav2009-04-102-1/+7 * Update to 1.2.5rnoland2009-04-102-5/+4 * Update to 6.12.2rnoland2009-04-084-10/+8 * Restore native PS/2 support.jkim2009-04-082-11/+18 * Update to 2.1.13rnoland2009-04-084-50/+4 * Chase the Xorg server update and bump ports that depend on it.rnoland2009-04-0447-14/+47 * Update Xorg server to 1.6.0rnoland2009-04-0435-46/+71 * Keep the code from turning off the FPU - cures excessive traps thatmarius2009-04-012-0/+27 * As xf86-video-intel is marked only for amd64 and i386 also onlymarius2009-04-011-1/+4 * Update to 6.12.1rnoland2009-03-194-8/+8 * - Mark BROKEN: does not compilepav2009-03-172-0/+4 * Update to 6.12.0rnoland2009-03-144-8/+8 * The nv driver was somewhat brain-damaged, it was detecting most allrnoland2009-03-023-1/+46 * Update to 2009.03.01 based 1.2.4.nork2009-03-012-8/+7 * nouveau is an X.Org Foundation and Freedesktop.org project which wasamdmi32009-02-215-0/+36 * Update to 6.11.0rnoland2009-02-194-8/+8 * - Replace open(2)/close(2) pairs with stat(2). Closing mouse device hasjkim2009-02-052-28/+62 * - Partially back out the previous attempt to fix PS/2 protocol support.jkim2009-02-032-19/+21 * Take a crack at resolving the mouse blocking issues.rnoland2009-01-292-5/+13 * - Update to 0.8.2-2pgollucci2009-01-274-21/+47 * Bump PORTREVISION for x11 drivers that weren't updated.rnoland2009-01-2511-6/+22 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-24124-676/+482 * - Update to 0.8.2miwi2009-01-184-35/+96 * - No need to define USE_REINPLACE these dayspav2009-01-091-1/+0 * Bye bye xf86-video-i810. Everybody should have switched to xf86-video-intelflz2009-01-066-44/+2 * Update distinfo.flz2008-12-231-3/+3 * - Update xf86-video-radeonhd to 1.2.4. [1]flz2008-12-231-4/+4 * Update x11-drivers/xf86-video-intel to 2.4.3.flz2008-12-234-8/+8 * Mark as broken on sparc64.linimon2008-12-101-1/+7 * o Fix typo (CONFLICT -> CONFLICTS).nork2008-12-082-2/+19 * - Fix missing shared object issuepgj2008-11-213-4/+14 * Add an X.Org driver, a kernel module, and a script to configure X.Orgpgj2008-11-187-0/+523 * - Remove xf86-input-wacom to be re-added it with a different namepgj2008-11-187-522/+0 * Add an X.Org driver, a kernel module, and a script to configure X.Orgpgj2008-11-177-0/+522 * Update to 2008.11.14.nork2008-11-142-4/+4 * Update to 1.4.9rnoland2008-11-113-156/+5 * Fix pkg-plist.nork2008-11-031-0/+1 * Fix build error [1] and cosmetic change.nork2008-11-031-3/+4 * o Update to 2008.11.03 based 1.2.3.nork2008-11-032-5/+5 * Update to 0.10.0rnoland2008-10-243-17/+5 * Add xf86-video-radeonhd-devel 1.2.1.20080906, supports newnork2008-09-284-13/+29 * - Limit to i386 and amd64gahr2008-09-161-0/+3 * - Mark BROKEN: does not compilepav2008-09-151-0/+2 * - Update to 2.1.12miwi2008-09-052-4/+4 * Update x11-drivers/xf86-video-intel to 2.4.2.flz2008-09-024-8/+8 * - Update to 2.1.11miwi2008-09-012-4/+4 * - Update to 0.2.903miwi2008-09-012-11/+5 * - Update to 0.2.902miwi2008-08-262-5/+4 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-2/+0 * Update x11-drivers/xf86-video-intel to 2.4.0.flz2008-07-314-8/+8 * Update to 2.3.2.delphij2008-07-236-10/+14 * Update to 2.1.10.delphij2008-07-162-4/+4 * Update x11-drivers/xf86-video-nv to 2.1.9.flz2008-06-282-5/+4 * Update x11-drivers/xf86-video-ati to 6.9.0 and separate mach64 and r128jkim2008-06-2816-21/+80 * - Fix x11-drivers/synaptics after latest xorg-server update.flz2008-06-183-14/+9 * - Add conflicts with xf86-video-sis-intel.chinsan2008-06-141-0/+2 * Add xf86-video-sis-intel 300407, x.Org sis display driver provided bychinsan2008-06-1415-0/+351 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-0667-34/+67 * - Update 1.2.1miwi2008-04-206-10/+52 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-202-10/+7 * - Update to 1.2.0pav2008-04-114-8/+8 * Update x11-drivers/xf86-video-intel to 2.2.1.flz2008-04-014-8/+8 * Update x11-drivers/xf86-video-nv to 2.1.8.flz2008-03-312-4/+4 * - Mark BROKEN on 5.Xpav2008-03-151-1/+7 * Add patch to fix possibly insecure mouse behavior when switching VT.flz2008-03-132-0/+39 * - Make the IGNORE message even more explicit when there areflz2008-03-131-1/+1 * Add patch to fix mouse pointer coordinates.flz2008-03-132-0/+29 * Remove support for XFree8-4.flz2008-03-082-24/+0 * Fix pkg-plist.flz2008-03-074-4/+6 * Update x11-drivers/xf86-video-ati to 6.8.0.flz2008-03-064-8/+8 * Remove quirk for openchrome as it now installs openchrome_drv.so insteadflz2008-03-061-1/+1 * Oops, bump PORTREVISION to remake on amd64.nork2008-02-201-1/+1 * o Fix invalid synaptics issue with x11-drivers/xf86-input-voidnork2008-02-202-5/+10 * Update xf86-video-ati to 6.7.197.flz2008-02-074-8/+8 * Update xf86-video-nv to 2.1.7.flz2008-02-072-4/+4 * Add glproto to USE_XORG.flz2008-01-19