~ubuntu-branches/debian/squeeze/gnome-do-plugins/squeeze

« back to all changes in this revision

Viewing changes to BundledLibraries/libgoogle-data-mono-1.4.0.2/src/gapps/emaillistentry.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-06-27 16:11:49 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627161149-b74nc297di2842u1
* New upstream release
  + Pidgin plugin now supports initial text for messages (LP: #338608)
  + Pidgin plugin opens conversations on the correct IM network (LP: #370965)
* debian/rules:
  + Update get-orig-source target.  Upstream no longer ships gdata* binaries,
    so we no longer need to strip them
* debian/patches/00_use_system_gdata
  + Drop.  Upstream now builds against system libgdata.
* debian/patches/04_fix_pidgin_dbus_ints
* debian/patches/10_fix_rhythmbox_file
* debian/patches/15_twitter_api
* debian/patches/20_twitter_overflow:
  + Drop.  Included upstream.
* debian/patches/01_firefox_iceweasel_rename:
  + Refresh for new version
* debian/patches/02_fix_banshee_plugin:
  + Drop refernce to /usr/lib/banshee-1/Banshee.CollectionIndexer.dll.
    This is unnecessary, and causes errors when Banshee isn't installed.
* debian/patches/00_debian_default_plugins:
  + Enable a bunch of useful plugins that do not require configuration from 
    the "Official" plugin set by default.  Makes Do more useful out of the 
    box.
* debian/control:
  + Bump versioned build-dep on gnome-do to 0.8.2
  + Split out gnome-do-plugin-evolution package, now that this is possible.
    libevolution5.0-cil has an annoyingly large dependency stack.
    (LP: #351535) (Closes: #524993).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2007 Google Inc.
2
 
 *
3
 
 * Licensed under the Apache License, Version 2.0 (the "License");
4
 
 * you may not use this file except in compliance with the License.
5
 
 * You may obtain a copy of the License at
6
 
 *
7
 
 *     http://www.apache.org/licenses/LICENSE-2.0
8
 
 *
9
 
 * Unless required by applicable law or agreed to in writing, software
10
 
 * distributed under the License is distributed on an "AS IS" BASIS,
11
 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
 * See the License for the specific language governing permissions and
13
 
 * limitations under the License.
14
 
*/
15
 
 
16
 
using System;
17
 
using System.Xml;
18
 
using System.IO;
19
 
using System.Collections;
20
 
using Google.GData.Client;
21
 
using Google.GData.Extensions.Apps;
22
 
 
23
 
namespace Google.GData.Apps
24
 
{
25
 
    /// <summary>
26
 
    /// A Google Apps email list entry.  An EmailListEntry object
27
 
    /// contains information about a single email list.
28
 
    /// </summary>
29
 
    public class EmailListEntry : AbstractEntry
30
 
    {
31
 
        /// <summary>
32
 
        /// Category used to label entries that contain email list
33
 
        /// extension data.
34
 
        /// </summary>
35
 
        public static readonly AtomCategory EMAILLIST_CATEGORY =
36
 
            new AtomCategory(AppsNameTable.EmailList,
37
 
                             new AtomUri(BaseNameTable.gKind));
38
 
 
39
 
        /// <summary>
40
 
        /// Constructs a new EmailListEntry instance with the appropriate category
41
 
        /// to indicate that it is a email list.
42
 
        /// </summary>
43
 
        public EmailListEntry()
44
 
            : base()
45
 
        {
46
 
            Categories.Add(EMAILLIST_CATEGORY);
47
 
 
48
 
            GAppsExtensions.AddProvisioningExtensions(this);
49
 
        }
50
 
 
51
 
        /// <summary>
52
 
        /// Constructs a new EmailListEntry instance with the specified list name.
53
 
        /// </summary>
54
 
        /// <param name="emailListName">the name of the email list</param>
55
 
        public EmailListEntry(String emailListName)
56
 
            : base()
57
 
        {
58
 
            Categories.Add(EMAILLIST_CATEGORY);
59
 
 
60
 
            GAppsExtensions.AddProvisioningExtensions(this);
61
 
 
62
 
            EmailList = new EmailListElement(emailListName);
63
 
        }
64
 
 
65
 
        /// <summary>
66
 
        /// The email list element in this entry.
67
 
        /// </summary>
68
 
        public EmailListElement EmailList
69
 
        {
70
 
            get
71
 
            {
72
 
                return FindExtension(AppsNameTable.AppsEmailList,
73
 
                                     AppsNameTable.AppsNamespace) as EmailListElement;
74
 
            }
75
 
            set
76
 
            {
77
 
                ReplaceExtension(AppsNameTable.AppsEmailList,
78
 
                                 AppsNameTable.AppsNamespace,
79
 
                                 value);
80
 
            }
81
 
        }
82
 
 
83
 
        /// <summary>
84
 
        /// Overrides the base Update() method to throw a ClientFeedException,
85
 
        /// because email list entries cannot be updated.  This exception
86
 
        /// indicates that the client made an erroneous request to the email
87
 
        /// list feed.
88
 
        /// </summary>
89
 
        public new void Update()
90
 
        {
91
 
            throw new ClientFeedException("Email list entries cannot be updated.");
92
 
        }
93
 
    }
94
 
}